Skip to content

Instantly share code, notes, and snippets.

View michaelasper's full-sized avatar
🐩
it's complicated

corruptbytes michaelasper

🐩
it's complicated
View GitHub Profile
" vim-bootstrap 89346c6
"*****************************************************************************
"" Vim-PLug core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
endif
let vimplug_exists=expand('~/.vim/autoload/plug.vim')
if has("gui_running")
" C-Space seems to work under gVim on both Linux and win32
inoremap <C-Space> <C-n>
else " no gui
if has("unix")
inoremap <Nul> <C-n>
else
" I have no idea of the name of Ctrl-Space elsewhere
endif
endif

Keybase proof

I hereby claim:

  • I am michaelasper on github.
  • I am asper (https://keybase.io/asper) on keybase.
  • I have a public key ASCGt51C_vQgsG8lgGt_QxEZX-6LSvVJcy2-n7AHn2tC6Ao

To claim this, I am signing this object:

" vim-bootstrap 89346c6
"*****************************************************************************
"" Vim-PLug core
"*****************************************************************************
if has('vim_starting')
set nocompatible " Be iMproved
endif
let vimplug_exists=expand('~/.vim/autoload/plug.vim')
if has("gui_running")
" C-Space seems to work under gVim on both Linux and win32
inoremap <C-Space> <C-n>
else " no gui
if has("unix")
inoremap <Nul> <C-n>
else
" I have no idea of the name of Ctrl-Space elsewhere
endif
endif

CS 439H

Gheith's spinLock

class SpinLock{
    Atomic<bool> isTaken = false;
public:
    lock(){
        while(isTaken.exchange(true));
        // exchange returns value at location
 }
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=/Users/michaelasper/.cargo/bin:$PATH
export GOPATH=$HOME/Source/go
export PATH=$PATH:$GOPATH/bin
# Path to your oh-my-zsh installation.
export ZSH=/Users/michaelasper/.oh-my-zsh

How to install Hidden Services

  1. sudo apt-get install tor

  2. Edit _etc_tor/torrc

HiddenServiceDir /var/lib/tor/www_service/
HiddenServicePort 80 127.0.0.1:80
#include <iostream>
#include <vector>
#include <utility>
#include <functional>
#include <set>
#include <stack>
#include <queue>
using namespace std;
class CompareDist {
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %