Skip to content

Instantly share code, notes, and snippets.

@0x4C4A
0x4C4A / RTUCourseNameLookup.py
Created March 13, 2016 20:12
Retrieves course names from Riga Technical University course registry when given an array of valid course codes
### This script retrieves the RTU course names corresponding to the RTU course codes
### Works as of 13.03.16.
### Coded by Linards Jukmanis - 0x4C4A.com
# Needs python, urllib2, cookielib and regular expressions
import urllib2
import cookielib
import re
# Input your course codes
@0x4C4A
0x4C4A / install_mt7601.sh
Last active March 5, 2023 17:20
mt7601 driver quick install
#!/bin/sh
sudo add-apt-repository ppa:thopiekar/mt7601
sudo apt-get update
sudo apt-get install build-essential # Without build-essential failed to compile on fresh Linux Mint installation
sudo apt-get install mt7601-sta-dkms
@0x4C4A
0x4C4A / git-settings.sh
Last active April 18, 2017 05:14 — forked from anonymous/git-settings.sh
My preferred git settings
#!/bin/sh
# My favourite flavour of git lg
git config --global alias.lga "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) -%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset) %C(bold green)(%ar)%C(reset)' --all --date-order"
git config --global alias.lg "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) -%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset) %C(bold green)(%ar)%C(reset)' --date-order"
# Rebase by default for all new branches
git config branch.autosetuprebase always
# Remember login details
git config --global credential.helper "store"