Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Carlos Marin carlosmarin

🎯
Focusing
  • Austin, TX
Block or report user

Report or block carlosmarin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View pypi-local-mirror.txt
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
@carlosmarin
carlosmarin / Private-pypi-howto
Created May 11, 2018 — 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.
View ldap-mongodb-pyspark-sample.py
# 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 / ansible-summary.md
Created Oct 3, 2017 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick
View ansible-summary.md

An Ansible summary

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

Configuration file

intro_configuration.html

First one found from of

View gist:b8f2d16e4be7ed1ff03f
# Misc
#RECLONE=True
DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
RABBIT_PASSWORD=password
# Enable Logging
View duck.sh
#!/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>
View gist:06ac1dd69884d02e90a6
*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
View .gitignore
*.pdf
*.texnicle*
*.fdb_latexmk
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
You can’t perform that action at this time.