find . -iname "*.md" | cpio -pdm /path/to/another/place
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 | |
| # copying from... | |
| sourceRepo=git@bitbucket.org:org/some-repo.git | |
| # to... | |
| destRepo=git@github.com:org/some-repo.git | |
| # using local folder... | |
| localBareRepo=some/local/bare-repo-folder | |
| if [[ ! -d ${localBareRepo} ]]; then |
brew install dnsmasqThis assumes setting up dnsmasq on 10.127.0.1. See here.
Create this the following at this location: /Library/LaunchDaemons/com.user.lo0-alias.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd >
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.lo0-loopback</string>
ProgramArguments
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
| version: '3' | |
| services: | |
| dynamodb-local: | |
| image: "amazon/dynamodb-local" | |
| ports: | |
| - "9460:8000" |
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
| WAIT_TIMEOUT=0; until [ $(aws elbv2 describe-target-health --target-group-arn ${TARGET_GROUP_ARN} --query 'TargetHealthDescriptions[*].TargetHealth.State' --output text) == "healthy" ] || [ ${WAIT_TIMEOUT} -eq 2 ]; do sleep $(( WAIT_TIMEOUT++ )); echo "waiting for ${WAIT_TIMEOUT}s"; done |
- Install Arduino IDE
- Install the ESP8266 serial drivers https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
- Add http://arduino.esp8266.com/stable/package_esp8266com_index.json into Additional Board Manager URLs field.
- Open Boards Manager from Tools > Board menu and install esp8266 platform
- see https://github.com/esp8266/Arduino for more
- Select the board
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
| import com.google.common.base.Function; | |
| import com.google.common.collect.ImmutableList; | |
| import com.google.common.collect.TreeTraverser; | |
| import java.util.stream.Collectors; | |
| public class ShowTraversalOrderForDAG { | |
| public static void main(String[] args) { | |
| /* A |
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
| int LaserState = LOW; // The variable that stores the state of the laser beam. | |
| int sensor = 8 ; // Change this value to calibrate your harp's sensor | |
| int delaylaser = 5; // If you increase this, the laser will be brighter, but the harp will be less fluid | |
| int delaymotor = 3; // This variable affects the speed, and fluidity of the harp. | |
| int LaserPin = 7; // Tell the arduino that the laser is on pin 7 | |
| int motorPin1 = 8; //Use these names for the pin numbers. | |
| int motorPin2 = 9; | |
| int motorPin3 = 10; |