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) { |
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
# 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
class User { | |
email:string | |
password:string | |
hasLoyaltyCard: boolean | |
constructor(email:string, password:string, hasLoyaltyCard?:boolean) { | |
this.email = email | |
this.password = password | |
this.hasLoyaltyCard = !!hasLoyaltyCard | |
} |
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
class User { | |
email:string | |
password:string | |
hasLoyaltyCard: boolean | |
constructor(email:string, password:string, hasLoyaltyCard?:boolean) { | |
this.email = email | |
this.password = password | |
this.hasLoyaltyCard = !!hasLoyaltyCard | |
} |
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
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
country=NL | |
network={ | |
ssid="SSID" | |
psk="PASSWORD" | |
key_mgmt=WPA-PSK | |
} |
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
server { | |
listen 80; | |
server_name sub.marcelblijleven.com; | |
location / { | |
proxy_pass http://localhost:3000/; | |
} | |
} |
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
# Find the partition called EFI | |
diskutil list | grep 'EFI' | awk '{print $(NF)}' | sed 's/s[0-9]/s1/' | |
sudo mkdir /Volumes/EFI | |
sudo mount -t msdos /dev/disk0s1 /Volumes/EFI # Replace disk0s1 with actual EFI partition | |
# Delete boot entries | |
cd /Volumes/EFI/EFI |
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 --no-pager diff --name-only develop | tr '\n' ',' | sed 's/\(.*\),/\1 /' |
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
#!/bin/bash | |
declare -a months=( | |
"01_Januari" | |
"02_Februari" | |
"03_Maart" | |
"04_April" | |
"05_Mei" | |
"06_Juni" | |
"07_Juli" | |
"08_Augustus" |
OlderNewer