This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This assumes the existence of Solar-Dark and Solar-Remote settings profiles | |
function tabc { | |
NAME=$1; if [ -z "$NAME" ]; then NAME="Solar-Dark"; fi | |
osascript -e "tell application \"Terminal\" to set current settings of front w | |
indow to settings set \"$NAME\"" | |
} | |
function ssh { | |
tabc "Solar-Remote" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch --force --index-filter 'git rm -rf --cached --ignore-unmatch <filename>' --prune-empty --tag-name-filter cat -- --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch --tree-filter "find . -name '*.rb' -exec sed -i -e 's/stringA/stringB/g' {} \;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dscl . create /Groups/aegir gid 12008 | |
sudo dscl . append /Groups/aegir GroupMembership $(whoami) | |
dscl . read /Groups/aegir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --name-status --since="2015-03-24" | grep modules | sort | uniq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id_rsa_key_pub = File.read(File.join(Dir.home, ".ssh", "id_rsa.pub")) | |
config.vm.provision :shell, | |
:inline => "echo 'appending SSH Pub Key to ~vagrant/.ssh/authorized_keys' && echo '#{id_rsa_key_pub }' >> /home/vagrant/.ssh/authori | |
zed_keys && chmod 600 /home/vagrant/.ssh/authorized_keys" | |
config.ssh.insert_key = false | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BRAND: Anaconda Server | |
CDN: /static | |
LDAP: | |
BIND_AUTH: password | |
BIND_DN: cn=Manager,dc=testcio,dc=com | |
OPTIONS: {OPT_X_TLS_CERTFILE: /etc/ssl/certs/openldap.testcio.com.crt, OPT_X_TLS_DEMAND: true, | |
OPT_X_TLS_NEVER: true} | |
URI: ldaps://openldap.testcio.com | |
USER_SEARCH: {base: 'dc=testcio,dc=com', filter: uid=%(username)s} | |
LOGGING: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> /opt/wakari/wakari-server/var/log/wakari/worker.log <== | |
20618 | 2015-11-23 20:24:42.388 ERROR: Job 5653bbe1dbe4b150364da2d8 exited with exception: | |
Job Log: | |
| Starting Job 5653bbe1dbe4b150364da2d8 | |
| Created Provisioner: Provisioner | |
| * Actor: wakari | |
| * Owner: wakari | |
| * Project: PDT2 | |
| Posting data to u'http://10.250.19.114:8080/api/start-project' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws rds create-db-parameter-group --db-parameter-group-name mysql-utf8 --db-parameter-group-family mysql5.6 --description "MySQL 5.6 configured for UTF-8" | |
aws rds modify-db-parameter-group --db-parameter-group-name mysql-utf8 \ | |
--parameters="ParameterName=character_set_server, ParameterValue=utf8, ApplyMethod=immediate" \ | |
--parameters="ParameterName=character_set_client, ParameterValue=utf8, ApplyMethod=immediate" \ | |
--parameters="ParameterName=character_set_results, ParameterValue=utf8, ApplyMethod=immediate" \ | |
--parameters="ParameterName=collation_server, ParameterValue=utf8_unicode_ci, ApplyMethod=immediate" \ | |
--parameters="ParameterName=collation_connection, ParameterValue=utf8_unicode_ci, ApplyMethod=immediate" | |
# Apply to an existing instance (followed by a reboot): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSiblingDB(i).dropDatabase()})' |
OlderNewer