Skip to content

Instantly share code, notes, and snippets.

View thoughtsunificator's full-sized avatar
🤠

Romain Lebesle thoughtsunificator

🤠
View GitHub Profile
{
"basics": {
"name": "Romain Lebesle",
"label": "Full Stack Developer",
"image": "https://en.gravatar.com/userimage/185825515/7a1fc08866f02fb2203473a3fe1a728a.jpg?size=1000",
"email": "job@thoughtsunificator.me",
"url": "http://thoughtsunificator.me",
"summary": "Self taught full stack developer with 5+ years experiences.",
"location": {
"city": "Rennes",
@thoughtsunificator
thoughtsunificator / main.js
Created February 18, 2024 22:03
Allow installing of unsigned web extensions in Firefox
let { XPIDatabase } = ChromeUtils.import('resource://gre/modules/addons/XPIDatabase.jsm', {});
XPIDatabase.isDisabledLegacy = (addon) => false;
XPIDatabase.mustSign = (aType) => false;
@thoughtsunificator
thoughtsunificator / README.md
Last active December 3, 2023 03:54
Setup a native proxy switcher on Firefox
  • Download script.pac to /home/user/script.pac
  • Go to FF network settings and select 'Automatic proxy configuration URL'
  • Enter file:///home/user/script.pac
  • Enjoy

Note: If you're using SOCKS v5 you might want to also select 'Proxy DNS when using SOCKS v5'

Tested on 116.0.2 (64 bit) Arch Linux

Export

Save all filters (msgFilterRules.dat files) in a zip file:

$ find .thunderbird/ -type f -name msgFilterRules.dat -print | zip thunderbird-filters -@

Import

@thoughtsunificator
thoughtsunificator / README.md
Last active August 29, 2023 20:04
Android Enable usb tethering on plug

:loop adb wait-for-usb-device reverse tcp:8081 tcp:8081 adb shell service call connectivity 33 i32 1 s16 text adb wait-for-usb-disconnect goto loop

Keybase proof

I hereby claim:

  • I am thoughtsunificator on github.
  • I am thoughtsunificat (https://keybase.io/thoughtsunificat) on keybase.
  • I have a public key whose fingerprint is D9CC 8358 6452 31E6 16E1 F3DA C11B 5CF0 A785 6B6D

To claim this, I am signing this object:

@thoughtsunificator
thoughtsunificator / metacity-theme-2.xml
Last active November 28, 2021 13:22
Linux Mint Cinnamon Edition Windows 10 Theme Dark Titlebar
<?xml version="1.0"?>
<metacity_theme>
<info>
<name>Arc</name>
<author>horst3180</author>
<copyright>horst3180</copyright>
<date>2015</date>
<description>Arc Metacity theme</description>
</info>
@thoughtsunificator
thoughtsunificator / appGroup.js
Last active November 28, 2021 12:57
Enable ctrl + right click cycling through windows in Linux Mint 20.2 Cinnamon Edition
if(ctrlPressed && button === 1) {
let currentIndex = 0
for (let i = 0; i < this.groupState.metaWindows.length; i++) {
if(this.groupState.metaWindows[i] === this.groupState.lastFocused) {
currentIndex = i
}
}
if(currentIndex === this.groupState.metaWindows.length - 1) {
currentIndex = 0
} else {
@thoughtsunificator
thoughtsunificator / uri-tokenizer.js
Created September 29, 2021 16:33
URI Tokenizer
export const STATE_IDENTIFYING = "STATE_IDENTIFYING"
export const STATE_TOKENIZING_NORMAL = "STATE_TOKENIZING_NORMAL"
export const STATE_TOKENIZING_SPECIAL = "STATE_TOKENIZING_SPECIAL"
export const TOKEN_SEPARATOR = "/"
export const TOKEN_SPECIAL_PREFIX = "{"
export const TOKEN_SPECIAL_SUFFIX = "}"
export const TOKEN_TYPE_NORMAL = "normal"
export const TOKEN_TYPE_SPECIAL = "special"
@thoughtsunificator
thoughtsunificator / email-tokenizer.js
Created September 29, 2021 16:32
Email tokenizer
export const STATE_LOCAL_PART = "STATE_LOCAL_PART"
export const STATE_DOMAIN = "STATE_DOMAIN"
export const ALPHANUMERICS = "abcdefghijklmnopqrstuvwxyz1234567890"
export const LOCAL_PARTS_CHARACTERS = [...ALPHANUMERICS, ..."!#$%&'*+-/=?^_`{|}~."]
export const LOCAL_DOMAIN_CHARACTERS = [...ALPHANUMERICS, ..."-."]
export const tokenize = function(input) {
const characters = [...input]