Skip to content

Instantly share code, notes, and snippets.

View jonasrosland's full-sized avatar

Jonas Rosland jonasrosland

View GitHub Profile
{
"id": "redis",
"container": {
"docker": {
"image": "redis",
"network": "BRIDGE",
"portMappings": [
{ "containerPort": 6379, "hostPort": 0, "protocol": "tcp"}
],
"parameters": [
sudo useradd consul
sudo mkdir -p /etc/consul.d/{bootstrap,server,client}
sudo mkdir /var/consul
sudo chown consul:consul /var/consul
wget -nc -nv https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip 1&>2
unzip -o consul_0.6.4_linux_amd64.zip
sudo cp consul /usr/local/bin
if [ "$HOSTNAME" = mesos-master ]; then
echo "on master"
@jonasrosland
jonasrosland / KSP-Missions.md
Last active September 30, 2015 00:55
KSP Planned missions

Satellite missions

  • Set up communication satellites around Moho
    • 3 Satellites
      • 1 Communotron 88-88 for relaying back to Kerbin
      • 3 Comms DTS-M1 for keeping in contact with eachother and other craft on the surface
  • Set up communication satellites around Duna

Manned missions

@jonasrosland
jonasrosland / README.md
Last active May 1, 2016 16:45
Wordpress Statistics widget for the Dashing dashboard

Wordpress Statistics widget for the Dashing dashboard

Tracks all time total stats and views per post

Sample HTML to put in your .erb file:

    <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
 
@jonasrosland
jonasrosland / README.md
Last active January 3, 2016 09:13
YouTube Playlist Statistics widget for the Dashing dashboard

YouTube Playlist Statistics widget for the Dashing dashboard

Enables tracking of all video views stats in a playlist.

Sample HTML to put in your .erb file:

    <li data-row="1" data-col="2" data-sizex="4" data-sizey="1" onclick="location.href='https://www.youtube.com/playlist?list=PLbssOJyyvHuWiBQAg9EFWH570timj2fxt';">
 
@jonasrosland
jonasrosland / docker-swarm-data-persistence.md
Last active August 23, 2020 02:19
Use Docker Swarm with a data persistence layer

Use Docker Swarm with a data persistence layer

Create a Docker Swarm discovery token

curl -X POST https://discovery.hub.docker.com/v1/clusters
YOURSWARMTOKEN

Export the correct environment variables

@jonasrosland
jonasrosland / git-ksp-ckan.md
Last active April 18, 2017 22:15
Use Git to manage Kerbal Space Program saves, ships and CKAN mods

This example show how to manage two KSP installs, like one on your Windows gaming rig and one on your Mac, as they were one.

First, create a GitHub repo called git-ksp-ckan under your own username

Then, if your Mac is the starting point:

cd ~/Library/Application Support/Steam/SteamApps/common/Kerbal Space Program
git init
cp CKAN/installed-default.ckan CKAN/should-be-installed.ckan
git add CKAN/should-be-installed.ckan
@jonasrosland
jonasrosland / MST3K.md
Last active August 29, 2015 14:19
MST3K Collection

I'm a big fan of MST3K. Here's a list of stuff I've collected over the years.

DVDs

Producer Volume Movies Extras Extras2 Extras3 Missing
Rhino 1 Bloodlust
@jonasrosland
jonasrosland / README.md
Last active August 29, 2015 14:15
StackOverflow Dashing widget

StackOverflow Dashing widget

Enabling you to track questions on StackOverflow with specific tags and the number of answers for each question.

Sample HTML to put in your .erb file:

    <li data-row="1" data-col="2" data-sizex="4" data-sizey="2" onclick="location.href='http://stackoverflow.com/questions/tagged/emc';">
 
@jonasrosland
jonasrosland / README.md
Last active September 22, 2015 18:34
Docker Hub Dashing widget

Docker Hub Dashing widget

Enabling you to track your Docker Hub metrics such as stars and pulls.

Sample HTML to put in your .erb file:

    <li data-row="1" data-col="1" data-sizex="2" data-sizey="1" onclick="location.href='https://registry.hub.docker.com/repos/emccode/';">