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
# | |
# Executes commands at the start of an interactive session. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjEyOTQxMTc3MTkgMC4xMjk0MTE3NzE5IDAuMTI5NDExNzcxOQAQAoAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
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 | |
+ | |
+if [ "$#" -lt 2 ]; then | |
+ echo "Usage: wait-for-db.sh [host] [port] [database]" | |
+ exit 1 | |
+fi | |
+ | |
+host="$1" | |
+port="$2" | |
+database="$3" |
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
# In IFTTT create two webhooks named using the pattern, "$DEVICE_on" and "$DEVICE_off" | |
DEVICE="desk_fan" | |
# This is where the state of the device is kept | |
DEVICE_STATE_FILE=~/.${DEVICE}.state | |
IFTTT_KEY="" | |
# Set the default state of the device to "off" if the status file does not exist | |
[ -s $DEVICE_STATE_FILE ] || echo "off" > $DEVICE_STATE_FILE |
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 { expect } from 'chai' | |
const lowerCaseValues = (object, paths) => | |
Object.assign(lowerCaseObjectValues(object), partialObject(object, paths)) | |
const lowerCaseObjectValues = object => { | |
return Object.entries(object).reduce((updated, [key, value]) => { | |
const isString = typeof value === 'string' | |
const isObject = typeof value === 'object' |