jekyll serve --port $PORT --host $IP
hugo server -w --port=$PORT --bind=$IP
hexo server -p $PORT -i $IP
using System; | |
using System.Collections.Generic; | |
class MainClass { | |
public static void Main (string[] args) { | |
Dictionary<string, List<String>> map = new Dictionary<string, List<String>>(); | |
// create list one and store values | |
List<string> valSetOne = new List<string>(); |
import sys | |
import csv | |
try: | |
if (sys.argv[1] == '-'): | |
f = sys.stdin.read().splitlines() | |
else: | |
filename = sys.argv[1] | |
f = open(filename, 'r') | |
csv = csv.reader(f) |
javascript:void(window.open("http://www.google.com/search?q="+document.getSelection()+"&btnI=I'm+Feeling+Lucky")) |
curl -SL https://releases.hashicorp.com/packer/1.3.2/packer_1.3.2_linux_amd64.zip -o packer_1.3.2_linux_amd64.zip | |
unzip packer_1.3.2_linux_amd64.zip | |
sudo mv packer /usr/bin/packer |
curl -SL https://github.com/99designs/aws-vault/releases/download/v5.3.2/aws-vault-linux-amd64 -o aws-vault | |
sudo mv aws-vault /usr/bin/aws-vault | |
chmod +x /usr/bin/aws-vault |
git add . | |
# see what changes are going to be commited | |
git status | |
git commit -m 'Some descriptive commit message' | |
git push origin master | |
# go to the gh-pages branch | |
git checkout gh-pages | |
# bring gh-pages up to date with master | |
git rebase master |
# install Powershell on Ubuntu 14.04 | |
curl -SL https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-beta.2/powershell_6.0.0-beta.2-1ubuntu1.14.04.1_amd64.deb -o powershell_6.0.0-beta.2-1ubuntu1.14.04.1_amd64.deb | |
sudo apt-get install libunwind8 libicu52 | |
sudo dpkg -i powershell_6.0.0-beta.2-1ubuntu1.14.04.1_amd64.deb |
[ | |
{ | |
"quote": "In a crowded marketplace, fitting in is failing. In a busy marketplace, not standing out is the same as being invisible.", | |
"author": "Seth Godin", | |
"source": "https://www.amazon.com/Purple-Cow-New-Transform-Remarkable/dp/1591843170" | |
}, | |
{ | |
"quote": "It’s counterintuitive, but the way to grow your business is to focus entirely on your existing customers. Just thrill them, and they’ll tell everyone", | |
"author": "Derek Sivers", | |
"source": "https://www.amazon.com/Anything-You-Want-Lessons-Entrepreneur/dp/1511366079", |
# Script to install nanobox and docker-ce | |
# install Nanobox | |
curl -SL https://d1ormdui8qdvue.cloudfront.net/installers/v2/linux/nanobox_2_amd64.deb -o nanobox_2_amd64.deb | |
sudo dpkg -i nanobox_2_amd64.deb | |
# install docker ce | |
# Environment variables you need to set so you don't have to edit the script below. | |
export DOCKER_CHANNEL=edge |