Skip to content

Instantly share code, notes, and snippets.

View EmperorRXF's full-sized avatar

Ruwan Xaviour Fernando EmperorRXF

View GitHub Profile
@EmperorRXF
EmperorRXF / fix_linux_fonts.sh
Last active January 16, 2023 21:56
Fix Linux Fonts by disabling "Embedded Bitmap" and symlinking Windows Fonts
#!/bin/bash
set -e
WINDOWS_FONTS_DIR="/mnt/Windows/Windows/Fonts/"
echo "Creating ~/.config/fontconfig and ~/.local/share/fonts folders"
mkdir -p ~/.config/fontconfig ~/.local/share/fonts
echo "Writing EmbeddedBitmap filter to ~/.config/fontconfig/fonts.conf"
@EmperorRXF
EmperorRXF / import_ppk.sh
Last active April 19, 2019 09:50
Import Putty PPK files into Linux OpenSSH Agent
#!/bin/bash
DEFAULT_PPK_PATH=/mnt/UltraDisk/Dev/SSH-Keys
read -e -i $DEFAULT_PPK_PATH -p "Path to PPK Files to Import: " PPK_PATH
if [ -z "$PPK_PATH" ]
then
echo "Nothing Imported!"
else
@EmperorRXF
EmperorRXF / huluChecker.py
Created January 6, 2015 15:35
Hulu Checker
#!/usr/local/bin/python
import os, sys, math, hmac, operator, time, random, urllib2, md5
class AES(object):
# Rijndael S-box
sbox = [0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67,
0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59,
0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7,
0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1,