Skip to content

Instantly share code, notes, and snippets.

View buahaha's full-sized avatar
💭
Making music and maybe some code

Neosb buahaha

💭
Making music and maybe some code
View GitHub Profile
@buahaha
buahaha / init.vim
Created May 15, 2021 03:49 — forked from celso/init.vim
Neovim setup for OSX users
syntax on
set ruler " Show the line and column numbers of the cursor.
set formatoptions+=o " Continue comment marker in new lines.
set textwidth=0 " Hard-wrap long lines as you type them.
set modeline " Enable modeline.
set esckeys " Cursor keys in insert mode.
set linespace=0 " Set line-spacing to minimum.
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
" More natural splits
set splitbelow " Horizontal split below current.
@buahaha
buahaha / login.py
Created April 2, 2022 04:28 — forked from rkulow/login.py
Degiro automated login with 2FA
import requests
import hmac, base64, struct, hashlib, time
import json
# 2FA code generation from https://stackoverflow.com/questions/8529265/google-authenticator-implementation-in-python
def get_totp_token(secret):
key = base64.b32decode(secret, True)
msg = struct.pack(">Q", int(time.time())//30)
h = hmac.new(key, msg, hashlib.sha1).digest()
o = h[19] & 15
@buahaha
buahaha / pytz-time-zones.py
Created April 13, 2022 13:54 — forked from heyalexej/pytz-time-zones.py
list of pytz time zones
>>> import pytz
>>>
>>> for tz in pytz.all_timezones:
... print tz
...
...
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
@buahaha
buahaha / instructions-fonts.md
Last active May 8, 2022 02:26 — forked from matthewjberger/instructions.md
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache