defaults write com.apple.dock appswitcher-all-displays -bool true && killall Dock
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
import com.casavo.gluglu.core.infrastructure.http.installLoggingConfiguration | |
import com.casavo.gluglu.core.infrastructure.http.installUserAgentConfiguration | |
import io.ktor.client.HttpClient | |
import io.ktor.client.request.get | |
import io.ktor.client.request.url | |
import io.ktor.http.isSuccess | |
import kotlinx.coroutines.runBlocking | |
val client = HttpClient { | |
expectSuccess = true |
markmap | ||||||||
---|---|---|---|---|---|---|---|---|
|
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
#!/usr/bin/env bash | |
export AWS_PAGER="" | |
db_connections () { | |
echo "## ${1}:" | |
aws cloudwatch get-metric-statistics \ | |
--namespace AWS/RDS \ | |
--dimensions Name=DBInstanceIdentifier,Value=$1 \ | |
--metric-name DatabaseConnections \ |
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 | |
mega_user="<MEGA ACCOUNT EMAIL>" | |
mega_pass="<MEGA ACCOUNT PWD>" | |
mega_path="<MEGA REMOTE TARGET FOLDER>" | |
folder="${mega_path}/$(date +'%Y-%m-%d')" | |
megamkdir -u ${mega_user} -p ${mega_pass} "${folder}" --reload | |
megaput -u ${mega_user} -p ${mega_pass} --path "${folder}" *.mp3 --reload |
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
( | |
relativeDir="" | |
while [[ ! -d ".vagrant" ]]; do | |
if [[ "$(pwd)" == "/" ]]; then | |
echo "Not a valid path" | |
exit | |
fi | |
relativeDir="${PWD##*/}/$relativeDir" | |
cd .. |
(full article by Andrew Welch here: https://nystudio107.com/blog/dock-life-using-docker-for-all-the-things)
alias composer='docker run --rm -it -v `pwd`:/app -v ${COMPOSER_HOME:-$HOME/.composer}:/tmp composer '
alias composer1='docker run --rm -it -v `pwd`:/app -v ${COMPOSER_HOME:-$HOME/.composer}:/tmp composer:1 '
alias node='docker run --rm -it -v `pwd`:/app -w /app node:16-alpine '
title | tags |
---|---|
Five underplayed TDD Premises |
TDD |
https://www.geepawhill.org/2018/01/18/five-underplayed-premises-of-tdd-2/
NewerOlder