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
pip install boto3 ansible argparse sh pyinstaller pymongo flask requests gitpython
@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
@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()
Verifying that +ariv3ra is my openname (Bitcoin username). https://onename.io/ariv3ra
@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
@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 / 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>}