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
| sudo apt-get update | |
| sudo apt-get install -y git dialog |
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
| #include “UsbKeyboard.h” | |
| #define PIN_BUTTON 7 // the button is attached to pin 7 | |
| int lastState = LOW; // LOW is equivalent to 0 | |
| void setup() { | |
| // button setup | |
| pinMode(PIN_BUTTON, INPUT); |
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 | |
| BACKUPPATHS=( "BACKUPUPDIR1" "BACKUPDIR2" "BACKUPDIR3" ) | |
| TARGETPATHS=( "TARGETOFBACKUPDIR1" "TARGETOFBACKUPDIR2" "TARGETOFBACKUPDIR3" ) | |
| for (( k=0 ; k < ${#BACKUPPATHS[@]} ; k++ )) | |
| do | |
| echo -e "Making backup of ${BACKUPPATHS[$k]}" | |
| rsync -avz --delete --link-dest=${TARGETPATHS[$k]}/`date +%a -d "-1 day"` ${BACKUPPATHS[$k]} ${TARGETPATHS[$k]}/`date +%a` | |
| done |
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
| #include "UsbKeyboard.h" | |
| #define PIN_BUTTON 7 // the button is attached to pin 7 | |
| int lastState = LOW; // LOW is equivalent to 0 | |
| void setup() { | |
| // button setup | |
| pinMode(PIN_BUTTON, INPUT); |
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 sublime | |
| import sublime_plugin | |
| import os | |
| class OpenmatlabfunctionCommand(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| for sels in self.view.sel(): | |
| didFind = False |
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
| MysmartUSB.name=mySmartUSB | |
| MysmartUSB.protocol=stk500v2 | |
| MysmartUSB.communication=serial |
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
| sudo modprobe uinput |
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
| cd; | |
| wget http://www.open.com.au/mikem/bcm2835/bcm2835-1.3.tar.gz; | |
| tar xvfz bcm2835-1.3.tar.gz; | |
| cd bcm2835-1.3; | |
| ./configure; | |
| make; | |
| sudo make install |
NewerOlder