Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
*.texnicle* | |
*.fdb_latexmk | |
*.aux | |
*.glo | |
*.idx | |
*.log | |
*.toc | |
*.ist |
*nat | |
# forward port 69 to 6969 | |
-A PREROUTING -p udp -m udp --dport 69 -j DNAT --to-destination 10.4.108.6:6969 | |
COMMIT | |
*filter | |
:INPUT DROP [0:0] | |
-A INPUT -s 127.0.0.1 -j ACCEPT | |
-A INPUT -s 10.4.108.6 -j ACCEPT |
#!/bin/sh | |
## Sample run: | |
## chmod 700 ~/Dropbox/apps/_running_/duck.sh | |
## crontab -e | |
## */5 * * * * ~/Dropbox/apps/_running_/duck.sh ingcma utun1 >/dev/null 2>&1 | |
NAME=$1 | |
IFACE=$2 | |
TOKEN=<ENTER-TOKEN> |
# Misc | |
#RECLONE=True | |
DATABASE_PASSWORD=password | |
ADMIN_PASSWORD=password | |
SERVICE_PASSWORD=password | |
SERVICE_TOKEN=password | |
RABBIT_PASSWORD=password | |
# Enable Logging |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
# pyspark --driver-class-path "/opt/mongodb-spark-connector/mongodb-driver-3.7.0.jar:/opt/mongodb-spark-connector/mongodb-driver-core-3.7.0.jar:/opt/mongodb-spark-connector/bson-3.7.0.jar:/opt/mongodb-spark-connector/mongo-spark-connector_2.10-1.1.0.jar" | |
import os | |
from pyspark import SparkConf, SparkContext | |
from pyspark.sql import SQLContext | |
import getpass | |
import string | |
import urllib |
* |
virtualenv -p /usr/local/bin/python2.7 pip2pi-venv | |
source pip2pi-venv/bin/activate | |
# pip install pip2pi # broken support for pip v10.x | |
wget https://github.com/carlosmarin/pip2pi/archive/pip-10.0.0.zip -O pip2pi-v10.0.0.zip | |
unzip -a pip2pi-v10.0.0.zip | |
python pip2pi-pip-10.0.0/setup.py install | |
rm -f pip2pi-v10.0.0.zip | |
rm -fr pip2pi-pip-10.0.0 |
I hereby claim:
To claim this, I am signing this object: