Skip to content

Instantly share code, notes, and snippets.

View rofl0r's full-sized avatar

rofl0r

View GitHub Profile
@rofl0r
rofl0r / github_2fa_oathtool.md
Created October 11, 2023 21:54
Using Github 2FA with oathtool

I've been forced by github to enable 2FA with the following banner:

GitHub users are now required to enable two-factor authentication as an additional security measure. Your activity on GitHub includes you in this requirement. You will need to enable two-factor authentication on your account before October 12, 2023, or be restricted from account actions.

Fortunately, i managed to make the switch using the FLOSS oathtool, a non-bloated CLI program written in C.

Once you click the "Enable 2FA" button, github presents you a barcode and a link to uncover the embedded "setup key". All you really need is the setup key, which as it turns out is Base32-encoded. The next step is to enter a 6-digit code supplied by the TOTP app. Here it is extremely important that your system clock is correct, best to sync with NTP directly before use.

urban witch story walkthrough
.. because i imagine not everyone wants to download a 4 hrs youtube video for a single hint ...
leroy's house
talk with leroy (door)
talk with guy to learn he deals drugs and angela is a whore.
go to left (exit)
basketball court
working download location of html help workshop 1.3
http://web.archive.org/web/20160301111642/https://download.microsoft.com/download/0/A/9/0A939EF6-E31C-430F-A3DF-DFAE7960D564/htmlhelp.exe
$ sha256sum htmlhelp.exe
b2b3140d42a818870c1ab13c1c7b8d4536f22bd994fa90aade89729a6009a3ae htmlhelp.exe
m$ seems to be in the business of removing downloads not targeting their latest operating systems...
@rofl0r
rofl0r / bcb6.md
Last active February 3, 2023 07:38
@rofl0r
rofl0r / codegear.md
Last active November 25, 2021 22:55

How to install CodeGear RAD Studio 2009 on wine

As mentioned in Wine's application database, installing Codegear RAD Studio 2009 (Delphi + C++ Builder) fails with the dreaded "Cannot open AVI" error, followed by a bunch of Access Violations in the "InstallAware Wizard".

In order to get it installed anyway, the following needs to be done:

  • get freely available install iso from
sha256
fc7b3aa5759369d492d11499523e41beeeb94258b30ad9468ba9a72b102fc59f gcc-3.4.6_x86_64_1.tar.xz
sha512
58e5cbfdf4c4b1ae99b27f3fdcb61936ea8f62c42907cb0d5451501fda70d84ba9e49b9ea18e5ace5aa6c5330b140d57060191b0b25d61c849342075bd07d4a7 gcc-3.4.6_x86_64_1.tar.xz
@rofl0r
rofl0r / android_file_urls.txt
Created February 1, 2021 01:59
filenames of all files on google android dl server
prefix with https://dl.google.com/android/repository/
from https://mirrors.cloud.tencent.com/AndroidSDK/ (might disappear)
Index of /AndroidSDK/
../
extras/ 10-May-2016 22:13 -
glass/ 10-Apr-2020 23:54 -
sys-img/ 27-Jul-2017 18:38 -
03e20ef07acac3ecac0790dfa946abd98e31bf7e.platfo..> 07-May-2020 00:02 9315273
// re2c $INPUT -o $OUTPUT
#include <assert.h>
#include <stdint.h>
#include <unistd.h>
/*!maxnmatch:re2c*/
static const uint64_t ERROR = ~0lu;
struct match {
size_t so, eo;
@rofl0r
rofl0r / gist:64fb5affb083ac8bcf0ebfaf6c5905e6
Created April 18, 2019 22:32
how to produce glibc's odd static linking warning about getaddrinfo
$ cat link_warning.c
#define __sec_comment "\n\t#"
#define __make_section_unallocated(section_string) \
asm (".section " section_string "\n\t.previous");
#define link_warning(symbol, msg) \
__make_section_unallocated (".gnu.warning." #symbol) \
static const char __evoke_link_warning_##symbol[] \
__attribute__ ((used, section (".gnu.warning." #symbol __sec_comment))) \
= msg;
#define static_link_warning(name) static_link_warning1(name)
@rofl0r
rofl0r / mac_replacer.py
Created April 10, 2019 00:13
replaces all occurences of a specified mac address in a pcap file with a random new one
import sys, os
def usage():
print "usage: %s file.pcap AA:BB:CC:DD:EE:FF"%sys.argv[0]
print "where AA:BB:CC:DD:EE:FF is the mac address you want replaced"
sys.exit(1)
if len(sys.argv) < 3: usage()
file_arg = sys.argv[1]