Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
# Checkout | |
git tag # List tagged versions | |
git checkout -b prodfix <version> # Checkout specific version into prodfix branch | |
# Fix code and commit | |
# Test in staging (requires compatible database state) | |
git push staging +HEAD:master # Push to staging | |
# Put in producton |
# Option for javac to accept java files with nasty Windows encoding: | |
-encoding cp1252 |
[HKEY_CLASSES_ROOT\Directory\shell\sublime] | |
@="Open Folder as &Sublime Project" | |
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command] | |
@="\"C:\\Program Files\\Sublime Text\\sublime_text.exe\" \"%1\"" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime] | |
@="Open Folder as &Sublime Project" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\sublime\command] |
Gjenskape produksjon: | |
Backup av staging og prod database: | |
heroku pgbackups:capture --remote staging | |
heroku pgbackups:capture --remote production | |
Clean staging-database: | |
heroku pg:reset DATABASE_URL --remote staging |
git checkout -n new_branch | |
git push heroku +HEAD:master | |
git push -f heroku HEAD:master | |
Source: http://stackoverflow.com/questions/2971550/how-to-push-different-local-git-branches-to-heroku-master |
# Display certs for a server | |
openssl s_client -showcerts -connect <host.domain>:<port> |
restorecon -R -v /home | |
Source: http://blog.natesilva.com/post/9618889334/in-centos-linux-6-0-you-cant-ssh-using |
For instance Puppet server will not start under RHEL SELinux. Try to start it, then run the following script. Continue this cycle until it starts. It will probably work for different SELinux challenges as well. | |
The script requires: | |
$yum install policycoreutils-python | |
cd /tmp && \ | |
cat /var/log/audit/audit.log | audit2allow -m puppetmaster > puppetmaster.te && \ | |
checkmodule -M -m puppetmaster.te -o puppetmaster.mod && \ | |
semodule_package -m puppetmaster.mod -o puppetmaster.pp && \ | |
semodule -i puppetmaster.pp |