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
$(document).ready(function(){ | |
}); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="" default="jar"> | |
<description> | |
A general Ant-build file so I don't have to write it again from memory. | |
Project-layout: | |
-project | |
-src | |
-tests |
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
apply plugin: 'groovy' | |
buildscript { | |
repositories { mavenCentral() } | |
dependencies { | |
classpath "redis.clients:jedis:2.0.0" | |
} | |
} |
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/sh | |
# Copy index.html and dist-folder to a remote folder. Exclude everything else | |
rsync -auv -e ssh --progress . --include=dist/*** --include=index.html --exclude=* [email protected]:/home/user/public_html/ |
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/sh | |
# Virtualbox for Vagrant | |
sudo apt-get install virtualbox | |
# Vagrant | |
sudo apt-get install vagrant | |
# Ansible |
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
/* | |
* A very simple example of having a pool of workers perform jobs | |
* from the same channel. Simulates a situation where we have a long running | |
* process such as web server that receives requests and then posts the payloads | |
* to workers. | |
*/ | |
package main | |
import ( | |
"bufio" |
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
FROM ubuntu:16.04 | |
RUN apt-get update && apt-get install -y \ | |
wget \ | |
unzip \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN wget --quiet https://releases.hashicorp.com/terraform/0.11.3/terraform_0.11.3_linux_amd64.zip \ | |
&& unzip terraform_0.11.3_linux_amd64.zip \ | |
&& mv terraform /usr/bin \ |