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
#cloud-config
hostname: core01
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
#!/bin/bash
sudo yum makecache fast
sudo yum -y update
sudo systemctl stop firewalld && sudo systemctl disable firewalld
sudo sed -i s/SELINUX=enforcing/SELINUX=permissive/g /etc/selinux/config && sudo groupadd nogroup
sudo sed -i 's/^#\s*\(%wheel\s*ALL=(ALL)\s*NOPASSWD:\s*ALL\)/\1/' /etc/sudoers
#!/bin/bash
sudo yum install -y nfs-utils libnfsidmap
# Enable the nfs client service
systemctl enable rpcbind
systemctl start rpcbind
mkdir /data
@punkdata
punkdata / linux-term-cmds.sh
Last active October 27, 2017 03:08
Linux Terminal Commands
# Search Type Commands
grep -Ril "text-to-find-here" /
# rsync command to actually sync files
rsync -hvrPt angel/home_angel/ /home/angel/
# rsync copy over all files with all attributes
rsync -avP source-dir target-dir
@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
@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 / EC2-ECS-Spot.sh
Created June 7, 2016 22:36
AWS EC2 Spot Instance with ECS Agent install
# Put this in the User data parameter in the spot instance
#!/bin/bash
yum -y update
yum install -y ecs-init
touch /etc/ecs/ecs.config
echo "ECS_CLUSTER=prezpoll" > /etc/ecs/ecs.config
service docker start
start ecs
@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
#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 / 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