Skip to content

Instantly share code, notes, and snippets.

View aendra-rininsland's full-sized avatar
💚
it's nice to be important but it's more important to be nice

Ændra Rininsland aendra-rininsland

💚
it's nice to be important but it's more important to be nice
View GitHub Profile
@aendra-rininsland
aendra-rininsland / nginx
Last active January 25, 2018 15:56 — forked from khelll/nginx
A start / stop script for Nginx on Amazon Linux
#!/bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: nginx initscript
# Description: nginx
### END INIT INF
@aendra-rininsland
aendra-rininsland / .block
Last active September 14, 2017 15:05
d3-bootloader extended config test
license: mit
@aendra-rininsland
aendra-rininsland / .block
Last active July 7, 2017 16:08
fresh block
license: mit
@aendra-rininsland
aendra-rininsland / column-chart-examples.js
Created April 6, 2017 11:07
Weird Nightingale Charts bug
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
@aendra-rininsland
aendra-rininsland / .block
Last active April 6, 2017 15:22
fresh block
license: mit
@aendra-rininsland
aendra-rininsland / fix-node.sh
Created March 6, 2017 14:20
Simple bash script that attempts to fix NodeJS using n via Homebrew on OS X
#!/bin/bash
echo "Running Ændrew's Node Fixer Script"
if (( $(stat -f %u /usr/local) == 0)); then
echo "Fixing /usr/local permissions"
sudo chown -R $USER:"$(id -gn)" /usr/local
fi
echo "Install Node LTS"
@aendra-rininsland
aendra-rininsland / d3-sankey.d.ts
Created February 12, 2017 22:40
In-development TypeScript def for d3-sankey 0.4.1
// Type definitions for D3JS d3-sankey module v0.4.1
// Project: https://github.com/d3/d3-sankey/
// Definitions by: Ændrew Rininsland <https://github.com/aendrew>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// I plan to submit this to DefinitelyTyped; if you find this online, please check there first.
interface Sankey {
/**
* If _width_ is specified, sets the node width to the specified function or number and returns
* this sankey generator. If width is not specified, returns the current node width accessor,
@aendra-rininsland
aendra-rininsland / .block
Last active January 5, 2017 03:06
Ordinal histogram
license: mit
@aendra-rininsland
aendra-rininsland / .block
Created December 30, 2016 00:18
Streamgraph
license: mit
@aendra-rininsland
aendra-rininsland / .block
Last active December 30, 2016 00:15
Streamgraph v4
license: gpl-3.0