This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Recreating docker iptables rules and chains" | |
echo "iptables -N DOCKER" | |
echo "iptables -N DOCKER-ISOLATION" | |
echo "iptables -t nat -N DOCKER" | |
echo "iptables -A DOCKER-ISOLATION -j RETURN" | |
echo "iptables -A FORWARD -j DOCKER-ISOLATION" | |
echo "iptables -t nat -A PREROUTING -m addrtype -dst-type LOCAL -j DOCKER" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NEW_USER="divisionone" | |
PACKAGES=( | |
"github.com/micro/go-micro" | |
"github.com/micro/protobuf" | |
) | |
SEDS=( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <WiFiUdp.h> | |
#define LED 0 | |
#define BEEP 2 | |
// Read 0's from GPIO_1(TX) and 1's from GPIO_3(RX) | |
#define PIN0 1 | |
#define PIN1 3 | |
#define WEINGARD_BITS 34 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"os" | |
"strings" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"os" | |
"strings" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repeat | |
if application "Spotify" is running then | |
tell application "Spotify" | |
set seenTrack to "" | |
repeat while player state is playing | |
if player state is playing then | |
set theAlbum to album of the current track | |
set theTrack to name of the current track | |
set theArtist to artist of the current track | |
set trackLength to duration of current track |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can remove 7af8d8d44190e927d7795cb32b6851481e806ea2646ff443ac3333175d65e06b (tagged: [lb_appserver:1357]) | |
Can remove 5944ecd2c2419dcb2947657001f71a9863c01c095e09f85974c9c6802c950e96 (used by: [lb_appserver]) | |
Can remove 9ab6098916aa6167645f669d0666da18287865ff9d14dfad616b5009ac7b2342 (used by: [lb_appserver]) | |
Can't remove bd659296f0f7f943098296a87a08df8c1742c8d57a978c6567e6734c9c458f87 it has 46 children | |
Tags: [lb_stackfix:1199] | |
Uses: [lb_app lb_appserver lb_feedcache lb_jobs lb_stackfix lb_static] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on http://go-lang.cat-v.org/text-editors/mcedit/go.syntax | |
context default | |
# keywords | |
keyword whole break magenta | |
keyword whole case magenta | |
keyword whole chan magenta | |
keyword whole const magenta | |
keyword whole continue magenta | |
keyword whole default magenta | |
keyword whole defer magenta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use 5.10.0; | |
use warnings; | |
use strict; | |
use Data::Dumper; | |
use Digest::MD5 qw/md5_hex/; | |
use JSON::XS; | |
use File::Slurp qw/read_file write_file/; | |
use File::Path qw/mkpath/; |
NewerOlder