Skip to content

Instantly share code, notes, and snippets.

View rssnyder's full-sized avatar
🥨
limitless servers in a serverless world

Riley Snyder rssnyder

🥨
limitless servers in a serverless world
View GitHub Profile
@rssnyder
rssnyder / Jeopardy! Download
Created February 6, 2019 22:09
Download Daily Jeopardy Episodes
#!/bin/bash
youtube-dl --download-archive jepordy.log -o '%(title)s.%(ext)s' https://www.dailymotion.com/polifemoruvalcabasolorio2
@rssnyder
rssnyder / TVUnrar
Created February 7, 2019 00:22
Finds .rar part files, combines, and deletes the part files after completion.
#!/bin/bash
find . -name "*.rar" -execdir unrar e -o- "{}" \;
find . -type f -name "*.rar" -delete
find . -type f -name "*.r[0-9][0-9]" -delete
find . -name "*[sS]ample*" -delete
@rssnyder
rssnyder / unrar
Created May 31, 2019 02:36
unrar
find . -name "*.rar" -execdir unrar e -o- "{}" \;
@rssnyder
rssnyder / minio.yaml
Created August 14, 2020 00:15
Ansible YAML to install minio on linux-amd64
---
- hosts: minio
become: yes
tasks:
- name: install ufw
apt:
name: ufw
state: latest
update_cache: yes
@rssnyder
rssnyder / wg-hub-spoke.yaml
Created August 14, 2020 00:18
Create a hub and spoke connection using wireguard
---
- hosts: hub
become: yes
tasks:
- name: install wireguard
apt:
name: wireguard
state: latest
update_cache: yes
@rssnyder
rssnyder / nebula.yml
Created January 8, 2021 17:58
ansible for deploying nebula
---
- hosts: all
become: yes
tasks:
- name: create nebula dir
file:
state: directory
path: /etc/nebula
owner: root
group: root
# This is the nebula example configuration file. You must edit, at a minimum, the static_host_map, lighthouse, and firewall sections
# Some options in this file are HUPable, including the pki section. (A HUP will reload credentials from disk without affecting existing tunnels)
# PKI defines the location of credentials for this node. Each of these can also be inlined by using the yaml ": |" syntax.
pki:
# The CAs that are accepted by this node. Must contain one or more certificates created by 'nebula-cert ca'
ca: /etc/nebula/ca.crt
cert: /etc/nebula/host.crt
key: /etc/nebula/host.key
#blocklist is a list of certificate fingerprints that we will refuse to talk to
@rssnyder
rssnyder / oracle-cloud-free-tier-guide.md
Last active May 7, 2024 14:59
oracle-cloud-free-tier-guide

how to leverage oracle's temping offers

free tier limits

The limits of the free tier say that you can create up to 4 instances.

  • x2 x86 instances (2core/1g)
  • x2 ampere instances (with 4core/24g spread between them)
  • 200GB total boot volume space across all intances (minimum of 50G per instance)

create your account

@rssnyder
rssnyder / fah-bootstrap.sh
Created April 7, 2021 18:32
fah-bootstrap
# become
sudo su -
# install docker
apt-get update
apt-get install docker.io docker-compose -y
# create compose file
echo '---
version: "3"
@rssnyder
rssnyder / client.service
Last active April 19, 2021 17:37
load bots into bot service
[Unit]
Description=discord-stock-ticker
Wants=basic.target
After=basic.target network.target
Before=sshd.service
[Service]
SyslogIdentifier=discord-stock-ticker
StandardOutput=syslog
StandardError=syslog