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
<?php | |
/* | |
This script will scan the directory you specify and move or copy | |
all files within it and its subdirectories. The files will be moved | |
to a subdirectory of the location where the script is, based on | |
either it's creation date or if the file contains exif data, the | |
date the photo was taken. | |
Call this script like so: |
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
#define FULL_POWER_OFFSET 3 | |
task main() | |
{ | |
SetSensor(SENSOR_2,SENSOR_LIGHT); | |
int last_reading=SENSOR_2; | |
//start adjust_power; | |
SetPower(OUT_A+OUT_C,7); |
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 | |
#Start ssh-agent | |
eval `ssh-agent` | |
#Uncomment the next line if you want to automatically load ssh-keys at startup | |
#ssh-add | |
#Kill ssh-agent when we close the shell | |
trap "ssh-agent -k" EXIT |
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 | |
cd /path/to/your/git/repo/ | |
if [ "$(git status -s)" ] ; then | |
echo "Changes detected. Commiting." | |
git add . | |
git commit -am "Your explanation here" | |
else | |
echo "No changes detected. Commit canceled." | |
fi |