Random updates
This commit is contained in:
parent
f0f375a9b1
commit
f250a7192b
|
@ -0,0 +1,16 @@
|
|||
alias irc='irssi'
|
||||
alias motd='cat /etc/motd'
|
||||
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
alias psg='ps -ef| grep'
|
||||
alias alpine='alpine -sort arrival/reverse'
|
||||
alias biggest='du -a ~ | sort -n -r | head -n 10'
|
||||
alias mudgame='telnet localhost 5071'
|
||||
function cdl(){ cd $@; ls -l; }
|
||||
alias mtrek='telnet mtrek.com 1701'
|
||||
alias usenet='tin -r'
|
||||
alias units='~/Code/units/units-2.11/units -f ~/Code/units/units-2.11/definitions.units'
|
||||
alias beats_raw='echo "x = (`date +%s` + 3600) % 86400; scale=3; x / 86.4" | bc'
|
||||
alias beats='printf "@\e[0;36m`beats_raw`\e[m\n"'
|
|
@ -0,0 +1,106 @@
|
|||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# If set, the pattern "**" used in a pathname expansion context will
|
||||
# match all files and zero or more directories and subdirectories.
|
||||
#shopt -s globstar
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# set variable identifying the chroot you work in (used in the prompt below)
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
# off by default to not distract the user: the focus in a terminal window
|
||||
# should be on the output of commands, not on the prompt
|
||||
force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
PERL_MB_OPT="--install_base \"/home/krowbar/perl5\""; export PERL_MB_OPT;
|
||||
PERL_MM_OPT="INSTALL_BASE=/home/krowbar/perl5"; export PERL_MM_OPT;
|
||||
|
||||
export TZ=EST
|
||||
export PS1='$(beats):'$PS1
|
|
@ -1,25 +1,26 @@
|
|||
krowbar&^%207&^%1427290628
|
||||
krowbar&^%219&^%1430329472
|
||||
karlen&^%271&^%1426779321
|
||||
endorphant&^%473&^%1428280534
|
||||
endorphant&^%525&^%1430357885
|
||||
jumblesale&^%24&^%1426171214
|
||||
marcus&^%234&^%1428325792
|
||||
marcus&^%406&^%1430485408
|
||||
papa&^%48&^%1423148291
|
||||
epicmorphism&^%5&^%1421937744
|
||||
audy&^%66&^%1424228886
|
||||
audy&^%71&^%1429709970
|
||||
kc&^%18&^%1422326056
|
||||
vilmibm&^%9&^%1423247508
|
||||
cmr&^%18&^%1422919247
|
||||
cmr&^%86&^%1430441692
|
||||
imt&^%519&^%1424087616
|
||||
cndorphant&^%788&^%1424094192
|
||||
rain&^%17&^%1422310975
|
||||
sl2c&^%91&^%1424847521
|
||||
selfsame&^%1&^%1422230012
|
||||
bear&^%182&^%1425850622
|
||||
bear&^%187&^%1429911340
|
||||
coaxial&^%8&^%1422325983
|
||||
joe&^%8&^%1422325983
|
||||
hardmath123&^%4&^%1422325983
|
||||
leni&^%3&^%1422325983
|
||||
cel&^%10&^%1424492545
|
||||
cel&^%11&^%1430162676
|
||||
quote_bots&^%3&^%1424737471
|
||||
bave&^%1&^%1427591141
|
||||
scellef&^%5&^%1428094504
|
||||
scellef&^%13&^%1428707074
|
||||
cndorphbot&^%2&^%1430329439
|
||||
|
|
|
@ -11,3 +11,5 @@
|
|||
1426016256&^%endorphant&^%http://tilde.town/~wiki/ircbots.html
|
||||
1426298989&^%endorphant&^%http://tilde.town/~wiki/ircbots.html | txtminebot had a data wipe for a feature push | !golem
|
||||
1426455418&^%endorphant&^%http://tilde.town/~wiki/ircbots.html | !golem
|
||||
1429088209&^%jumblesale&^%
|
||||
1429628571&^%endorphant&^%http://tilde.town/~wiki/ircbots.html
|
||||
|
|
|
@ -64,3 +64,19 @@
|
|||
1426781957&^%krowbar&^%html + cheeses
|
||||
1427275885&^%jumblesale&^%pugtalk
|
||||
1428024389&^%vilmibm&^%let's talk about html, feels, and pugs
|
||||
1428586760&^%krowbar&^%how do you respond when people don't answer direct questions?
|
||||
1428903500&^%vilmibm&^%pugs pugs pugs pugs pugs pugs pugs baby pubgs
|
||||
1428906211&^%vilmibm&^%pugs pugs pugs pugs pugs pugs pugs baby pgs
|
||||
1428906215&^%vilmibm&^%pugs pugs pugs pugs pugs pugs pugs baby pugs
|
||||
1428955163&^%krowbar&^%bugs hugs jugs lugs mugs pugs rugs baby tugs
|
||||
1429088231&^%jumblesale&^%pugs pugs pugs pugs pugs pugs pugs pugs pugs
|
||||
1429244214&^%hardmath123&^%Server's out of space. Don't panic (yet!).
|
||||
1429519412&^%karlen&^%vilmibm made space for us all in his heart and server
|
||||
1429709634&^%krowbar&^%How geographically close are you to where you grew up? What made you decide to stay or leave?
|
||||
1429867870&^%jumblesale&^%pugs pugs pugs pugs pugs there's no space left
|
||||
1430197818&^%vilmibm&^%gotta have space-spa-space-spa-space
|
||||
1430241746&^%krowbar&^%What is the first piece of software you can remember buying?
|
||||
1430244931&^%krowbar&^%Tilde.town hard drive expansion fund: Let your intereste be know at ~krowbar/public_html/donators.html
|
||||
1430244952&^%krowbar&^%Tilde.town hard drive expansion fund: Let your interest be known at ~krowbar/public_html/donators.html
|
||||
1430257496&^%vilmibm&^%donate to tilde.town / new disk! https://www.patreon.com/nathanielksmith | check out ~krowbar/public_html/donators.html
|
||||
1430258808&^%vilmibm&^%downtime tonight for new disk! | donate to tilde.town! https://www.patreon.com/nathanielksmith | ~krowbar/public_html/donators.html
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
krowbar&^%22&^%29
|
||||
krowbar&^%22&^%35
|
||||
um&^%11&^%8
|
||||
kc&^%0&^%22
|
||||
marcus&^%4&^%1
|
||||
khoi&^%1&^%0
|
||||
karlen&^%0&^%9
|
||||
jumblesale&^%4&^%3
|
||||
karlen&^%0&^%10
|
||||
jumblesale&^%6&^%6
|
||||
dan&^%1&^%0
|
||||
datagrok&^%0&^%1
|
||||
papa&^%1&^%0
|
||||
vilmibm&^%1&^%12
|
||||
vilmibm&^%1&^%18
|
||||
selfsame&^%1&^%0
|
||||
endorphant&^%0&^%6
|
||||
endorphant&^%0&^%7
|
||||
hardmath123&^%0&^%1
|
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/python
|
||||
import fileinput
|
||||
import random
|
||||
import sys
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser(description='Print some random dictionary words.')
|
||||
parser.add_argument('-d', dest='dictionary', metavar='DICT',
|
||||
help='supply a dictionary', default='/usr/share/dict/american-english-large')
|
||||
parser.add_argument('-c', dest='count', type=int,
|
||||
help='specify how many words you want per line', default=10)
|
||||
parser.add_argument('-l', dest='lines', type=int,
|
||||
help='specify how many lines of random words you want', default=1)
|
||||
parser.add_argument('--no-appos', action='store_true',
|
||||
help='remove words with appostrophes')
|
||||
parser.add_argument('--no-proper', action='store_true',
|
||||
help='remove words that start with a capital letter')
|
||||
|
||||
args = parser.parse_args()
|
||||
#print args
|
||||
|
||||
with open(args.dictionary, "r") as wordsfile:
|
||||
words = wordsfile.readlines()
|
||||
if(args.no_appos):
|
||||
words[:] = [word for word in words if word.find('\'') == -1]
|
||||
if(args.no_proper):
|
||||
words[:] = [word for word in words if not word[0].isupper()]
|
||||
for _ in range(0, args.lines):
|
||||
print ' '.join([w.strip("\n") for w in random.sample(words, args.count)])
|
Loading…
Reference in New Issue