Skip to content

Instantly share code, notes, and snippets.

View nerflad's full-sized avatar

Eric Bailey nerflad

View GitHub Profile
# Maintainer: oliver < a t > first . in-berlin . de
# Contributor: charlesthehawk at yahoo dot com
# Contributor: Serge Zirukin <ftrvxmtrx@gmail.com>
pkgname=ocaml-sqlite3
_pkgname=sqlite3-ocaml
pkgver=4.4.0
pkgrel=2
pkgdesc="SQLite3 bindings for OCaml"
arch=('i686' 'x86_64')
@nerflad
nerflad / PKGBUILD
Created January 20, 2018 09:37
quake3-cpma-maps
# Contributor: Slash <demodevil5[at]yahoo[dot]com>
# Maintainer: Lukas Sabota [prg318] <LTsmooth42[at]gmail[dot]com>
pkgname=quake3-cpma-maps
pkgver=20180120
pkgrel=1
pkgdesc="Challenge ProMode Arena (CPMA) Official Mappack (Can be used in any Quake 3 Mod)."
url="http://playmorepromode.org"
license=('custom')
arch=('any')
@nerflad
nerflad / create-SSL.sh
Created January 17, 2018 11:08
create a self-signed SSL cert
#!/bin/bash
which openssl || echo Missing dependency openssl || exit 1
if ! [[ -d ssl ]]; then
mkdir ssl;
fi
openssl genrsa -out ./ssl/client-key.pem 2048
@nerflad
nerflad / unfavorite.js
Created December 20, 2017 03:42 — forked from ashander/unfavorite.js
Delete all your favorites (unfavorite or unlike every tweet) on twitter.com (thx to @JamieMason and @b44rd for inspiring this)
// 1. Go to https://twitter.com/i/likes
// 2. Keep scrolling to the bottom repeatedly until all your favs are loaded.
// 3. Run this in your console (open in chrome by View > Developer > JavaScript Console)
// Notes: this may take a while if you have a lot of favs/likes
// you can only access your most recent ~2000 likes.
// inspired by https://gist.github.com/JamieMason/7580315
$('.ProfileTweet-actionButtonUndo').click()
@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')
#!/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 / 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,
#!/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",\
#!/bin/sh
xhost +local:
@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%