This guide assumes you are using Ubuntu and have some basic linux command-line know-how.
Download the server https://www.factorio.com/download-headless/stable:
This guide assumes you are using Ubuntu and have some basic linux command-line know-how.
Download the server https://www.factorio.com/download-headless/stable:
import cv2 | |
# Windows dependencies | |
# - Python 2.7.6: http://www.python.org/download/ | |
# - OpenCV: http://opencv.org/ | |
# - Numpy -- get numpy from here because the official builds don't support x64: | |
# http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy | |
# Mac Dependencies | |
# - brew install python |
#!/bin/bash | |
# Copying: Public domain. | |
set -e | |
sourceName=$1 | |
if [[ $sourceName == "" ]]; then | |
echo "Usage: fix-libappindicator.sh <.deb>" |
<?php | |
/** | |
* Detaches a process from apache so it can be invoked by a webpage but run | |
* under CLI context. Prevents apache from waiting for the process to | |
* finish before displaying output. All output is piped to null. | |
* | |
* @param string $process full path to executable / binary | |
* @param string $arguments arguments passed to the script | |
*/ |
set -x | |
mkdir -p /tmp/consul | |
cd /tmp/consul | |
# Consul Configuration File | |
tee consul.json <<CONSULCONFIG | |
{ | |
"bootstrap_expect": 3, | |
"client_addr": "0.0.0.0", |
server { | |
listen 80; | |
server_name HOSTNAME; | |
root /opt/PATH/; | |
index index.html; | |
rewrite ^/$ /en/PATH/ redirect; |
server { | |
listen 8080; | |
server_name local.webblob.com; | |
root /Users/cbednarski/code/WebBlob/src; | |
error_page 403 /403.html; | |
error_page 404 /404.html; | |
error_page 500 /500.html; | |
error_page 502 /502.html; | |
error_page 503 /503.html; |
[ | |
{ "keys": ["ctrl+shift+t"], "command": "open_terminal_project_folder" }, | |
{ "keys": ["ctrl+tab"], "command": "next_view" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" } | |
] |
import re | |
""" | |
di.fm allows you to download a playlist of all your favorite channels. For some | |
reason when you open this playlist with iTunes only one of the channels is | |
added. This script splits the playlist file into many playlist files so you can | |
easily load all of your favorites into iTunes and enjoy di.fm streaming without | |
running Flash in your browser. | |
""" | |
items = open("di.pls").read().split("File") |
# Color codes look like this: \033[1;34m | |
# | |
# When used in a prompt, color codes and other special sequences have to be | |
# escaped so they are not counted in the width of the bash prompt. If the width | |
# is not calculated correctly backspace, up arrow, etc. will not work correctly. | |
# | |
# In the bash prompt itself (PS1) you should use the \[ \] an escape sequence. | |
# This indicates to bash that these characters are not part of the prompt. | |
# | |
# If you're using color codes in a bash function that is used in your prompt, |