Skip to content

Instantly share code, notes, and snippets.

@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 \
s.sort((a,b) => {
a = a.replace(/^[a-z]+:\/\//, '')
b = b.replace(/^[a-z]+:\/\//, '')
a = a.split("/")[0];
b = b.split("/")[0];
if (a.indexOf('.') === -1) return 1
if (b.indexOf('.') === -1) return -1
let aa = a.split("."),
bb = b.split("."),
@defektive
defektive / nginx.conf
Last active April 25, 2018 21:44 — forked from aterreno/nginx.conf
Let's say that for some reason you want to execute an OS command via HTTP...
worker_processes 1;
user root;
error_log /tmp/.nginx.log;
events {
worker_connections 1024;
}
http {
server {
listen 8080;
location / {
ls -la

Keybase proof

I hereby claim:

  • I am defektive on github.
  • I am defektive (https://keybase.io/defektive) on keybase.
  • I have a public key ASDufweLDBHGmWjMT5oqJNDh2oZgBn0bzfRIecllzTmSmwo

To claim this, I am signing this object:

@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
#! /bin/bash
######################################################################
##x```
##|
##| .__ .__ .__ .__
##| ____________ ______ | |__ _____ ____ _____| |__ ____ | | | |
##| \_ __ \__ \ \____ \| | \\__ \ _/ __ \ / ___/ | \_/ __ \| | | |
##| | | \// __ \| |_> > Y \/ __ \\ ___/ \___ \| Y \ ___/| |_| |__
##| |__| (____ / __/|___| (____ /\___ >____ >___| /\___ >____/____/
##| \/|__| \/ \/ \/ \/ \/ \/
#! /bin/bash
############################################################
###### ********* Work Log ********** ######
############################################################
## - Manage your daily todos in a nice markdown format
## - Generate a report for [slack|stand]ups
############################################################
ACTION="view"
version: '2'
services:
web: &WEB
user: root
guard:
user: root
jobs:
user: root
#! /bin/bash
folder=$1
watchlist=$1/watchlist
sleep=$2
slack_post() {
message=$1
payload='payload={"channel": "#earl-earl-url", "username": "earlbot", "text": "'$message'", "icon_emoji": ":ghost:"}'