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 watchcartoononline | |
// @description Description | |
// @author Chris H (Zren / Shade) | |
// @icon http://xshade.ca/favicon.ico | |
// @namespace http://xshade.ca | |
// @version 1 | |
// @grant none | |
// @include http://www.watchcartoononline.com/* | |
// @include http://www.animeuploads.com/embed.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
# zoom | |
unbind ^M | |
bind ^M new-window -d -n zoom 'tmux-zoom' |
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
# Fact: role | |
# | |
# Purpose: | |
# Return the installed and running applications on the system. | |
# | |
# FIXME: Add amq, varnish, | |
# FIXME: As of now, interpreting/matching text and not return codes :( | |
Facter.add(:role) do | |
setcode do |
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 -ue | |
/usr/bin/curl -s -k -F userfile=@<( /usr/bin/facter ) -u user:pass "https://racktables/index.php?page=depot&tab=facter&op=Update" > /dev/null 2>&1 |
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
# logrotate suggestion for catalina | |
/apps/tomcat/*/logs/catalina.out { | |
copytruncate | |
daily | |
rotate 5 | |
compress | |
notifempty | |
missingok | |
size 100M | |
} |
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 | |
# | |
# A mysql replication plugin for the check_mk nagios system. | |
# Place me in /usr/lib/check_mk_agent/local on the client | |
# | |
# Hereward Cooper <coops@iomart.com> - 16/06/11 | |
MYSQL_USER="root" | |
MYSQL_PASS="PAassw0rd" |
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 -ue | |
function list_paths() { | |
multipath -ll -v 1 | |
} | |
function print_usage() { | |
cat <<EOF | |
Multipath device resizer | |
Resize multipath device if one LV in one VG on a multipath device PV |
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 -ue | |
# Postgres backup script | |
# Christian Bryn | |
backup_mountpoint="/var/nfs-backup" | |
backup_path="${backup_mountpoint}/${HOSTNAME}/postgresql" | |
[ ! -d "${backup_path}" ] && mkdir -p "${backup_path}" | |
#backup_timestamp=$( date '+%d' ) |
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
# cool mysql grants printing function (producing proper sql) - http://serverfault.com/a/13050 | |
# example: | |
# mygrants --host=prod-db1 --user=admin --password=secret | grep rails_admin | mysql --host=staging-db1 --user=admin --password=secret | |
mygrants() | |
{ |
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 -ue | |
# ANIMATE them wild asian ping pong players | |
# chr.bryn@gmail.com | |
# Q( - _-)_____¦___o__Q(-_ - ) | |
court_length=12 | |
speed="0.3" | |
colors="false" | |
clear="false" |
OlderNewer