In cmd.exe: wsl -u root
. This logs you in as root in Linux. There from you are free to change password as usual with: passwd username
This file contains hidden or 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
#!/usr/bin/env -S gpg --batch --expert --gen-key | |
# Brief: Generate ECC PGP keys for signing (primary key) & encryption (subkey) | |
# Run as: chmod +x gpg_ecc-25519_keygen; ./gpg_ecc-25519_keygen | |
# Ref: https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html | |
%echo "Generating ECC keys (sign & encr) with no-expiry" | |
%no-protection | |
Key-Type: EDDSA | |
Key-Curve: ed25519 | |
Subkey-Type: ECDH |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Brief: Install locally without sudo | |
# Usage: install [file-path or download-link] | |
file="${@}" | |
[[ -n "${file}" ]] || read -rep'Drag-n-drop file or put download link here: ' file | |
file="${file/#\"/}" ; file="${file/%\"/}" # Quote (") removal, if any | |
if [[ "${file}" =~ ^http[s]?://.*$ ]];then | |
tmp=$(mktemp -d .linstallXXXXX); trap "rm -rf ${tmp}" exit |
This file contains hidden or 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
#/usr/bin/env bash | |
# Brief: Minimal Digital Safe (MinDiSafe) | |
# Usage: mindisafe <path> | |
trap 'eval ${reset}' exit | |
keygen(){ | |
echo -n "Safe: Enter Mother's maiden name (case-insensitive): " | |
read -r salt || return 1 | |
echo -n "Safe: Enter your passkey now: " |
Ref:
- https://gist.github.com/dentechy/de2be62b55cfd234681921d5a8b6be11
- https://gist.github.com/zentralwerkstatt/9e6c83e757cdfe430d6710585b2275c7
Steps:
- Edit
/etc/ssh/sshd_config
as follows. Simply uncomment (remove #) the below lines and edit as needed.
People
![]() :bowtie: |
π :smile: |
π :laughing: |
---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Brief: TODO list specific to git branches. No effect on commits, staged or worktree | |
# Installation: | |
# chmod +x ./git-todo | |
# sudo mv ./git-todo /usr/local/bin | |
# git config --global alias.todo '!git-todo' | |
# Help: git todo -h | |
# Author: Somajit Dey <[email protected]> 2021 [https://github.com/SomajitDey] | |
# Source: https://gist.github.com/SomajitDey | |
# GitHubGist Search Terms: username:SomajitDey filename:git-todo.bash |
This file contains hidden or 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
{ | |
"API": { | |
"HTTPHeaders": {} | |
}, | |
"Addresses": { | |
"API": "/ip4/127.0.0.1/tcp/5001", | |
"Announce": [ | |
"/ip4/147.75.80.110/tcp/4001/p2p/QmbFgm5zan8P6eWWmeyfncR5feYEMPbht5b1FW1C37aQ7y/p2p-circuit/p2p/12D3KooWDZBXcHq6t4XFqRFN9pk8nW3VsUmXnvPGV9uL29aeUZmd", | |
"/ip4/147.75.195.153/tcp/4001/p2p/QmW9m57aiBDHAkKj9nmFSEn7ZqrcF1fZS4bipsTCHburei/p2p-circuit/p2p/12D3KooWDZBXcHq6t4XFqRFN9pk8nW3VsUmXnvPGV9uL29aeUZmd", | |
"/ip4/147.75.70.221/tcp/4001/p2p/Qme8g49gm3q4Acp7xWBKg3nAa9fxZ1YmyDJdyGgoG6LsXh/p2p-circuit/p2p/12D3KooWDZBXcHq6t4XFqRFN9pk8nW3VsUmXnvPGV9uL29aeUZmd" |
- Expose localhost's port 4001 to public internet using ngrok:
ngrok tcp 4001
. Tip: Use -region= flag for lower latency. - Note the hostname and port returned by ngrok in the form:
tcp://hostname:port -> localhost:4001
- Open the ipfs config json file
~/.ipfs/config
- Edit as follows: Addresses.Announce=["/dns4/put-the-hostname-here/tcp/put-the-port-here"]
- Save the config file
ipfs daemon
This file contains hidden or 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
#!/usr/bin/env bash | |
# Creates strong password of any given width from any given text or master password | |
# Usage: echo <a line of text> | [SALT=<salt>] ./passgen [-p] [<width>] | |
# Option: -p generates PIN instead of password | |
# Default: width=8; SALT=somesalt | |
# Author: Somajit Dey <[email protected]> | |
# License: GNU GPLv2 | |
set -o noglob |