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| #!/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 |
| /* | |
| * 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 |
| #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* |
| #!/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 |
| Result: 1 | |
| Items { | |
| TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
| Badge { | |
| BadgeType: BADGE_BATTLE_ATTACK_WON | |
| BadgeRanks: 4 | |
| Targets: "\nd\350\007" | |
| } | |
| } | |
| Items { |
| /* | |
| Automatically click all "Verify your email" links in the welcome e-mail from | |
| Nintendo Pokémon Trainer Club's signup e-mails. | |
| Only unread emails in inbox will be processed. | |
| All processed e-mails will be marked as read if verification was successful, | |
| and optionally moved to trash if it's enabled in your settings. | |
| How to use: | |
| 1. Login to Gmail |
| How to build your custom Nginx | |
| ============================== | |
| Works fine for me with Ubuntu 16.04. | |
| Automated Install with pagespeed module (Google) | |
| ------------------------------------------------ | |
| If you interested, read the original | |
| Source: https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source |
| Extruder: | |
| - Nozzle Diameter: 0.40mm | |
| - Extrusion Multiplier: 1.00 (can fiddle with this: if you get holes in top layers - increase, if you get blobs and the head digs into the current layer - decrease) | |
| - Extrusion Width: auto | |
| - Retraction: | |
| - Distance: 4-6mm or less even | |
| - Extra Restart Dist: 0.5 | |
| - Vertical Lift: 0 | |
| - Retraction Speed: 3000 | |
| - Coast at end - enabled - 0.1mm |
| location = /gotoapp { | |
| if ($http_user_agent ~* "iphone|ipod|ipad|appletv") { | |
| return 301 https://www.apple.com/lae/ios/app-store/; | |
| } | |
| if ($http_user_agent ~* "android") { | |
| return 301 https://play.google.com/store; | |
| } | |
| if ($http_user_agent ~* "Windows") { | |
| return 301 https://www.microsoft.com/store/apps?rtc=1; |