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
// ==UserScript== | |
// @name GitPHP - Age Sort w/o Categories | |
// @version 1.0.0 | |
// @author dccampbell | |
// @run-at document-end | |
// @match http*://*/?sort=age | |
// @require http://code.jquery.com/jquery-latest.js | |
// @description GitPHP Repo List - Remove categories and sort all repos by last update. | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Laravel Latest Docs | |
// @description Always redirect to the master version laravel docs. | |
// @author David C. Campbell | |
// @match http://laravel.com/docs/* | |
// ==/UserScript== | |
var url = window.location.href; | |
var matches = url.match(/[0-9].[0-9]/); |
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
#!/usr/bin/env bash | |
echo "=== System Install Starting! ===" | |
# Variables | |
DL_DIR="$HOME/Downloads/EnvSetup" && mkdir -p "$DL_DIR" | |
BIN_DIR="$HOME/bin" && mkdir -p "$BIN_DIR" | |
source /etc/os-release #loads $UBUNTU_CODENAME | |
export DEBIAN_FRONTEND=noninteractive |
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
#!/usr/bin/env bash | |
## Apache Setup | |
# Variables | |
BIN_DIR="/usr/local/bin" | |
# Install Apache | |
#sudo apt install -y apache2 | |
# Change Apache User/Group |
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 | |
# Install Magerun, restrict to one user, and create alias. | |
# Usage: installMagerun.sh [user] [path] | |
# [user] defaults to current user | |
# [path] defaults to current ./n98-magerun.phar | |
# Vars | |
mrUser="${1:-$(whoami)}" |
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
#!/usr/bin/env bash | |
basePath="$PWD" | |
baseDirs=$(find $basePath -mindepth 1 -maxdepth 1 -type d) | |
gitPaths=$(find $basePath -mindepth 1 -maxdepth ${1:-3} -name .git -type d -exec dirname {} \; | grep -v '/vendor/\|/.modman/') | |
unchangedDirs=() | |
for repo in $gitPaths; do | |
cd $repo | |
[[ "$2" = "-f" ]] && git fetch -q &>/dev/null |
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
[core] | |
autocrlf = input | |
eol = lf | |
[push] | |
default = current | |
[pull] | |
ff = only | |
[merge] | |
ff = false | |
[diff] |
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 | |
mkdir -pv ./.n98-magerun/modules/ && cd ./.n98-magerun/modules/ | |
git clone --depth=1 https://github.com/kalenjordan/magerun-addons && mv magerun-addons kj-magerun-addons | |
git clone --depth=1 https://github.com/peterjaap/magerun-addons && mv magerun-addons pj-magerun-addons | |
git clone --depth=1 https://github.com/creatuity/magerun-creatuity | |
git clone --depth=1 https://github.com/aoepeople/mpmd |
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 | |
function getInput() { | |
return !empty($_POST['mediawiki']) ? $_POST['mediawiki'] : ''; | |
} | |
function convertSyntax() { | |
$mediawiki = getInput(); | |
if(empty($mediawiki)) return ''; |
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
window.addEventListener('load', function() { | |
var data = getPageHtml().replaceUrls('foo.com', 'bar.com'); | |
var file = document.location.pathname.basename(); | |
//saveToFile(data, file); | |
}, false); | |
/** |
OlderNewer