Skip to content

Instantly share code, notes, and snippets.

View cedricloneux's full-sized avatar

Cédric Loneux cedricloneux

View GitHub Profile
@vsouza
vsouza / .bashrc
Last active September 21, 2024 12:31
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@wanyakun
wanyakun / LLDB Debugger commands.txt
Created November 8, 2016 03:03
LLDB Debugger commands
Debugger commands:
apropos -- List debugger commands related to a word or subject.
breakpoint -- Commands for operating on breakpoints (see 'help b' for
shorthand.)
bugreport -- Commands for creating domain-specific bug reports.
command -- Commands for managing custom LLDB commands.
disassemble -- Disassemble specified instructions in the current
target. Defaults to the current function for the
current thread and stack frame.
@nsteele
nsteele / glx.bash
Last active July 15, 2021 03:35
Enable glx between mac client and linux server
#!/bin/bash
# on macOS, enable indirect opengl vi xquartz
defaults write org.macosforge.xquartz.X11 enable_iglx -bool true
# ssh to linux server with x forwarding, and start an opengl app
ssh -X user@linux_server
glxgears
# note that using indirect rendering (which is the case when going over ssh), xquartz only supports up to opengl 1.4
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active November 15, 2024 12:45 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export to tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.

@System-Glitch
System-Glitch / generate_blocks.sh
Last active November 14, 2024 06:12
Tutorial for bitcoin regtest
# Script to generate a new block every minute
# Put this script at the root of your unpacked folder
#!/bin/bash
echo "Generating a block every minute. Press [CTRL+C] to stop.."
address=`./bin/bitcoin-cli getnewaddress`
while :
do
@84adam
84adam / AA-Bitcoin-RSS-Feeds.opml
Last active September 6, 2023 16:01
My collection of bitcoin-related RSS newsfeeds.
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.1">
<head>
<title>
Feeder
</title>
</head>
<body>
<outline title="Stacker+News" text="Stacker+News" type="rss" xmlUrl="https://stacker.news/rss"/>
<outline title="𝐁𝐂𝟏𝟗𝟖𝟒" text="𝐁𝐂𝟏𝟗𝟖𝟒" type="rss" xmlUrl="https://bc1984.com/rss/"/>