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
### AutoKitteh Individual Contributor License Agreement | |
Thank you for your interest in contributing to open source software projects (“Projects”) made available by AutoKitteh or its affiliates (“AutoKitteh”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to AutoKitteh in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact meow@autokitteh.com. | |
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions. | |
**Copyright License.** You hereby grant, and agree to grant, to AutoKitteh a non-exclusive |
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
from random import shuffle | |
from typing import Tuple, Set, Optional, List | |
from itertools import dropwhile, takewhile, tee | |
_PLEADS = [ | |
'meow', | |
'ptal', | |
# etc | |
] |
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 | |
require() { | |
for what in $*; do | |
if !(which $what >& /dev/null); then | |
echo "error: $what is required to run this script, please install it" | |
exit 1 | |
fi | |
done | |
} |
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 | |
[[ $# -lt 2 ]] && echo "usage: `basename $0` src target" && exit 1 | |
which bar >& /dev/null | |
(( $? )) && echo "bar required" && exit 1 | |
dd if=$1 bs=1M | bar -s 4g | dd of=$2 bs=1M | |
exit $? |
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
-- grid browser | |
-- excerpt from xmonad.hs | |
gridBrowse cwd' = do | |
refresh | |
cwd <- liftIO $ canonicalizePath cwd' | |
isdir <- liftIO $ doesDirectoryExist cwd | |
if isdir | |
then do | |
ls <- liftIO $ getDirectoryContents cwd >>= markdirs |
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 | |
grn='\e[1;32m' | |
red='\e[0;31m' | |
cyn='\e[0;36m' | |
rst='\e[0m' | |
label= | |
tmpfn=/tmp/.sgs.$$ |
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 | |
notags() { | |
while read line; do | |
echo $line | sed -e "s/<[^>]*>/ /g" -e "s/ / /g" | |
done | |
} | |
user=$1 | |
wanted=$2 |
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/sh | |
first=$1 | |
second=$2 | |
shift 2 | |
after=$* | |
exec $first $after $second |
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/python | |
import os | |
import time | |
latest = {} | |
while True: | |
fs = os.listdir('.') | |
for f in fs: |
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/python | |
import os | |
import time | |
latest = {} | |
while True: | |
fs = os.listdir('.') | |
for f in fs: |