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
Show hidden characters
[ | |
{ "keys": ["ctrl+g"], "command": "toggle_status_bar" }, | |
{ | |
"keys": ["ctrl+r"], | |
"command": "toggle_setting", | |
"args": | |
{ | |
"setting": "line_numbers", | |
"setting": "gutter" | |
} |
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
export PS1="\[\e[30;1m\][\[\e[36;1m\]\u@\h\[\e[30;1m\]]-[\[\[\e[33;1m\]\w\[\e[30;1m\]]-[\[\e[31;1m\]\$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed 's: ::g') items, \$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed 's/total //')b\[\e[30;1m\]]-{\[\e[37;1m\]\j\[\e[30;1m\]}-[\[\e[37;1m\]\@\[\e[30;1m\]]\n\[\e[0m\]\$ " |
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
# Clear term | |
alias cls='clear' | |
# Keep 1000 lines in .bash_history (default is 500) | |
export HISTSIZE=1000 | |
export HISTFILESIZE=1000 | |
#Stop bash from caching duplicate lines. | |
HISTCONTROL=ignoredups |
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
#!/usr/bin/python | |
# This script is an adaption of Jeremy Blythe's script (http://jeremyblythe.blogspot.co.uk/2012/05/python-freedns-client-on-raspberry-pi.html) | |
# It will update FreeDNS using multiple keys if you have "Link updates of the same IP together" Disabled. | |
import urllib2 | |
import os.path | |
FREEDNS_URL = 'http://freedns.afraid.org/dynamic/update.php?' | |
OLDIP_FILE = '/var/lib/misc/oldip' |
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
/* | |
JQuery clock routine for adding a time/date element to the page that updates every second. | |
*/ | |
jQuery(document).ready(function(){ | |
jQuery.noConflict(); | |
function clockUpdate() { | |
var myDate = new Date(); | |
var displayDate = (myDate.getDate()) + '/' + (myDate.getMonth()+1) + '/' + myDate.getFullYear(); | |
var displayTime = (myDate.getHours()) + ':' + (myDate.getMinutes()<10?'0':'') + (myDate.getMinutes()) + ':' + (myDate.getSeconds∏()<10?'0':'') + (myDate.getSeconds()); |
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
#!/usr/bin/python | |
''' | |
©2012 Paul Castle | |
Very crude but functional early edition, will expand in the future. | |
I run this script on a 3 day cron to keep my personal wiki backed up to my | |
local development server. LFTP is very good at retaining permissions between | |
mirrors. | |
User/pass variables require base64 encoded attributes to avoid shoulder-surfers. |
NewerOlder