Skip to content

Instantly share code, notes, and snippets.

View bradwindy's full-sized avatar
💻
⌘⇧K

Bradley Windybank bradwindy

💻
⌘⇧K
View GitHub Profile
@bradwindy
bradwindy / sfn.sh
Created June 28, 2020 10:00
Shinobi FreeNAS Install Script
#!/bin/tcsh
echo "Installing updates..."
pkg update -f
pkg upgrade -y
echo "Installing packages..."
pkg install -y nano ffmpeg libav x264 x265 mysql56-server node npm
echo "Enabling mysql..."
sysrc mysql_enable=yes
service mysql-server start
echo "Cloning the official Shinobi Community Edition gitlab repo..."
@bradwindy
bradwindy / .zshrc
Last active July 7, 2021 10:37
My .zshrc file
# Oh my zsh stuff
export ZSH="/Users/bradleywindybank/.oh-my-zsh"
# THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="bureau"
# More ZSH stuff
ZSH_DISABLE_COMPFIX=true
@bradwindy
bradwindy / mybrewleaves
Last active April 4, 2021 02:08
My brew packages
automake
bash
binutils
cdrtools
cocoapods
coreutils
diffutils
ed
emacs
fdk-aac
@bradwindy
bradwindy / EDITOR
Created November 17, 2020 00:50
Editor file for .zshrc
#!/bin/zsh
subl -w -- "$@"
# Dont forget to chmod +x me
[{"id":1,"address":"https:\/\/raw.githubusercontent.com\/StevenBlack\/hosts\/master\/hosts","enabled":1,"date_added":1598965993,"date_modified":1598965993,"comment":"Migrated from \/etc\/pihole\/adlists.list"},{"id":2,"address":"https:\/\/mirror1.malwaredomains.com\/files\/justdomains","enabled":1,"date_added":1598965993,"date_modified":1598965993,"comment":"Migrated from \/etc\/pihole\/adlists.list"},{"id":3,"address":"https:\/\/raw.githubusercontent.com\/PolishFiltersTeam\/KADhosts\/master\/KADhosts_without_controversies.txt","enabled":1,"date_added":1599005798,"date_modified":1599005798,"comment":null},{"id":4,"address":"https:\/\/raw.githubusercontent.com\/FadeMind\/hosts.extras\/master\/add.Spam\/hosts","enabled":1,"date_added":1599005811,"date_modified":1599005811,"comment":null},{"id":5,"address":"https:\/\/v.firebog.net\/hosts\/static\/w3kbl.txt","enabled":1,"date_added":1599005822,"date_modified":1599005822,"comment":null},{"id":6,"address":"https:\/\/raw.githubusercontent.com\/matomo-org\/referrer-s
@bradwindy
bradwindy / guide.txt
Last active January 19, 2025 20:14
Edgerouter X 2Degrees PPPoE WAN IPv4 + IPv6 Setup Steps
Edgerouter X 2Degrees PPPoE WAN IPv4 + IPv6 Setup Steps:
Chapter 1 - The Basics:
1) Connect computer to eth0
2) Set computer to have a static/manual IP connection over this ethernet connection with the following settings:
- IP addr: 192.168.1.2
- Subnet: 255.255.255.0
- Router/gateway: 192.168.1.1
3) Navigate to 192.168.1.1 in a browser
@bradwindy
bradwindy / dl-script.py
Last active June 5, 2022 07:35
Script for downloading files from URL in an XML file
import os
import xml.etree.ElementTree as ET
from urllib.parse import urlparse
import wget
path = './pads'
for file in os.listdir(path):
current = os.path.join(path, file)