Skip to content

Instantly share code, notes, and snippets.

@bsdf
bsdf / sysinfo
Last active December 21, 2015 06:28
Processor Information:
Model: iMac12,2
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x2a
CPU Stepping: 0x7
CPU Type: 0x0
Speed: 3400 Mhz
8 logical processors
4 physical processors
@bsdf
bsdf / brewcd.zsh
Last active December 12, 2015 12:19
adds 'cd' command to brew which lets you cd into a formula's directory
unfunction brew &> /dev/null
orig=$(which brew)
function brew() {
if [[ $1 = 'cd' ]]; then
dir=$($orig --prefix $2)
if [[ $? -eq 0 ]]; then
# cd to the formula's prefix
cd $dir
else
@bsdf
bsdf / gist:3686369
Created September 9, 2012 18:44
tblq
#!/usr/bin/env perl
use strict;
use warnings;
use WWW::Tumblr;
die 'u need to specify some filesz' if not @ARGV;
my $t = WWW::Tumblr->new(
// ==UserScript==
// @name kilxor_20090809
// @namespace
// @description
// @include http://ilx.wh3rd.net/*
// @include http://ilx.p3r.net/*
// @include http://www.ilxor.com/*
// ==/UserScript==
// YOU NEED TO MODIFY THE fules LINE BELOW
package main
import (
"bytes"
"crypto/hmac"
"crypto/sha1"
"encoding/base64"
"fmt"
"net/url"
"sort"
bsdf@europa> cat asdf.txt ~
\ o | --
@bsdf
bsdf / gist:2945730
Created June 17, 2012 20:59
i am siri in a room
Do you want
's's's not going to get into the seas leaving Florence so so so much
What you should raise sequences aren't cheap price I'm gone this moon not so much construction move and select's
Onions do you want
's's's not going to give unto you see me
Student section is this what you should raise this is a cheap price I'm going to move not so much residence
#!/usr/bin/perl
# Usage: upgrade-cpan.pl 5.14.0 | sort -u | cpanm
use strict;
use File::Find::Rule;
use JSON;
my $old = shift;
my @files = File::Find::Rule->file->name('install.json')->in("$ENV{HOME}/perl5/perlbrew/perls/perl-$old/lib/site_perl/$old");
for my $file (@files) {
#!/usr/bin/env perl
use utf8;
binmode STDOUT, ":utf8";
while (<>) {
tr/A-Za-z/๐•ฌ๐•ญ๐•ฎ๐•ฏ๐•ฐ๐•ฑ๐•ฒ๐•ณ๐•ด๐•ต๐•ถ๐•ท๐•ธ๐•น๐•บ๐•ป๐•ผ๐•ฝ๐•พ๐•ฟ๐–€๐–๐–‚๐–ƒ๐–„๐–…๐–†๐–‡๐–ˆ๐–‰๐–Š๐–‹๐–Œ๐–๐–Ž๐–๐–๐–‘๐–’๐–“๐–”๐–•๐––๐–—๐–˜๐–™๐–š๐–›๐–œ๐–๐–ž๐–Ÿ/;
print;
}
@bsdf
bsdf / gist:1350436
Created November 9, 2011 04:51
FUCK
F
FFFFUF FF
FKF CKKCCU
UUFUUUUFKKKCUCFU
FU CU FF F UF FFFKCFKKCKKKKFFU
F FFUUFFU F UFUFUUFC UFCUKFCC UFCKKKCF
KFK FUFCFCU FF F FUFF FC F F KFUCFCF F FU FFFUFKK
FCUUK KKKKKKFKC F F CCUU KCUCFUFFF F F FU F KKKKF
FFF KUUKCUK FKU CCFKU CF FKFKKKUFU FFF FUFKFK
FUUKCUKCF UU FCCKKKK C FFF FUKF FKKKKCCCF FFF U FUUFKKFFF