Skip to content

Instantly share code, notes, and snippets.

@shdbwa
shdbwa / firefox.addons
Last active February 6, 2024 16:53
Firefox Addons
https://addons.mozilla.org/firefox/addon/istilldontcareaboutcookies
https://addons.mozilla.org/firefox/addon/simple-translate
https://addons.mozilla.org/fr/firefox/addon/ublock-origin
https://addons.mozilla.org/fr/firefox/addon/return-youtube-dislikes
https://addons.mozilla.org/fr/firefox/addon/read-aloud/
https://addons.mozilla.org/fr/firefox/addon/simple-translate/
https://addons.mozilla.org/fr/firefox/addon/search-all-tabs/
Auto Tab Discard = CPU / RAM saver
Dark Reader = Night Mode
{
"context.exec": [],
"context.modules": [
{
"args": {},
"flags": [
"ifexists",
"nofail"
],
"name": "libpipewire-module-rtkit"
@shdbwa
shdbwa / aria.sh
Created December 19, 2021 09:11 — forked from amrza/aria.sh
Download List of files with aria2
#!/bin/sh
aria2c --dir=./ --input-file=urls.txt --max-concurrent-downloads=1 --connect-timeout=60 --max-connection-per-server=16 --split=16 --min-split-size=1M --human-readable=true --download-result=full --file-allocation=none
date
# Now create this file in the same directory and paste all urls in it: urls.txt
@shdbwa
shdbwa / How-to_firefox-white-loading-switch-to-dark.css
Last active November 30, 2021 08:49
Firefox White Page Loading -> Dark page
/*
Go to about:config, set toolkit.legacyUserProfileCustomizations.stylesheets to true.
Create a userChrome.css file according to these instructions: https://www.userchrome.org/how-create-userchrome-css.html
Paste the following into userChrome.css
*/
/*No white flash on new tab opening in dark theme */
#browser vbox#appcontent tabbrowser, #content, #tabbrowser-tabpanels, browser[type=content-primary], browser[type=content] > html { background: #222 !important; }
/*
@shdbwa
shdbwa / termux-url-opener.sh
Last active August 30, 2021 15:33 — forked from LordH3lmchen/termux-url-opener
termux-url-opener
#!/data/data/com.termux/files/usr/bin/zsh
#
# This is a termux-url-opener script to do diffrent tasks on my Android phone
#
#
#
# How to use this script
#############################
# Create the bin directory
# ➜ ~ mkdir bin
@shdbwa
shdbwa / Spaces_and_bash_scripts.sh
Last active July 31, 2021 15:17
Spaces and bash scripts _ IFS custom
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
# set me
FILES=/data/*
for f in $FILES
do
echo "$f"
done
# restore $IFS
AA
AAS
ABACA
ABACAS
ABALONE
ABALONES
ABANDON
ABANDONS
ABATIS
ABATTIS
@shdbwa
shdbwa / recoll_results_format.html
Last active June 10, 2021 12:16
Recoll config
<head>
<meta charset="UTF-8">
</head>
<table class="tg">
<tbody>
<tr>
<td class="tg-lboi" rowspan="3"><a href='%u'><img src='%I' width='96'></a></td>
<td class="tg-0pky"style="color:rgb(231, 159, 222);font-weight: bold;font-size: x-large;font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;">%T</td>
</tr>
<tr>
@======== Fastboot command ========
@Get info :
@>>> fastboot oem gpt-info
@>>> fastboot oem isn-info
@>>> fastboot oem ssn-info
@>>> fastboot oem system-info
@>>> fastboot oem device-info
@Get ID :
@>>> fastboot oem get-prjid
@>>> fastboot oem get-hwid
@shdbwa
shdbwa / .asoundrc
Created October 20, 2020 05:25
$HOME/.asoundrc
pcm.NVidia { type hw; card NVidia; }
ctl.NVidia { type hw; card NVidia; }
pcm.Audigy { type hw; card Audigy; }
ctl.Audigy { type hw; card Audigy; }
pcm.!default pcm.Audigy
ctl.!default ctl.Audigy