Skip to content

Instantly share code, notes, and snippets.

View mindvox's full-sized avatar

Karl Bateman mindvox

View GitHub Profile
@mindvox
mindvox / README.md
Last active November 12, 2015 09:05
APT source lists

APT source lists

A collection of apt source lists for UK based Linux hosts.

Usage

Simply copy and paste the relevant source.list into the following location /etc/apt/source.list.

@mindvox
mindvox / README.md
Last active November 12, 2015 09:14
Fish shell configurations

Fish Shell Configuration

Configuration files which create a fancy FiSH shell prompt. Note that these make use of the baseline unix utility for reporting the current working directory. To display the full path, simply replace the command (basename $PWD) with (prompt_pwd).

Installation

Create the config directory with mkdir -p ~/.config/fish as a regular user and as root. Copy the configurations for each to a file called ~/.config/fish/config.fish.

Configure as needed.

@mindvox
mindvox / npm-debug.log
Created November 22, 2015 12:46
NPM debug log for EADDRINUSE issue.
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'nodemon' ]
2 info using [email protected]
3 info using [email protected]
4 verbose install initial load of C:\Users\Karl Bateman\AppData\Roaming\npm\package.json
5 verbose readDependencies loading dependencies from C:\Users\Karl Bateman\AppData\Roaming\npm\package.json
@mindvox
mindvox / checkUrlExists.m1.py
Created January 19, 2016 19:30 — forked from fedir/checkUrlExists.m1.py
Check if URL exists via Python
from urllib2 import urlopen
code = urlopen("http://example.com/").code
if (code / 100 >= 4):
print "Nothing there."
# via http://stackoverflow.com/questions/1966086/how-can-i-determine-if-anything-at-the-given-url-does-exist
@mindvox
mindvox / gulpfile.babel.js
Last active April 5, 2016 16:30
Babel Gulpfile
// import dependancies
let config = require('./core/config');
let gulp = require('gulp'),
// styles
less = require('gulp-less'),
cssnano = require('gulp-cssnano'),
// scripts
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
// images
@mindvox
mindvox / README.md
Last active March 31, 2016 15:48
Debian NGINX Web Server Install

NGINX Web Server Install

Script which installs NGINX on Debian Jessie amd64 systems.

@mindvox
mindvox / Install_Autocomplete.sh
Last active October 12, 2016 08:34
Atom packages and setup
#!/usr/env sh
##
# Install autocomplete for Atom
#
echo 'Installing Atom Autocomplete' ; echo ;
apm install autocomplete-bibtex atom-ternjs autocomplete-python autocomplete-xml
echo 'Complete!'

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 4DB5 D63A E0CA 1506 1368 5AC3 B0F9 75B4 228F BAB1

To claim this, I am signing this object:

@mindvox
mindvox / filemaker-errors.json
Created August 20, 2016 15:43
JSONified FileMaker error codes and corresponding messages.
{
"-1": "Unknown error",
"0": "No error",
"1": "User canceled action",
"2": "Memory error",
"3": "Command is unavailable (for example, wrong operating system, wrong mode, etc.)",
"4": "Command is unknown",
"5": "Command is invalid (for example, a Set Field script step does not have a calculation specified)",
"6": "File is read-only",
"7": "Running out of memory",
@mindvox
mindvox / CodeWars.md
Last active January 6, 2017 18:19
A bunch of CodeWars solutions for Javascript code battles.