-
ARandR: Another XRandR GUI (https://christian.amsuess.com/tools/arandr/)
-
Balena Etcher - Flash OS images to SD cards & USB drives, safely and easily (https://github.com/balena-io/etcher)
-
Bat - A cat(1) clone with syntax highlighting and Git integration (https://github.com/sharkdp/bat)
-
Bluetooth battery indicator (https://extensions.gnome.org/extension/3991/bluetooth-battery/)
-
Castnow - command-line utility that can be used to play back media files on your Chromecast device (https://github.com/xat/castnow)
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
| git status -s | cut -c4- | xargs rm -r |
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 | |
| # Simple Spotify Control | |
| # Just call ./spotify_control --help | |
| # Source: https://community.spotify.com/t5/Desktop-Linux/Linux-keyboard-shortcuts/td-p/1626394 | |
| CMD="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player" | |
| case "$1" in | |
| "playpause" ) |
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
| systemctl --user enable onedrive | |
| systemctl --user start onedrive | |
| # To see the logs run: | |
| journalctl --user-unit onedrive -f | |
| # Check its status | |
| systemctl --user status onedrive |
Based on article: https://www.linuxuprising.com/2018/07/how-to-mount-onedrive-in-linux-using.html
- Create a
~/Onedrivefolder - Download binary: https://rclone.org/downloads/
rclone config- OneDrive is number 23
- Auto config was selected
- No client ID or other options which are default ""
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
| # -*- coding: utf-8 -*- | |
| # Source: https://gist.github.com/wilspi/f68545494eafd57b7a8229ba3359c389 | |
| # Script to run UDP Server on 127.0.0.1:8126 | |
| # This mocks statsd server for testing | |
| import socket | |
| UDP_IP_ADDRESS = "127.0.0.1" | |
| UDP_PORT_NO = 8126 |
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
| {"paddingVertical":"24px","paddingHorizontal":"23px","backgroundImage":null,"backgroundImageSelection":null,"backgroundMode":"color","backgroundColor":"rgba(255,255,255,1)","dropShadow":false,"dropShadowOffsetY":"20px","dropShadowBlurRadius":"68px","theme":"vscode","windowTheme":"none","language":"javascript","fontFamily":"Hack","fontSize":"14px","lineHeight":"133%","windowControls":false,"widthAdjustment":true,"lineNumbers":false,"firstLineNumber":1,"exportSize":"2x","watermark":false,"squaredImage":false,"hiddenCharacters":false,"name":"","id":"bc79fdd0bea144cf1b85dc061afd9b86","gist_id":"bc79fdd0bea144cf1b85dc061afd9b86","loading":false,"isVisible":true} |
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
| if (condition) { | |
| // This will execute if condition is true | |
| } else if (anotherCondition) { | |
| // This will only be executed if condition is false | |
| // and another condition is true | |
| } |
Thanks to https://www.lullabot.com/articles/fixing-docker-and-vpn-ip-address-conflicts.
To configure default Docker address pool, create/edit the /etc/docker/daemon.json file.
Remember: private networks have the 172.16.0.0 - 172.31.255.255 range.
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
| let cakeIsBaked = false | |
| let totalMinutes = 0 | |
| let minutesToBake = 30 | |
| while (!cakeIsBaked) { | |
| totalMinutes = totalMinutes + 10 // Wait 10 minutes | |
| if (totalMinutes === minutesToBake) { | |
| cakeIsBaked = true // Exit condition | |
| } |