most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| Result: 1 | |
| Items { | |
| TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
| Badge { | |
| BadgeType: BADGE_BATTLE_ATTACK_WON | |
| BadgeRanks: 4 | |
| Targets: "\nd\350\007" | |
| } | |
| } | |
| Items { |
| #!/bin/bash | |
| SET_USERS="usernameone:password:/path/to/web/folder usernametwo:password:/path/to/second/folder" | |
| IFS=' ' read -a USERS <<< "${SET_USERS}" | |
| for SET_USER in ${USERS[@]}; do | |
| IFS=':' read -a USER <<< "${SET_USER}" | |
| NAME=${USER[0]}; | |
| PASS=${USER[1]}; | |
| DIR=${USER[2]}; | |
| (echo $PASS; echo $PASS) | pure-pw useradd $NAME -u www-data -g www-data -d $DIR |
| #Insall Ajenti | |
| apt-get update | |
| wget http://repo.ajenti.org/debian/key -O- | apt-key add - | |
| echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list | |
| apt-get update | |
| apt-get install ajenti | |
| service ajenti restart | |
| # Uninstall Apache2 | |
| sudo apt-get autoremove && sudo apt-get remove apache2* |
| /* | |
| * Source: | |
| * https://gist.github.com/CezaryDanielNowak/357e526b759e4614b859 | |
| * | |
| * Why do I need it: | |
| * When using NapiProjekt or OpenSubtitles on non-polish Windows machine, | |
| * subtitles has wrong encoding and are hard to read. | |
| * | |
| * How to use: | |
| * - save fix.js somewhere on your drive |
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # | |
| WP_OWNER=www-data # <-- wordpress owner | |
| WP_GROUP=www-data # <-- wordpress group | |
| WP_ROOT=$1 # <-- wordpress root directory |