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 / discord-watcher-bot.go
Created May 28, 2021 20:35
template for making a discord bot to watch changing data
package main
import (
"flag"
"fmt"
"time"
"github.com/bwmarrin/discordgo"
)
@rssnyder
rssnyder / load
Last active September 12, 2021 16:09
load bots into service
#!/usr/bin/python3
from sqlite3 import connect
import logging
from json import dumps
from time import sleep
import sys
import os
from requests import get, post
@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
@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 / oracle-cloud-free-tier-guide.md
Last active May 6, 2025 21:48
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

# 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 / 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
@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 / 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 / unrar
Created May 31, 2019 02:36
unrar
find . -name "*.rar" -execdir unrar e -o- "{}" \;