Skip to content

Instantly share code, notes, and snippets.


Wade WadeShuler

View GitHub Profile
View yii2-post-receive-example
APP_NAME=YOURAPPNAME # ".git" will be added and should match your bare repo filename
APP_DIR="public_html/prod" # include "public_html", do not start with forward slash!
PHP="php -d allow_url_fopen=1 -d memory_limit=256M -d suhosin.executor.include.whitelist=phar"
COMPOSER="$PHP $HOMEDIR/bin/composer.phar"
WadeShuler / .htaccess
Created Aug 28, 2018
htaccess Force HTTPS and WWW - Subdomain friendly - Dynamic
View .htaccess
Options -Indexes
RewriteEngine On
# This goes first!
# Force www prefix
RewriteCond %{HTTP_HOST} !^(www\.)(.*) [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
# This goes second!
WadeShuler / aliases.zsh
Last active Nov 20, 2020
Oh-My-Zsh - Best and Most Helpful - My Custom ZSH Aliases - Tips Hack Help Info Doc Tutorial
View aliases.zsh
# Source Reload
alias reload.zsh="source ~/.zshrc"
alias reload.profile="source ~/.bash_profile"
alias reload.term="source ~/.bash_profile && source ~/.zshrc"
# cd
alias ..="cd .."
# ls
alias ll="ls -AlhG"
View vscode-git-status-tree-hack.js
function injectGitFileStatus()
const timeout = 5000;
const addedColor = "#8dc149";
const modifiedColor = "#cbcb41";
const stagedColor = "#ca2820";
const ignoredOpacity = "0.4";
const explorer = document.getElementById("workbench.view.explorer");
if (explorer)
WadeShuler / yii2-drop-all-tables-from-database.php
Last active Aug 11, 2018 — forked from mbischof/yii-drop-all-tables-from-database.php
*UPDATED*: How to drop all tables from database using Yii2. Includes disabling foreign key checks, fixed app() and execute().
View yii2-drop-all-tables-from-database.php
Yii::$app->db->createCommand("SET foreign_key_checks = 0")->execute();
$tables = Yii::$app->db->schema->getTableNames();
foreach ($tables as $table) {
Yii::$app->db->createCommand("SET foreign_key_checks = 1")->execute();
WadeShuler /
Last active Nov 23, 2020
Mac Bash script to kill Adobe Create Cloud and other processes that Adobe forces on us.
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n"
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist
echo "\n\n--- Done! ---\n\n"
WadeShuler / osx-install-composer.txt
Created Jun 13, 2016
My OSX Composer Install Guide
View osx-install-composer.txt
Create a new directory in /usr/local for composer, and setup directory for downloading the installer.
-> cd /usr/local
-> mkdir composer
-> cd composer
-> mkdir setup
-> cd setup
Inside the setup directory, we are going to follow the instructions to download Composer.
WadeShuler / XBOX 360 HQ.plist
Created Mar 2, 2015
My custom High Quality XBOX 360 Compatible Handbrake profile. Video: AVC, 3000kbps Constant, High@L4.1 - Audio: AC3, 640kbps Constant, 6ch. This does make an MKV, which the 360 doesn't support. You will need to use My MP4Box GUI or similar to change the container to MP4. There are some issues getting Handrbake to go MKV to MP4 directly.
View XBOX 360 HQ.plist
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
You can’t perform that action at this time.