Skip to content

Instantly share code, notes, and snippets.

View thomsh's full-sized avatar
💭
🥝

Thomas thomsh

💭
🥝
View GitHub Profile
@thomsh
thomsh / install-firefox-release.sh
Last active March 5, 2025 08:41
Install latest stable binary version of firefox for desktop linux distro (tested Debian 11, proably Ubuntu too)
#!/usr/bin/env bash
# Purpose: Download and install latest stable firefox for any Linux distribution
# gpg --receive-keys 0x4360FE2109C49763186F8E21EBE41E90F6F12F6D
# Update 2021-06-03: key change, new key is signed with old 0x14F26682D0916CDD81E37B6D61B7B526D98F0353
# https://blog.mozilla.org/security/2021/06/02/updating-gpg-key-for-signing-firefox-releases/
# GPG SETTINGS
RELEASE_KEY_FINGERPRINT="0xADD7079479700DCADFDD5337E36D3B13F3D93274"
MOZILLA_KEY_SERVER="gpg.mozilla.org"
GNUPGHOME="/var/cache/gnupg_download_firefox_release"
@thomsh
thomsh / cryptop.txt
Last active November 6, 2024 08:02
cryptop
sdb:
1)wgt:(/|/sdbackup/)sdbackup.bin\.tar\.gz/ # (sha1=ce831841c0d0....)
2.1)v2.asc: echo -n "ta.."|sha256sum # =^fa0
2.2)v1.asc: echo -n "ta.."|openssl dgst -whirlpool -provider legacy -binary |base64 -w 0 # =^Rl/
2.3) .bin: openssl aes-256-cbc -d -md md5 -in i -out o # v1key
3) --key-file a --offset=0 --readonly --cipher aes-xts-plain --key-size=512 --type plain open devX name
---------------------------------------------
sh:
1) l=s....nres..e ; p=995|def;
strtfpr=(JN5TpD/hwppRotTpsK...|46:08:e6:33:87:....)
@thomsh
thomsh / bashrc_hubic
Created March 14, 2016 17:18
split file hubic
function hubic_splitbigfile_in_cwd (){
set -x
for f in $(find . -type f -ls |awk '{ if ($7 >4194304000) print $11}')
do
split -d --bytes=4000M "${f}" "${f}."
rm -f -- "${f}"
done
set +x
}
@thomsh
thomsh / .screenrc
Created January 21, 2015 13:56
.screenrc
# THIS IS THE PRETTY BIT
#change the hardstatus settings to give an window list at the bottom of the
##screen, with the time and date and with the current window highlighted
hardstatus alwayslastline
#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'