Skip to content

Instantly share code, notes, and snippets.

@defektive
defektive / arch-linux-install.md
Last active September 22, 2017 21:31 — forked from binaerbaum/arch-linux-install
Arch Linux, UEFI, Existing LUKS, NVMe install guide
@defektive
defektive / install.md
Last active August 11, 2020 13:03
Install bspwm, sxhkd on ubuntu 16.04

Dependecies

sudo apt-get install git \
                      xcb \
                      libxcb-util0-dev \
                      libxcb-ewmh-dev \
                      libxcb-randr0-dev \
                      libxcb-icccm4-dev \
                      libxcb-keysyms1-dev \
@defektive
defektive / .Xresources
Created March 3, 2016 23:58
WIP: ~/.Xresources
URxvt*scrollBar: false
Xft*dpi: 120
Xft*antialias: true
Xft*hinting: full
URxvt*geometry: 85x16
URxvt*fading: 0
URxvt*tintColor: #ffffff
URxvt*shading: 0
brad
Level: 24
Location: Commonwealth
Duration: 2d.2h.51m.2 days.2 hours.51 minutes
Race: HumanRace
Stats:
Locations Discovered: 83
Dungeons Cleared: 18
Days Passed: 46
Hours Slept: 10
@defektive
defektive / cherry-chapstick.js
Last active September 25, 2015 19:08
Scriptlet for firework
var CherryChapstick = (function (){
// Here is a bookmarklet
// javascript:(function()%7Bvar%20CherryChapstick%20%3D%20(function%20()%7Bfunction%20setupDom%20()%7Bif(window._cherryChapstick)%20%7Breturn%3B%7Dwindow._cherryChapstick%20%3D%20true%3B%24(%22body%22).css(%22padding-top%22%2C%20%2260px%22)%3B%24(%22.navbar-default%22).addClass(%22navbar-fixed-top%22)%3B%24(%22.navbar-right%22).before(%24('%3Cul%20class%3D%22nav%20navbar-nav%22%3E%3Cli%3E%3Ca%20href%3D%22%23%22%20class%3D%22toggle-fragile%22%3EToggle%20Fragile%3C%2Fa%3E%3C%2Fli%3E%3C%2Ful%3E'))%3Bvar%20styles%20%3D%20%24(%22%3Cstyle%3E%3C%2Fstyle%3E%22)%3Bstyles.html(%22.result.panel.expanded%20.toggle-group-item%20.glyphicon-chevron-down%20%7Bdisplay%3A%20inline-block%7D%20body.expand-fragile%20.result.panel.panel-warning%2C%20.result.panel.expanded%20.list-group%20%7Bdisplay%3A%20block%7D%20.result.panel.expanded%20.toggle-group-item%20.glyphicon-chevron-right%2C%20.toggle-group-item%20.glyphicon-chevron-down%2C%20.result.panel%20.list-group%2
@defektive
defektive / run_sprinklers.sh
Created August 17, 2015 13:37
simple shell script to run my sprinklers
#! /bin/bash
# station durations
STATION_1=10
STATION_2=5
STATION_3=5
STATION_5=5
STATION_6=5
# shouldnt need top change beyond here
@defektive
defektive / image.html
Last active August 29, 2015 14:25
JS: Export html element as an image
<!DOCTYPE html><html class=''>
<head><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="canonical" href="http://codepen.io/anon/pen/vOaeyK" />
<style class="cp-pen-styles"></style></head><body>
<div id="playground">
<style id="styles">
.main {
font: bold 100px "avenir";
color: #111;
#! /usr/bin/env bash --posix
echo hello `whoami`
# works on mac, not on linux
@defektive
defektive / gist:1012be815a89cbe294a0
Last active August 29, 2015 14:02
pirate bay categories to json map - run this on the browse page
(function () {
var categoryLinks = document.querySelectorAll("#categoriesTable a"),
categoryMap = {},
link, name, id, currentParentCat, key;
for(var i = 0; i < categoryLinks.length; i++) {
link = categoryLinks[i];
@defektive
defektive / gist:b5c543a4b5ad3f7b4a1b
Created May 26, 2014 03:40
Character Controller for unity
using UnityEngine;
using System.Collections;
public class ControllerScript : MonoBehaviour {
CharacterController controller;
public float speed = 5.0f;
public float jumpSpeed = 8.0f;
public float pushPower = 3.0f;