Skip to content

Instantly share code, notes, and snippets.

View acidburn0zzz's full-sized avatar

acidburn0zzz acidburn0zzz

View GitHub Profile
@acidburn0zzz
acidburn0zzz / upmusic
Created April 6, 2019 22:27 — forked from jasonwryan/upmusic
Repopulate symlinks from udev rule
#!/usr/bin/env bash
# repopulate music links when drive plugged in
shopt -s nullglob
export DISPLAY=:0
export XAUTHORITY=/home/jason/.Xauthority
music=(/media/Apollo/Music/*)
find /home/jason/Music -type l -exec rm {} \;
@acidburn0zzz
acidburn0zzz / 01_summary.txt
Created February 21, 2019 12:37 — forked from andrew/01_summary.txt
List of depended upon scoped packages in npm pulled from https://libraries.io
Total discovered scoped packages: 843
Total users who published discovered scoped packages: 304
Total published npm modules dependent on discovered scoped packages: 587
Total scoped modules depended upon by open source github repos: 599
Total open source github repos dependent on discovered scoped packages: 1105 (944 not forks)
Total github users/orgs depending upon discovered scoped packages: 412
@acidburn0zzz
acidburn0zzz / p2sh_p2wpkh.rb
Created January 23, 2019 08:10 — forked from pierrenoizat/p2sh_p2wpkh.rb
Generate Segwit P2SH-P2WPKH address, create tx spending from it.
require 'btcruby'
require 'bitcoin'
require 'bech32'
require './segwit_addr'
require 'active_support'
require 'active_support/core_ext'
require 'ffi'
# Computation of P2SH-P2WPKH address
@acidburn0zzz
acidburn0zzz / base64.js
Created December 23, 2018 22:21 — forked from stubbetje/base64.js
Base64 encode and decode in javascript
var Base64 = {
characters: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" ,
encode: function( string )
{
var characters = Base64.characters;
var result = '';
var i = 0;
do {
@acidburn0zzz
acidburn0zzz / dnsmasq.conf
Created October 10, 2018 07:46
dnsmasq 127.0.0.1:53 -> 127.0.0.1:54 (osx)
port=53
address=/lo0/127.0.0.1
server=127.0.0.1#54
user=nobody
group=nobody
interface=lo0
listen-address=127.0.0.1
no-dhcp-interface=lo0
bind-interfaces
@acidburn0zzz
acidburn0zzz / pornhub-fullscreen.js
Created October 3, 2018 11:31 — forked from thecotne/pornhub-fullscreen.js
pornhub fullscreen on orientation change avoiding "API can only be initiated by a user gesture." warning
if(('orientation' in screen) && !player.settings.embeds.enabled) {
screen.orientation.addEventListener('change', function (e) {
if (screen.orientation.type === 'landscape-primary' || screen.orientation.type === 'landscape-secondary') {
player.fullscreen.enter();
} else {
player.fullscreen.exit();
}
e.preventDefault();
e.stopPropagation();
});
PlayStation®3 system includes following third-party open source software.<br/>
<br/>
<br/>
AVM+<br/>
<br/>
The source code version of this software is made available to you under the terms of the Mozilla Public License Version 1.1 at http://www.scei.co.jp/ps3-license/avm.html<br/>
<br/>
<br/>
<br/>
eCOS<br/>
@acidburn0zzz
acidburn0zzz / gist:5b0b1a3af6ddd759c66558550a9f59b3
Created August 4, 2018 23:09 — forked from popman/gist:5209905
4pic as far as level 414.
ACE, ACTION, ADDRESS, AIRPORT, ALARM, ALBUM, AMP, ANIMAL, ARM, ASSEMBLE, BACK, BAIT, BAKE, BALANCE, BALL, BAR, BARK, BARREL, BASIC, BASS, BAT, BEANS, BEAT, BED, BELLOWS, BICYCLE, BIG, BILL, BITTER, BLACK, BLOCK, BLOOD, BLUBBER, BLUE, BLUFF, BOOK, BOOKMARK, BOW, BOWLING, BOX, BRAIN, BRAVE, BREACH, BREEZE, BRIDGE, BROOD, BUBBLE, BUNCH, BURNOUT, BUST, BUTT, CAMPAIGN, CAN, CAPITAL, CAPTURE, CAR, CARD, CARRIER, CAST, CATCH, CELL, CHAIN, CHAIR, CHANGE, CHARGE, CHARM, CHECK, CHEST, CHILDREN, CHIN, CHIP, CHOICE, CLOCK, CLOTHES, CLUB, CLUTCH, COACH, COAT, CODE, COLD, COLLECT, COLOR, COMBINE, CONFLICT, CONVERSE, COOL, COPY, COSTUME, COUNTER, COUPLE, COURAGE, COURSE, CRADLE, CRANE, CRANK, CRASH, CRASH, CREDIT, CROSS, CROSS, CROWN, CRUMBLE, CRY, CUP, CURL, DATE, DEAL, DECK, DEEP, DEGREES, DICTATE, DIRTY, DIVINE, DIVING, DOMINATE, DOT, DOWN, DRAIN, DRAW, DREAM, DRIVER, DRY, DUCK, DULL, EDGE, EFFECTS, EMO, FACE, FAIR, FALL, FAN, FAST, FATHER, FILE, FIRE, FISH, FIT, FLASH, FLOAT, FLUSH, FLY, FOAM, FRANCE, FROST, FRUIT, FULL
@acidburn0zzz
acidburn0zzz / .zshrc
Created July 28, 2018 01:06 — forked from yingray/.zshrc
[2018.4] Terminal Configuration - Macbook pro 15"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/yingray_lu/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"
@acidburn0zzz
acidburn0zzz / domtokenlist_feature_detection.js
Created July 3, 2018 20:45 — forked from igrigorik/domtokenlist_feature_detection.js
DOMTokenList supports() example for Preload
var DOMTokenListSupports = function(tokenList, token) {
if (!tokenList || !tokenList.supports) {
return;
}
try {
return tokenList.supports(token);
} catch (e) {
if (e instanceof TypeError) {
console.log("The DOMTokenList doesn't have a supported tokens list");
} else {