Skip to content

Instantly share code, notes, and snippets.

Eric Bailey nerflad

Block or report user

Report or block nerflad

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ocaml-sqlite3 PKGBUILD
# 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 Jan 20, 2018
quake3-cpma-maps
View PKGBUILD
# 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 Jan 17, 2018
create a self-signed SSL cert
View create-SSL.sh
#!/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 Dec 20, 2017 — 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)
View unfavorite.js
// 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 Nov 17, 2017
ocamlnet 4.1.4 PKGBUILD
View 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')
View mount-goog.sh
#!/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.
View reset.css
/* 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,
View wisdom-of-clark.py
#!/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",\
View get-windows-version.bat
@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%
You can’t perform that action at this time.