Skip to content

Instantly share code, notes, and snippets.

View carlosmarin's full-sized avatar
🎯
Focusing

Carlos Marin carlosmarin

🎯
Focusing
View GitHub Profile
@carlosmarin
carlosmarin / .gitignore
Last active December 23, 2015 06:58 — forked from kogakure/.gitignore
*.pdf
*.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
@carlosmarin
carlosmarin / duck.sh
Created August 25, 2014 18:41
duckdns.org
#!/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
@carlosmarin
carlosmarin / ansible-summary.md
Created October 3, 2017 18:10 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

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
@carlosmarin
carlosmarin / Private-pypi-howto
Created May 11, 2018 16:22 — forked from Jaza/Private-pypi-howto
Guide for how to create a (minimal) private PyPI repo, just using Apache with directory autoindex, and pip with an extra index URL.
*
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

Keybase proof

I hereby claim:

  • I am carlosmarin on github.
  • I am carlosmarin (https://keybase.io/carlosmarin) on keybase.
  • I have a public key ASA5IopDgwqPVyZkEevlmL1SAPzT_GTtfFmM0WqP7HQyrwo

To claim this, I am signing this object: