// To display utc timestamp in logs
journalctl --utc
// Displaying Logs from the Current Boot
journalctl -b
// Listing boots
journalctl --list-boots
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
#!/bin/bash | |
# | |
# Install common Go tools. | |
# | |
# Author : Scott Barr | |
# Date. : 12 Dec 2023 | |
# | |
go install golang.org/x/tools/cmd/goimports@latest | |
go install golang.org/x/tools/gopls@latest |
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
# How to encrypt/decrypt your text/blob secret with AWS KMS with AWS cli | |
KEY_ID=alias/my-key | |
SECRET_BLOB_PATH=fileb://my-secret-blob | |
SECRET_TEXT="my secret text" | |
ENCRYPTED_SECRET_AS_BLOB=encrypted_secret_blob | |
DECRYPTED_SECRET_AS_BLOB=decrypted_secret_blob # Result of decrypt-blob target | |
encrypt-text: |
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
#!/bin/bash | |
# | |
# Collection of custom Gnome settings. | |
# | |
# Author : Scott Barr | |
# Date : 9 Jul 2018 | |
# | |
# alt-tab only cycles current workspace | |
gsettings set org.gnome.shell.app-switcher current-workspace-only true |
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
#!/bin/bash | |
# | |
# Collection of custom Gnome settings. | |
# | |
# Author : Scott Barr | |
# Date : 9 Jul 2018 | |
# | |
# alt-tab only cycles current workspace | |
gsettings set org.gnome.shell.app-switcher current-workspace-only true |
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
#!/bin/bash | |
# | |
# Generate music from code and gcc. | |
# | |
# This actually sounds pretty good! | |
# | |
# I am not the original author of this code, it was tweeted by | |
# @kr094_ . See https://twitter.com/kr094_/status/928038531125207040 | |
# | |
# Author : Scott Barr |
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
// Return a list of Bitcoin SV nodes. | |
// | |
// Usage: | |
// | |
// node ./nodes.js nodes.json | |
// | |
// where "nodes.js" is the name of this file, and "nodes.json" was | |
// created from the following command. | |
// | |
// curl https://api.blockchair.com/bitcoin-cash/nodes > nodes.json |
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
/Bitcoin SV:0.1.0(EB128.0; bitcoin-abc)/ 3.120.248.245:8333 | |
/Bitcoin SV:0.1.0(EB128.0)/ 47.92.157.192:8333 | |
/Bitcoin SV:0.1.0(EB128.0)/ 77.72.125.206:8333 | |
/Bitcoin SV:0.1.0(EB128.0)/ 138.201.221.79:8333 |
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
# put this file at ~/.local/share/applications/emacs-editor.desktop | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Emacs Terminal | |
Icon=/usr/share/icons/gnome/256x256/apps/terminal.png | |
Type=Application | |
Categories=Development; | |
Exec=gnome-terminal --geometry=165x40 --window-with-profile="Solorized Dark" | |
Terminal=true |
NewerOlder