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 / httrack_manual.md
Created February 19, 2023 04:11
Httrack manual, kept here because I can't on my website, https://nutek.neosb.net

Httrack Users Guide (3.10)

By Fred Cohen


Background and Introduction

I started using httrack in mid-2000 and found it to be an excellent tool for imaging web sites. Various words are used to describe this process -

@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

@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 / 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 / MetalView.swift
Last active November 10, 2023 13:28
Metal API SwiftUI view
//
// Created by Szymon Błaszczyński on 26/08/2021.
//
import Foundation
import MetalKit
import SwiftUI
struct MetalView: NSViewRepresentable {
func makeCoordinator() -> Coordinator {
@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.