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
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace | |
# append to the history file, don't overwrite it | |
shopt -s histappend |
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
set ls=2 | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set showcmd "shows what you are typing as a command | |
set foldmethod=marker "folding | |
set autoindent | |
set incsearch | |
set nobackup | |
set notitle |
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
import hashlib | |
hashlib.md5("foo:bar:123".encode('utf8')).hexdigest() |
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
#include <stdio.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <elf.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
int |
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/perl -w | |
while (@ARGV) { | |
$stocks=$ARGV[0]; | |
shift @ARGV; | |
print "$stocks\t"; | |
system("curl -s 'http://download.finance.yahoo.com/d/quotes.csv?s=$stocks&f=l1'") | |
} |
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/perl -w | |
@TICKER = ('ERTS','GOOG','AAPL','MSFT','INTC'); | |
foreach $stocks (@TICKER){ | |
print "$stocks\t"; | |
system("curl -s 'http://download.finance.yahoo.com/d/quotes.csv?s=$stocks&f=l1'") | |
} | |
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
sed -n '/entry type="podcast-feed"/,/<\/entry>/p' ~/.local/share/rhythmbox/rhythmdb.xml | grep -E "(<title>|<location>)" |
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
##FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' | |
# triple space a file |
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
# |
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
# | |
def na=double.nan; | |
# | |
# Define time that OR begins (in hhmm format, | |
# 0930 is the default): | |
# | |
input ORBegin = 0930; | |
# | |
# Define time that OR is finished (in hhmm format, | |
# 10:00 is the default): |
OlderNewer