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
Verifying that +ariv3ra is my openname (Bitcoin username). https://onename.io/ariv3ra
@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 / .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
@punkdata
punkdata / recert.txt
Created August 5, 2016 13:09
Archlinux PGP Certs
# pacman-key --init
# pacman-key --populate archlinux
# pacman-key --refresh-keys
@punkdata
punkdata / alexa-lambda-python-example.py
Created August 13, 2016 14:09
Alexa Python Lambda Example
"""
This sample demonstrates a simple skill built with the Amazon Alexa Skills Kit.
The Intent Schema, Custom Slots, and Sample Utterances for this skill, as well
as testing instructions are located at http://amzn.to/1LzFrj6
For additional samples, visit the Alexa Skills Kit Getting Started guide at
http://amzn.to/1LGWsLG
"""
from __future__ import print_function