Skip to content

Instantly share code, notes, and snippets.

View BitPuffin's full-sized avatar
🤡
clowning about

Isak BitPuffin

🤡
clowning about
View GitHub Profile
@BitPuffin
BitPuffin / gist:1184452
Created August 31, 2011 19:22
Useful when mysql is shitting
netstat -aln --program | grep 3000
kill -9 ID
Ctrl-c ctrl-z fg
USE HOOF
@judofyr
judofyr / camping-csrf.rb
Created October 14, 2011 07:11
Protect Camping apps from CSRF
require 'camping'
require 'camping/session'
require 'rack/csrf'
Camping.goes :E
module E
use Rack::Csrf
include Camping::Session
end
@BitPuffin
BitPuffin / pinning
Created July 16, 2012 14:22
Apt settings for debian
Package: *
Pin: release o=apt-build
Pin-Priority: 995
Package: *
Pin: release o=Debian,a=testing,l=Debian-Security
Pin-Priority: 990
Package: *
Pin: release o=Unofficial Multimedia Packages,a=testing,l=Unofficial Multimedia Packages
Installing updates...install: ///usr/src/sys/dev/cxgbe/tom/t4_ddp.c: No such file or directory
install: ///usr/src/sys/dev/drm2/drm_global.c: No such file or directory
install: ///usr/src/sys/dev/drm2/drm_global.h: No such file or directory
install: ///usr/src/sys/dev/drm2/drm_ioc32.c: No such file or directory
install: ///usr/src/sys/dev/drm2/i915/i915_ioc32.c: No such file or directory
install: ///usr/src/tools/regression/filemon/timed-forkb.c: No such file or directory
done.
anonymous
anonymous / homeromstervarcwdremoteprojectssepen-toolsportdb-search.txt
Created April 23, 2014 09:33
/home/romster/var/cwd/remote/projects/sepen-tools/portdb-search
#!/usr/bin/perl -w
#
# Description: Perl script for browsing Crux portdb
# Author: Jose V Beneyto, sepen at users dot sourceforge dot net
# License: GNU/GPL (http://www.gnu.org/copyleft/gpl.html)
use strict;
use XML::Parser;
use LWP::UserAgent;
@BitPuffin
BitPuffin / timelapse.sh
Last active August 29, 2015 14:01
Timelapse mac os x
while true; do
FILENAME=`date "+%y-%m-%d-%s"`.png
screencapture -x -f $FILENAME
sleep 5
done

Keybase proof

I hereby claim:

  • I am BitPuffin on github.
  • I am bitpuffin (https://keybase.io/bitpuffin) on keybase.
  • I have a public key whose fingerprint is 86EA 3235 10E1 FB17 D2D5 1FA3 87A1 C182 33E4 A652

To claim this, I am signing this object:

@zvodd
zvodd / polygot_argument_launch.batsh
Last active August 8, 2017 12:49
Bash & Batch / Bat Polyglot template and Argument shim
a1 = a1;
a2 = a2;
a3 = a3;
a4 = a4;
a5 = a5;
a6 = a6;
a7 = a7;
a8 = a8;
a9 = a9;
@BitPuffin
BitPuffin / polygot_argument_launch.batsh
Created August 8, 2017 12:49 — forked from zvodd/polygot_argument_launch.batsh
Bash & Batch / Bat Polyglot template and Argument shim
a1 = a1;
a2 = a2;
a3 = a3;
a4 = a4;
a5 = a5;
a6 = a6;
a7 = a7;
a8 = a8;
a9 = a9;