tar -czvp * | base64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# To start this script from remote: | |
# | |
# curl https://gist.githubusercontent.com/theanurin/833b22f6c0fa9776dae5cf9bcc2fb295/raw/install-dart-linux-x64-sdks.sh | /bin/bash | |
# | |
mkdir --parents ~/opt/dart | |
cd ~/opt/dart/ | |
for DART_VERSION in 2.18.3 2.17.7 2.16.2 2.15.1 2.10.5; do | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# To start this script from remote: | |
# | |
# curl https://gist.githubusercontent.com/theanurin/9d0d348657e5fd4d307520e836611724/raw/install-flutter-linux-x64-sdks.sh | /bin/bash | |
# | |
mkdir --parents ~/opt/flutter | |
cd ~/opt/flutter/ | |
for FLUTTER_VERSION in 3.3.10 3.0.5 2.10.5 2.8.0; do | |
echo |
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://site-to-copy.local
--mirror
– Makes (among other things) the download recursive.--convert-links
– Convert all the links (also to stuff like CSS stylesheets) to relative, so it will be suitable for offline viewing.--adjust-extension
– Adds suitable extensions to filenames (html or css) depending on their content-type.--page-requisites
– Download things like CSS style-sheets and images required to properly display the page offline.
git 2.23+
git switch --orphan <branch_name>
git commit --allow-empty -m "<commit_msg>"
git push origin <branch_name>
USB_DEVICE=/dev/sdb
sfdisk --wipe always --label gpt "${USB_DEVICE}" <<EOF
,1G,C12A7328-F81F-11D2-BA4B-00A0C93EC93B
,1G,0FC63DAF-8483-4772-8E79-3D69D8477DE4
EOF
sfdisk --part-attrs "${USB_DEVICE}" 2 LegacyBIOSBootable
dd if=/usr/share/syslinux/gptmbr.bin bs=440 count=1 conv=notrunc of="${USB_DEVICE}"
See more examples
Unmute default input/output
pacmd set-source-mute @DEFAULT_SOURCE@ false
gpg --output sensetive-data.tar.gz.gpg --symmetric sensetive-data.tar.gz
--symmetric
- use the default symmetric cipher, which means that the same passphrase is used for both encryption and decryption (as opposed to asymmetric, which involves public keys and private keys.).
gpg --no-symkey-cache sensetive-data.tar.gz.gpg
NewerOlder