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.
function sum (a, b) { | |
return a + b | |
} | |
let result = sum(2, 2) | |
console.log(result) |
let cakeIsBaked = false | |
let totalMinutes = 0 | |
let minutesToBake = 30 | |
while (!cakeIsBaked) { | |
totalMinutes = totalMinutes + 10 // Wait 10 minutes | |
if (totalMinutes === minutesToBake) { | |
cakeIsBaked = true // Exit condition | |
} |
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.
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 | |
} |
{"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} |
# -*- 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 |
Based on article: https://www.linuxuprising.com/2018/07/how-to-mount-onedrive-in-linux-using.html
~/Onedrive
folderrclone config
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 |
#!/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" ) |
git status -s | cut -c4- | xargs rm -r |