Skip to content

Instantly share code, notes, and snippets.

View mindvox's full-sized avatar

Karl Bateman mindvox

View GitHub Profile
@mindvox
mindvox / keybase.md
Created October 19, 2017 20:55
Keybase identity verification step

Keybase proof

I hereby claim:

  • I am karlbateman on github.
  • I am karlbateman (https://keybase.io/karlbateman) on keybase.
  • I have a public key whose fingerprint is 1073 ED8B 3D45 07B5 D3D2 FA6B CAD1 3CD8 8AEF C71B

To claim this, I am signing this object:

@mindvox
mindvox / nginx.conf
Created July 6, 2017 13:54 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@mindvox
mindvox / install.sh
Last active July 19, 2017 11:21
🎁 Docker and Compose installation script for Debian 9 (stretch) amd64.
#!/bin/sh
##
# Test script for PIPSI installations on
# debian 8 (jessie) amd64 hosts.
#
# configure environment
export PATH=$(whoami)/.local/bin:$PATH
# install dependencies
@mindvox
mindvox / README.md
Last active June 16, 2017 12:13
Automatically setup Debian apt sources.

Debian 8 (Jessie)

Script to automatically configure apt sources. You can use this script by running the following command as root from a debian terminal.

curl -sSL 'https://git.io/vHxcV' | sh
@mindvox
mindvox / README.md
Last active March 7, 2017 12:34
Fork bombs 😈

⋔ The Fork Bomb

In computing, a fork bomb (also called rabbit virus or wabbit) is a denial-of-service attack wherein a process continually replicates itself to deplete available system resources, causing resource starvation and slowing or crashing the system.

@mindvox
mindvox / storage.service.ts
Created January 31, 2017 19:58
Storage service for Angular2 Apps
import { Injectable } from '@angular/core';
@Injectable()
export class StorageService {
// STORAGE
static getItem(key: string): any {
return this.get(localStorage.getItem(key));
}
@mindvox
mindvox / monokai.xml
Last active January 7, 2017 16:26
Monokai colour scheme for gEdit
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme id="monokai-extended" _name="Monokai Extended" version="1.0">
<author>Karl Bateman</author>
<_description>Monokai theme for gEdit</_description>
<style name="bracket-match" background="#333333" bold="true"/>
<style name="bracket-mismatch" background="#333333" underline="true"/>
<style name="c:preprocessor" foreground="#be84ff"/>
<style name="css:at-rules" foreground="#f92672"/>
<style name="css:color" foreground="#be84ff"/>
<style name="css:keyword" foreground="#66d9ef"/>
@mindvox
mindvox / README.md
Created December 20, 2016 19:19
Fiddler - A series of fiddles for various JS stuff.
@mindvox
mindvox / config.fish
Last active January 19, 2017 21:19
Fish Shell Configuration
##
# Fish Configuration
#
# Coloured with the Base16 palette
# Zsh 'robbyrussell' style
#
# https://gist.github.com/karlbateman/f08e49a50d284e9f67032de0e2e6d43d
#
set -g -x PATH /usr/local/bin $PATH
@mindvox
mindvox / settings.json
Last active May 25, 2017 17:59
VS Code Configuration
{
"editor.fontFamily": "'Roboto Mono', 'Source Code Pro', 'Courier New', monospace, 'Droid Sans Fallback'",
"editor.fontWeight": "normal",
"editor.fontSize": 14,
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.cursorBlinking": "phase",
"editor.renderLineHighlight": "all",
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vscode-icons",