git config --global push.default matching
OR
git config --global push.default current
First will push all matched branches,
Second will push only current
пятница, 23 октября 2015 г.
Brewing cup: Alter path alias programmatically for an existing ...
Brewing cup: Alter path alias programmatically for an existing ...: Here's a method to alter the path alias (if you're using the pathauto module) of an existing taxonomy term programmatically. Here ...
пятница, 16 октября 2015 г.
Google Calendar event buttons — Mobile version
I've been doing some research on this myself and I've come close, but I'm not 100% there yet. Here's a sample URL of a mobile "share event" link:
http://www.google.com/calendar/gp#~calendar:view=e&bm=1&action=TEMPLATE&text=Halloween+Party+2011&dates=20111101/20111202&details=Description&location=Millennial+Media&trp=false
It opens up the mobile version of Google Calendar and pre-populates it with details about the event your sharing.
The only problem I've encountered is when you're not already logged into Google Calendar. It takes you to the log in page, which is fine, but then after you log in it takes you to the home screen instead of the event entry page.
If you find or already found an answer to this, let me know.
source
http://www.google.com/calendar/gp#~calendar:view=e&bm=1&action=TEMPLATE&text=Halloween+Party+2011&dates=20111101/20111202&details=Description&location=Millennial+Media&trp=false
It opens up the mobile version of Google Calendar and pre-populates it with details about the event your sharing.
The only problem I've encountered is when you're not already logged into Google Calendar. It takes you to the log in page, which is fine, but then after you log in it takes you to the home screen instead of the event entry page.
If you find or already found an answer to this, let me know.
source
среда, 7 октября 2015 г.
Give a folder its very own drive letter
Pretend that you have a file folder called C:\data\word_docs, that you use it constantly, and that you would like to refer to it with a shortcut of W:. Open up a command prompt window and issue the following command:
SUBST w: C:\data\word_docs
SUBST is short for substitute. (DOS commands are case-insensitive, so you could enter it as "subst" as well.) So, now, W:\intro.doc is the same thing as C:\data\word_docs\intro.doc — two different ways to refer to the same file.
source
SUBST w: C:\data\word_docs
SUBST is short for substitute. (DOS commands are case-insensitive, so you could enter it as "subst" as well.) So, now, W:\intro.doc is the same thing as C:\data\word_docs\intro.doc — two different ways to refer to the same file.
source
понедельник, 5 октября 2015 г.
No Index No Robots
a2enmod header
<IfModule mod_headers.c>
Header set X-Robots-Tag: "noindex, nofollow, noarchive, nosnippet, noimageindex"
</IfModule>
<IfModule mod_headers.c>
Header set X-Robots-Tag: "noindex, nofollow, noarchive, nosnippet, noimageindex"
</IfModule>
++++
<<<<
<<<<
https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-apache-on-ubuntu-14-04
chown -R apache:apache sites/default/files
chmod -R 775 sites/default/files
chown -R apache:apache sites/default/files
chmod -R 775 sites/default/files
воскресенье, 4 октября 2015 г.
среда, 16 сентября 2015 г.
Apple Certificates to PEM
p12 => pem
openssl pkcs12 -in Certificates.p12 -out push.prod.crt.pem -nodes -clcerts
bin crt => pem
openssl x509 -inform der -in aps_production.cer -outform pem -out certificate.pem
The inform and outform options are reversed. The command should be:
openssl x509 -inform der -in certificate.cer -outform pem -out certificate.pem
https://github.com/richsage/RMSPushNotificationsBundle/issues/60#issuecomment-40174938
http://perrohunter.com/how-to-convert-a-cer-certificate-to-pem-on-linuxunix-and-os-x/#comment-4398
openssl pkcs12 -in Certificates.p12 -out push.prod.crt.pem -nodes -clcerts
bin crt => pem
openssl x509 -inform der -in aps_production.cer -outform pem -out certificate.pem
While trying to update a certificate on a produciton enviroment I ran into the following issue, Apache only accepts certificates in PEM format, since my client provided me with his new certificate on a .cer file I had to find a way to convert it.
For x509 certificates this can be easily achieved using OpenSSL on Linux/Unix and OS X. First make sure you have OpenSSL (comes by default with OS X), open a terminal and issue the following command:
openssl x509 -inform pem -in certificate.cer -outform der -out certificate.pem
Where certificate.cer is the source certificate file you want to convert and certificate.pem is the name of the converted certificate.
The inform and outform options are reversed. The command should be:
openssl x509 -inform der -in certificate.cer -outform pem -out certificate.pem
https://github.com/richsage/RMSPushNotificationsBundle/issues/60#issuecomment-40174938
http://perrohunter.com/how-to-convert-a-cer-certificate-to-pem-on-linuxunix-and-os-x/#comment-4398
Подписаться на:
Сообщения (Atom)