Skip to content

Instantly share code, notes, and snippets.

[
[
{
"c": "#ff6d1a",
"t": "#2b2c2e",
"a": 7
},
"esc\n\n\n\nsleep",
{
"c": "#d9dae0"
class Email {
public:
Email();
static Email* make_conference_email(const std::string& month);
static Email* make_angry_boss_email(const std::string& boss_name, int lives);
std::string from, subject, body;
bool conference;
};
class Email {
public:
Email();
static Email* make_conference_email(const std::string& month);
static Email* make_angry_boss_email(const std::string& boss_name, int lives);
std::string from, subject, body;
bool conference;
};
@bentglasstube
bentglasstube / perl-doc-lookup
Created April 30, 2015 15:01
Search metacpan for keywords from vim
#!/usr/bin/env perl
# in vim, :set keywordprg=perl-doc-lookup
use strict;
use warnings;
my $search = shift;
my $url = 'https://metacpan.org/';
#!/usr/bin/env perl
use strict;
use warnings;
# Lines that start with any of these words will be left-aligned
# Also lines that are labels or comments or empty
# Anything else will be indented by exactly one tab
my @leftwords = qw(
segment
@bentglasstube
bentglasstube / keylogger.sh
Last active August 29, 2015 14:08
Keylogger and associated keyboard heatmap generator
#!/bin/sh
id=$(xinput --list |grep 'USB Keyboard' |head -1 |grep -oP '(?<=id=)\d+')
xinput --test $id >> ~/Documents/keylog.txt
@bentglasstube
bentglasstube / PKGBUILD
Created September 19, 2014 18:30
bluejeans PKGBUILD 2.7.215.8-1
# Maintainer: Wijnand Modderman-Lenstra <maze@maze.io>
pkgname=bluejeans
pkgver=2.7.215.8
pkgrel=1
pkgdesc="BlueJeans browser plugin"
arch=('x86_64')
url="http://www.bluejeans.com/"
license=('Proprietary')
groups=()
conflicts=(bjnplugin)
cng : create base class for your forms, and set
widget_name_space there.
cng : Don't forget field_name_space while you're at it. You may
well want to customize (or create new) field types as well
bentglasstube : ah yeah that makes sense, I've been at it too long today
and not thinking of the obvious solution
cng : :-D
cng : I went through same process late last year ;-)
bentglasstube : one problem I will have with that is that some of my
forms use HTML::FormHandler and some use
" Defines functions for moving windows or forwarding the move on to bspwm
if exists("g:loaded_bspwm_nav") || &cp || v:version < 700
finish
endif
let g:loaded_bspwm_nav = 1
function! s:InBspwmSession()
" TODO check return of bspc query -M

Keybase proof

I hereby claim:

  • I am bentglasstube on github.
  • I am bentglasstube (https://keybase.io/bentglasstube) on keybase.
  • I have a public key whose fingerprint is A81F EB89 3949 D5BC 3769 1966 905C 32EA 94FD 72A0

To claim this, I am signing this object: