This file contains hidden or 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
document | |
.body | |
.addEventListener("keydown", function(event) { | |
// Å = option + shift + A | |
if (event.key === "Å") { | |
redirectToAdmin(); | |
} | |
}); | |
function redirectToAdmin() { |
This file contains hidden or 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
# Global .gitignore | |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby ts=2 sw=2 et: | |
# Add github to known hosts for private repo provisioners | |
config.vm.provision "shell", run: "always" do |s| | |
s.inline = <<-SHELL | |
mkdir -p ~/.ssh | |
chmod 700 ~/.ssh | |
touch ~/.ssh/known_hosts | |
if ! grep -Fxq "github.com" ~/.ssh/known_hosts; then |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby ts=2 sw=2 et: | |
# Add github to known hosts for private repo provisioners | |
config.vm.provision "shell", run: "always" do |s| | |
s.inline = <<-SHELL | |
mkdir -p ~/.ssh | |
chmod 700 ~/.ssh | |
touch ~/.ssh/known_hosts | |
if ! grep -Fxq "github.com" ~/.ssh/known_hosts; then |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby ts=2 sw=2 et: | |
# Add github to known hosts for private repo provisioners | |
config.vm.provision "shell", run: "always" do |s| | |
s.inline = <<-SHELL | |
mkdir -p ~/.ssh | |
chmod 700 ~/.ssh | |
touch ~/.ssh/known_hosts | |
if ! grep -Fxq "github.com" ~/.ssh/known_hosts; then |
This file contains hidden or 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
# Using disable-emails as an example | |
wp plugin deactivate --network disable-emails && wp site list --field=url | xargs -n1 -I % wp --url=% plugin deactivate disable-emails |
This file contains hidden or 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
wp site list --field=url | xargs -n1 -I % wp --url=% plugin status |
This file contains hidden or 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
[{ | |
"name": "Milhouse Van Houten", | |
"desk": 2 | |
}, { | |
"name": "Homer Simpson", | |
"desk": 4 | |
}, { | |
"name": "Disco Stu", | |
"desk": 5 | |
}] |
This file contains hidden or 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
# Laravel debug phpunit within homestead | |
# Get remote_host value by running `netstat -rn` and choosing the gateway | |
# serverName must match the server name configured in PHPSTORM | |
XDEBUG_CONFIG="idekey=PHPSTORM remote_host=10.0.2.2" PHP_IDE_CONFIG="serverName=api.dev" vendor/bin/phpunit |
This file contains hidden or 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] | |
</IfModule> |
NewerOlder