View xbak.sh
This file contains 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
#!/bin/bash | |
echo "Running XAMPP Backer Upper" | |
# The full path to the XAMPP root installation. No trailing slash. | |
XAMPP_ROOT_LOCATION="" # ie: /Applications/XAMPP | |
BACKUP_ROOT_LOCATION="" # ie: /Users/username/Desktop | |
BACKUP_PREFIX="backup_" | |
BACKUP_TIME=`date +"%m-%d-%Y_%H-%M-%S"` |
View yii2-post-receive-example
This file contains 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
#!/bin/sh | |
CPANEL_USERNAME=YOURUSERNAME | |
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! | |
HOMEDIR="/home/$CPANEL_USERNAME" | |
PHP="php -d allow_url_fopen=1 -d memory_limit=256M -d suhosin.executor.include.whitelist=phar" | |
COMPOSER="$PHP $HOMEDIR/bin/composer.phar" |
View .htaccess
This file contains 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
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! |
View aliases.zsh
This file contains 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
# 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
This file contains 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
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) |
View yii2-drop-all-tables-from-database.php
This file contains 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
<?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()->dropTable($table)->execute(); | |
} | |
Yii::$app->db->createCommand("SET foreign_key_checks = 1")->execute(); |
View killadobe.sh
This file contains 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
#!/bin/bash | |
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" |
View osx-install-composer.txt
This file contains 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
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. |
View XBOX 360 HQ.plist
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist> | |
<array> | |
<dict> | |
<key>AudioList</key> | |
<array> | |
<dict> | |
<key>AudioBitrate</key> | |
<string>640</string> |