Skip to content

Instantly share code, notes, and snippets.

View andrewdc's full-sized avatar
💭
winning so much at the cyber

Andrew Colclough andrewdc

💭
winning so much at the cyber
View GitHub Profile
@andrewdc
andrewdc / zconf-stuff
Created June 11, 2020 19:41
sample zconf
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# export PATH="$HOME/.npm-packages/bin:$PATH"
# export PATH="$HOME/.node/bin:$PATH"
# export PATH="$HOME/usr/local/bin:$PATH"
export PATH="$HOME/usr/local/bin:$PATH"
# Path to your oh-my-zsh installation.
# export ZSH="/Users/andrew.colclough/.oh-my-zsh"
ZSH_DISABLE_COMPFIX="true"
@andrewdc
andrewdc / sapper import export top level error fix
Created May 29, 2020 21:58
fixes Sapper Client connect(port) failure
https://github.com/sveltejs/sapper/issues/1151#issuecomment-612815571
As mentioned above, going to node_modules/sapper/sapper-dev-client.js and changing
export function connect(port) {
if (source || !window.EventSource) return;
To
@andrewdc
andrewdc / index.html
Created April 20, 2018 21:36
JS Bin [Dice Roller] // source https://jsbin.com/relucov
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[Dice Roller]">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<button onclick="roller(6, 2)">Roll</button>
@andrewdc
andrewdc / hyper.js
Created September 20, 2017 19:37
Hyper config
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'PowerlineSymbols, "Source Code Pro", "Operator Mono", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
// `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █
cursorShape: 'BLOCK',
@andrewdc
andrewdc / .hyper.js
Last active February 22, 2019 16:54
Hyper-backup
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'PowerlineSymbols, "Source Code Pro", "Operator Mono", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
// `BEAM` for |, `UNDERLINE` for _, `BLOCK` for █
cursorShape: 'BLOCK',
@andrewdc
andrewdc / webpack.config.js
Last active August 29, 2015 14:20
Webpack Config
const webpack = require("webpack");
const path = require("path");
const node_modules_dir = path.join(__dirname, "node_modules");
const config = {
cache: true,
context: __dirname,
entry: {
app: [
"webpack/hot/dev-server",
@andrewdc
andrewdc / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@andrewdc
andrewdc / keybase.md
Created September 17, 2014 19:26
keybase.md

Keybase proof

I hereby claim:

  • I am andrewdc on github.
  • I am andrewdc (https://keybase.io/andrewdc) on keybase.
  • I have a public key whose fingerprint is BD42 A419 79DF 5BFF 1D95 41CE F76A 81BB BEF5 01FE

To claim this, I am signing this object:

@andrewdc
andrewdc / SassMeister-input-HTML.html
Created September 8, 2014 17:30
Generated by SassMeister.com.
<div data-am-module="">
data-am-module=""
</div>
<div data-am-module="blue">
data-am-module="blue"
</div>
<div data-am-module="large">
data-am-module="large"
@andrewdc
andrewdc / install_nxsass.sh
Created August 8, 2014 18:30
Installer Bash
#!/bin/bash
# nxsass setup script
clear
echo " __ __ ";
echo " \ \ / / ";
echo " _ __ | | | | ___ __ _ ___ ___ ";
echo " | '_ \ \ \/ / / __| / _\` |/ __|/ __|";
echo " | | | | / /\ \ \__ \| (_| |\__ \\\\__ \\";