Skip to content

Instantly share code, notes, and snippets.

View cstrouse's full-sized avatar
💭
Bug Bounty

Casey Strouse cstrouse

💭
Bug Bounty
View GitHub Profile
@cstrouse
cstrouse / filterodds.py
Created June 9, 2016 05:29
Fast trick I just discovered for finding odd numbers
# odds number 1 through 99 inclusive
[x for x in range(1,100) if x &0x1 == True]
#!/bin/sh
curl -s -d @labelin.xml --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:pkgFormService" http://shipfims.com/pkgFedex3/pkgFormService | xmllint --xpath "//*[local-name()='attached_label']/text()" - | base64 -d
@cstrouse
cstrouse / 99-synaptics-overrides.conf
Created October 1, 2016 02:15
Enables tap-to-click functionality for the touchpad on the HP Mini 311 under Fedora 24 with LXDE
Section "InputClass"
Identifier "touchpad overrides"
MatchIsTouchpad "on"
Driver "libinput"
Option "Tapping" "on"
EndSection
OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. It can be done in Smalltalk and in LISP. There are possibly other systems in which this is possible, but I'm not aware of them.
@cstrouse
cstrouse / gravatar.lsp
Created December 21, 2016 05:20
Generate a gravatar profile image URL in newLISP. Lacks optional parameters for image size, image rating, and default image type.
(module "crypto.lsp")
(define *base-url* "https://secure.gravatar.com/avatar/")
(define (hash email)
(crypto:md5 (lower-case (trim email))))
(define (gravatar email)
(string *base-url* (hash email)))
@cstrouse
cstrouse / .vimrc
Last active February 5, 2017 08:56
" required for vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
" load bundles/plugins
call vundle#begin()
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-git'
chronos@localhost /usr/local/tmp/p7zip_16.02 $ make test
mkdir -p bin
make -C CPP/7zip/Bundles/Alone all
make[1]: Entering directory `/usr/local/tmp/p7zip_16.02/CPP/7zip/Bundles/Alone'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/tmp/p7zip_16.02/CPP/7zip/Bundles/Alone'
mkdir -p bin
make -C CPP/7zip/Bundles/SFXCon all
make[1]: Entering directory `/usr/local/tmp/p7zip_16.02/CPP/7zip/Bundles/SFXCon'
make[1]: Nothing to be done for `all'.
make check-here
make[1]: Entering directory `/usr/local/tmp/nettle-3.3'
true
make[1]: Leaving directory `/usr/local/tmp/nettle-3.3'
set -e; for d in tools testsuite examples; do \
echo "Making check in $d" ; (cd $d && make check); done
Making check in tools
make[1]: Entering directory `/usr/local/tmp/nettle-3.3/tools'
true
make[1]: Leaving directory `/usr/local/tmp/nettle-3.3/tools'
cd src/optipng && \
make test && \
cd ../..
make[1]: Entering directory `/usr/local/tmp/optipng-0.7.6/src/optipng'
./optipng -o1 -q img/pngtest.png -out=pngtest.out.png
optipng ... ok
test/bitset_test < test/bitset_test.dat > test/bitset_test.out
diff -b -u test/bitset_test.expect test/bitset_test.out
bitset_test ... ok
test/ratio_test > test/ratio_test.out
chronos@localhost /usr/local/tmp/figlet-2.2.5 $ ./run-tests.sh fonts/
Default font dir: /usr/local/share/figlet
Current font dir: fonts/
Default font: standard
_____ _ _ _
|_ _|__ __| |_ _ _ ___ ____ _| | |_ ___
| |/ -_|_-< _| | '_/ -_|_-< || | | _(_-<
|_|\___/__/\__| |_| \___/__/\_,_|_|\__/__/
Run test 001: showfigfonts output... pass