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
| Wed May 31 07:42:00 UTC 2017 |
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
| #!/usr/bin/env bash | |
| set -o xtrace -o errexit -o pipefail -o nounset | |
| ######################################################################################## | |
| # CircleCI's current recommendation for roughly serializing a subset | |
| # of build commands for a given branch | |
| # | |
| # circle discussion thread - https://discuss.circleci.com/t/serializing-deployments/153 | |
| # Code from - https://github.com/bellkev/circle-lock-test |
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 | |
| FILENAME=file-to-split.csv | |
| HDR=$(head -1 ${FILENAME}) | |
| split -l 100 ${FILENAME} xyz | |
| n=1 | |
| for f in xyz* | |
| do | |
| if [[ ${n} -ne 1 ]]; then | |
| echo ${HDR} > part-${n}-${FILENAME}.csv | |
| fi |
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
| --[[ | |
| DnD Automation Script for Hammerspoon | |
| Purpose: | |
| Automatically enables Do Not Disturb when the screen is locked and disables it | |
| when unlocked, but only if Hammerspoon was the one that enabled it originally. | |
| This prevents interfering with manually-set DnD preferences. | |
| Requirements: | |
| - Hammerspoon installed and running |
OlderNewer