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
# Spotify Proxy settings | |
alias spotify_proxy_on='sed -i -e "s/network.proxy.mode=1/network.proxy.mode=2/" ~/Library/Application\ Support/Spotify/prefs' | |
alias spotify_proxy_off='sed -i -e "s/network.proxy.mode=2/network.proxy.mode=1/" ~/Library/Application\ Support/Spotify/prefs' |
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
# list running containers | |
docker ps | |
# list just the container id's (quiet) | |
docker ps -q | |
# list all containers (all) | |
docker ps -a | |
# filter containers on status |
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
expect.extend({ | |
toBeBetween(received, argumentOne, argumentTwo) { | |
if (argumentOne > argumentTwo) { | |
// Switch values | |
[argumentOne, argumentTwo] = [argumentTwo, argumentOne]; | |
} | |
const pass = (received >= argumentOne && received <= argumentTwo); | |
if (pass) { |
NewerOlder