Skip to content

Instantly share code, notes, and snippets.

View edouard-lopez's full-sized avatar
🏠
Working from home

Édouard Lopez edouard-lopez

🏠
Working from home
View GitHub Profile
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active March 29, 2025 20:18 — 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 your 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.

@yangshun
yangshun / using-eslint-with-prettier.md
Last active November 8, 2024 10:21
Comparison between tools that allow you to use ESLint and Prettier together.
prettier-eslint eslint-plugin-prettier eslint-config-prettier
What it is A JavaScript module exporting a single function. An ESLint plugin. An ESLint configuration.
What it does Runs the code (string) through prettier then eslint --fix. The output is also a string. Plugins usually contain implementations for additional rules that ESLint will check for. This plugin uses Prettier under the hood and will raise ESLint errors when your code differs from Prettier's expected output. This config turns off formatting-related rules that might conflict with Prettier, allowing you to use Prettier with other ESLint configs like eslint-config-airbnb.
How to use it Either calling the function in your code or via [prettier-eslint-cli](https://github.co
@inancgumus
inancgumus / exercise_18_slices_pic_show.go
Last active August 23, 2023 10:58
go tour exercise solutions
package main
import "golang.org/x/tour/pic"
func Pic(dx, dy int) [][]uint8 {
p := make([][]uint8, dy)
for y := range p {
p[y] = make([]uint8, dx)
for x := 0; x < dx; x++ {
p[y][x] = uint8(x^y)
@edouard-lopez
edouard-lopez / How-to-flash-and-root-OnePlus-3T-on-Linux.md
Last active March 24, 2023 00:34
How to flash and root OnePlus 3T on Linux

How to flash and root OnePlus 3T on Linux

@divspace
divspace / npm-vs-yarn.md
Last active November 21, 2017 16:08
Why you should switch from NPM to Yarn, the differences, and a comparison of commands (with a cheatsheet)

Switching From NPM to Yarn

We've switched to Yarn because it was built in collaboration with Facebook, Google, and others. We're primarily using it for how much faster it is though. Yarn supports emojis, is extremely faster, has automatic shrinkwrapping (hence the yarn.lock file), and much better security.

You can find out why a package is installed (and what's using it):

yarn why <package-name>
@brettz9
brettz9 / .gitconfig
Last active February 27, 2023 09:44
Gitconfig which adds tools for Git GUI (Rebase, Revert, Stash, Tagging/Describe, (Arbitrary) command/git command, npm view, npm run, Git config, open file (and open this gist); Status for the fun of it)
[user]
name = Brett Zamir
email = [email protected]
[gui]
[gui]
encoding = utf-8
recentrepo = C:/wamp/www/_servers/me-pedia.org/me-pedia.org/extensions/intersection
recentrepo = C:/wamp/www/json-schema-spec
recentrepo = C:/wamp/www/file-type-icons
recentrepo = C:/wamp/www/symbols-tree-view
@edouard-lopez
edouard-lopez / 00.restore-galaxy-s-2-i9100.md
Last active March 25, 2024 03:24
Restore Galaxy S 2 i9100 (after breaking with cynogenmod update CM-13.x)

Requirements

sudo apt-get install heimdall{,-frontend} 
sudo apt-get install android-tools-adb
sudo apt-get install build-essential cmake zlib1g-dev qt5-default libusb-1.0-0-dev libgl1-mesa-glx libgl1-mesa-dev
@atcuno
atcuno / gist:3425484ac5cce5298932
Last active February 18, 2025 12:41
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.