Skip to content

Instantly share code, notes, and snippets.

View alex-red's full-sized avatar

Alexander Red alex-red

  • Canada
View GitHub Profile
@alex-red
alex-red / install_nerdfonts.sh
Created October 23, 2022 20:56
install nerdfonts on ubuntu
#!/bin/bash
declare -a fonts=(
BitstreamVeraSansMono
CodeNewRoman
DroidSansMono
FiraCode
FiraMono
Go-Mono
Hack
@alex-red
alex-red / work.js
Created October 6, 2020 21:51
wasmboy headless
// Wasmboy init
import { WasmBoy } from 'wasmboy';
import * as fs from 'fs';
import * as PNGImage from 'pngjs-image';
import * as sharp from 'sharp';
const pkmn_rom = new Uint8Array(fs.readFileSync('./src/wasmboy/pkmn.gbc'));
const pkmn_rom_save_path = './src/wasmboy/pkmn.save';
#!/usr/bin/env bash
iota_nelson_db="/home/$(whoami)/iota/nelsondb"
public_ip="$(dig +short myip.opendns.com @resolver1.opendns.com)"
echo "Grabbing needed docker images..."
docker pull romansemko/nelson.cli
docker pull iotaledger/iri
echo "Done!"
@alex-red
alex-red / blacklist.sh
Last active June 6, 2024 11:17
Geo-IP Block for Edgerouter
#Backup previous list
rm -f BLACKLIST_OLD.txt
mv BLACKLIST.txt BLACKLIST_OLD.txt
touch BLACKLIST.txt
#Download the file from PGL.YOYO
curl -O http://pgl.yoyo.org/as/iplist.php
#Download the file from emerging threats
curl -O http://rules.emergingthreats.net/fwrules/emerging-Block-IPs.txt
#Download the first file from SpamHaus
curl -O http://www.spamhaus.org/drop/drop.txt
@alex-red
alex-red / 14.04-bloat-packages
Created September 25, 2015 00:23 — forked from jimbocoder/14.04-bloat-packages
Ubuntu 14.04 Desktop bloat removal package list
# Purge the following packages
account-plugin-aim
account-plugin-facebook
account-plugin-flickr
account-plugin-jabber
account-plugin-salut
account-plugin-twitter
account-plugin-windows-live
account-plugin-yahoo