Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Nordic Union Template
// @namespace http://tampermonkey.net/
// @version 0.3
// @description try to take over the canvas!
// @author oralekin, LittleEndu, ekgame
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==
<noscript id="textNS">
| |
| a w r i t e u p r e l e a s e b y r o l |
| ________ ___ ________ ________ |
| <_ __ \/ \/ \/ ____ \ |
| T T<___/\___/\_ /\ _/\ \__j _/ |
| | | T T T / \ T__\____ T |
| | | | | | \ / |T T T | |
| l__j_____l___j_l__><__j| | | | |
@dennis-tra
dennis-tra / AWS-lambda-create-new-task-definition
Created June 21, 2016 12:44
AWS Lambda function which registers a new task definition and updates the current service
exports.handler = function(event, context, callback) {
var aws = require('aws-sdk');
aws.config.update({region:'ap-southeast-2'});
var ecs = new aws.ECS();
var taskDefinition = 'nab-property-tool';
var serviceName = 'nab-property-tool';
var clusterName = 'default';
console.log("Creating new Task");

Experimental Docker Libnetwork DHCP Driver

The DHCP driver is intended for users to be able to integrate Docker IP address management with their existing IPAM strategies that use DHCP for dynamic address assignment. DHCP enables users to allocate addresses in an organized fashion that will prevent overlapping IP address assignment by associating a unique MAC address from the container eth0 Ethernet interface to an IP address as determined by the DHCP pools defined in the DHCP configuration.

This driver only provides the DHCP client functionality. It does not include a DHCP server. The default driver offers single-host IPAM or for distributed multi-host orchestrated IPAM see the libnetwork overlay driver.

Getting Started

@stansidel
stansidel / reverse.scss
Last active December 21, 2015 07:29
Reversing z-index based from page render order http://stackoverflow.com/a/7033617/758990
#nav ul li {
@for $i from 1 through 20 {
&:nth-child(#{$i}) {
z-index: 1000 - $i
};
}
}
@klarstil
klarstil / uninstall.sh
Created April 5, 2013 06:40
Uninstall git on Mac OS X
#!/bin/bash
if [ ! -r "/usr/local/git" ]; then
echo "Git doesn't appear to be installed via this installer. Aborting"
exit 1
fi
echo "This will uninstall git by removing /usr/local/git/**/*, /etc/paths.d/git, /etc/manpaths.d/git"
printf "Type 'yes' if you sure you wish to continue: "
read response
if [ "$response" == "yes" ]; then
sudo rm -rf /usr/local/git/