Skip to content

Instantly share code, notes, and snippets.

View nerflad's full-sized avatar

Eric Bailey nerflad

View GitHub Profile
@nerflad
nerflad / keybase.md
Created January 6, 2017 18:39
verifying meself...

Keybase proof

I hereby claim:

  • I am nerflad on github.
  • I am nerflad (https://keybase.io/nerflad) on keybase.
  • I have a public key ASBE5NCN6npxKEnnUgcgzM9q6-lBTBH7JoJpYnEC0X9Eigo

To claim this, I am signing this object:

@nerflad
nerflad / reclaimWindows10.ps1
Created January 8, 2017 09:44 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
#!/bin/sh
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:'
@nerflad
nerflad / AlternativeFacts.vim
Last active February 7, 2017 01:10
Swap boolean truthiness keywords using increment/decrement keys
function ProvideAlternativeFacts()
if expand('<cword>') == "True"
execute "normal! ciwFalse"
elseif expand('<cword>') == "False"
execute "normal! ciwTrue"
endif
endfunction
nnoremap <c-a> :call ProvideAlternativeFacts()<CR><C-a>
nnoremap <c-x> :call ProvideAlternativeFacts()<CR><C-x>
@echo off
setlocal EnableExtensions
setlocal EnableDelayedExpansion
for /f "usebackq" %%i in (`wmic os get version ^| findstr /b "[0-9].*"`) do (
set "winver=%%i"
set "winver=!winver:~0,3!
)
echo %winver%
#!/bin/sh
xhost +local:
#!/usr/bin/env python3
from bs4 import BeautifulSoup
import os, sys
import urllib.request
import time
urls = ("https://www.notsomoderndrummer.com/not-so-modern-drummer/columns/david-barsalou/mike-clark-words-of-wisdom?rq=mike%20clark%3A%20words%20of%20wisdom",\
"https://www.notsomoderndrummer.com/not-so-modern-drummer/columns/david-barsalou/mike-clark-words-of-wisdom-part-2?rq=mike%20clark%3A%20words%20of%20wisdom",\
"https://www.notsomoderndrummer.com/not-so-modern-drummer/columns/david-barsalou/mike-clark-words-of-wisdom-part-3?rq=mike%20clark%3A%20words%20of%20wisdom",\
@nerflad
nerflad / reset.css
Created August 24, 2017 07:18
CSS Reset
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
#!/bin/sh
DRIVE_PATH=$(mount |grep google-drive-ocamlfuse |awk '{print $3}')
fn_usage () {
echo Usage:
echo $(basename $0) [PATH]
echo
echo If a Google Drive directory is mounted through google-drive-ocamlfuse,
echo unmount it. Otherwise, mount it at PATH.
@nerflad
nerflad / PKGBUILD
Last active November 17, 2017 01:32
ocamlnet 4.1.4 PKGBUILD
# Maintainer: oliver < a t > first . in-berlin . de
# Contributor: Serge Zirukin <ftrvxmtrx@gmail.com>
# Contributor: Sergei Lebedev <superbobry@gmail.com>
# Contributor: Nicolas Pouillard <Nicolas.Pouillard@gmail.com>
# Contributor: Guillem Rieu <guillemr@gmx.net>
pkgname=ocamlnet
pkgver=4.1.4
pkgrel=1
pkgdesc="A library for Web and Internet programming in OCaml"
arch=('i686' 'x86_64')