Skip to content

Instantly share code, notes, and snippets.

View punkdata's full-sized avatar
🤖
Beep Boop

Angel Rivera punkdata

🤖
Beep Boop
View GitHub Profile
@punkdata
punkdata / pointio-list-all-files.py
Last active December 23, 2015 23:19
Here is some python sample code that uses point.io api calls to list of the files & folders in the root of all storage sites configured for an account. Get your account here http://point.io/hack and make sure you pip install requests - Check it:
import requests
#Defines the api's core URL
URL ='https://api.point.io/api/v2'
#Validate User's Creds and Return a SessionKey
header = {"Authorization": ""}
#Change the email, password and apikey values to your credentials
authInfo = {"email":<your email>, "password":<your password>, "apikey":<your api key>}
@punkdata
punkdata / Play-2_.gitignore
Last active December 27, 2015 18:39
Play Framework 2 .gitignore - These are my git ignore file settings . Obviously rename this file to .gitignore :-)
# Ignore Play! working directory #
db
dist
eclipse
lib
log
logs
modules
precompiled
project/project
@punkdata
punkdata / cloud-config.yaml
Last active August 8, 2018 06:21
CoreOS cloud-config.yaml Example
#cloud-config
hostname: <your hostname>
ssh_authorized_keys:
- ssh-rsa < your Public SSH key AAAAB3NzaC1... >
coreos:
etcd:
addr: $private_ipv4:4001
Verifying that +ariv3ra is my openname (Bitcoin username). https://onename.io/ariv3ra
@punkdata
punkdata / git-get-files-by-size.py
Last active September 25, 2022 00:36
Git this script lists the files that are larger than the size you specify. Example use: python git-find-big-files.py fix-remove-files 1000000 (file size in MBs)
#!/usr/bin/python
# run the script: python git-find-big-files.py <the branch> <file size>
# Example use: python git-find-big-files.py fix-remove-files 1000000 (this value equals 1 Megabyte)
# the Fix-remove-files specifies the branch that you are cleaning
import os, sys
def getOutput(cmd):
return os.popen(cmd).read()
@punkdata
punkdata / .sbtopts
Last active January 30, 2016 03:55
Add this file to the root of your sbt projects Solves the java.lang.OutOfMemoryError: PermGen error
-J-Xmx4G
-J-XX:MaxMetaspaceSize=1G
-J-XX:MaxPermSize=1G
-J-XX:+CMSClassUnloadingEnabled
pip install boto3 ansible argparse sh pyinstaller pymongo flask requests gitpython
@punkdata
punkdata / cloud-config.yaml
Last active March 22, 2016 19:19
Single Instance CoreOS Install
#cloud-config
hostname: coreosolo
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDArlyas86BhZq5KVK9xwnjA5FF6nzEyZv03Ln0PEJ0x90KznA7vijsXoMuu3wC/ZFzxNqdtIi8B7MwbwWi0RSBLF5BeVunA+Oun0vpEtByUEKlyKJSYSJdYmYTjU4LtwowJJQ8FNQ7KrRQyqeriTe/07i5PfuW9XzMQVje1OFV8M8xXmVxBmb1yYpfaBvuynYH6mycO6vdBxGGjmVezTwLeMNDOfEUoa+Fs+i8raMHzteNSUvbyVazCj7i4tucAhf78lpPt+pvNgELdTtyu6sOdDkfjIs/uDEOX5yrgpk0QC3n9WWZjeyBeew3H/n17yyZkU8UaZhhYt+8NmWrndhd ariv3ra@gmail.com
coreos:
etcd2:
# generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3
#cloud-config
hostname: gw
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDArlyas86BhZq5KVK9xwnjA5FF6nzEyZv03Ln0PEJ0x90KznA7vijsXoMuu3wC/ZFzxNqdtIi8B7MwbwWi0RSBLF5BeVunA+Oun0vpEtByUEKlyKJSYSJdYmYTjU4LtwowJJQ8FNQ7KrRQyqeriTe/07i5PfuW9XzMQVje1OFV8M8xXmVxBmb1yYpfaBvuynYH6mycO6vdBxGGjmVezTwLeMNDOfEUoa+Fs+i8raMHzteNSUvbyVazCj7i4tucAhf78lpPt+pvNgELdTtyu6sOdDkfjIs/uDEOX5yrgpk0QC3n9WWZjeyBeew3H/n17yyZkU8UaZhhYt+8NmWrndhd ariv3ra@gmail.com
coreos:
etcd2:
# generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3
@punkdata
punkdata / VMWare11Fix.txt
Created April 11, 2016 17:23
VMWare 11 on Manjaro Linux Fix
export VMWARE_USE_SHIPPED_LIBS=yes
To set it on startup, add that line above to .xprofile via:
nano .xprofile