Thank you https://gist.github.com/shuichinet/8159878
This is how I install on my mac
brew reinstall python
brew install libav
sudo pip install gmusicapi
pip install urllib3
| import groovy.text.SimpleTemplateEngine | |
| class Message() { | |
| String body | |
| String populateBodyWith(binding) { | |
| new SimpleTemplateEngine().createTemplate(body).make(binding.withDefault { '${' + it + '}' }) | |
| } | |
| } |
| # Create SSH key - alternative to ssh-copy-id | |
| export USER=me | |
| export HOST=myhost.com | |
| if [ ! -f ~/.ssh/${USER}_rsa ] ; then echo "Creating SSH key" ; ssh-keygen -t rsa -f ~/.ssh/${USER}_rsa -C "${USER} access" ; fi | |
| cat ~/.ssh/${USER}_rsa.pub | ssh $USER@$HOST 'mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat - >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys' | |
| cat >> ~/.ssh/config << EOF |
| <!-- Tridion JSP template with contextual selection --> | |
| <%@taglib prefix="context" uri="http://context.sdl.com/taglib" %> | |
| <tcdl:if expression="os.model == 'Android'"> | |
| Would you like to try our new Android app? | |
| - <a href=" ... google app store link ... ">download now</a> | |
| </tcdl:if> |
| # Add to /etc/bashrc to customise command prompt | |
| [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="(production) - \u@\[\e[1;31m\]myhost.com\[\e[0m\]:\w \\$ " |
| find . -name "*.jar" -exec unzip -p {} META-INF/MANIFEST.MF \; | grep Implementation |
| ack needle |
| # -c => Continue after error | |
| ldapadd -c -x -W -D "cn=admin,dc=id,dc=sdl,dc=com" -f id_test_data.ldif |
| # curl not smart enough for ipv6, so force ipv4 | |
| # on my mac I started to get localhost connect failure | |
| # | |
| # curl: (7) Failed to connect to localhost port 9031: Connection refused | |
| echo '--ipv4' >> ~/.curlrc |
Thank you https://gist.github.com/shuichinet/8159878
This is how I install on my mac
brew reinstall python
brew install libav
sudo pip install gmusicapi
pip install urllib3
| #!/bin/bash | |
| # Set static routing tables to route some external IP addresses | |
| # direct instead of via VPN | |
| action=${1:-create} | |
| gateway=${2:-192.168.1.254} | |
| nonVpnHosts=${3:-$NON_VPN_HOSTS} | |
| if [ -z "$nonVpnHosts" ] ; then |