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 | |
| ## | |
| ## This script installs and start nginx with ssh & php support | |
| ## | |
| ## 2010-11-10 v1.0 Mats Engstrom - mats@smallroomlabs.com | |
| ## 2010-11-10 v1.1 Mats Engstrom - Fixed www-path | |
| ## 2010-11-10 v1.2 Mats Engstrom - Added ssl support & self signed cert | |
| ## 2010-11-10 v1.3 Mats Engstrom - Added delay before testing | |
| ## |
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 | |
| ## | |
| ## This script installs git/gitosis with mailed backups on a $0.99 Debian 5.0 server | |
| ## | |
| ## 2011-01-20 v1.0 Mats Engstrom (mats@smallroomlabs.com) | |
| ## 2011-01-25 v1.1 Mats - Added automated nightly backups | |
| ## 2011-01-26 v1.2 Mats - Removed some unnecessary services | |
| ## |
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 <avr/pgmspace.h> | |
| #include <Wire.h> | |
| void i2c_eeprom_write_byte( int deviceaddress, unsigned int eeaddress, byte data ) { | |
| int rdata = data; | |
| Wire.beginTransmission(deviceaddress); | |
| Wire.send((int)(eeaddress >> 8)); // MSB | |
| Wire.send((int)(eeaddress & 0xFF)); // LSB | |
| Wire.send(rdata); |
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 <avr/pgmspace.h> | |
| #include <Wire.h> | |
| #include <LiquidCrystal.h> | |
| #define ENDOFWORDLIST '~' | |
| #define WORDDELIMITER ',' | |
| #define MAXWORDS 2284 | |
| #define EEDEVICE 0x50 |
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
| http://my.element14.com/jsp/search/browse.jsp?N=541&Ntk=gensearch_001&Ntt=%s&Ntx=mode+matchallpartial&suggestions=false&ref=globalsearch |
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
| <?php | |
| $size=10; | |
| $step=2.54; | |
| $leds=1; | |
| echo "#Label aligment grid\r\n"; | |
| echo "\r\n"; |
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 | |
| SESSION=$USER | |
| # if the session is already running, just attach to it. | |
| tmux has-session -t $SESSION | |
| if [ $? -eq 0 ]; then | |
| tmux attach -t $SESSION | |
| exit 0; | |
| 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
| -- | |
| -- Prevent execution of the entrire script by mistake | |
| -- | |
| raiserror('(MATS) This script must be run in separate parts...',20,-1) with log | |
| set noexec on | |
| go | |
| ------------------------------------------------------------------------------ | |
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
| // https://github.com/mranney/node_redis 0.9.1 | |
| var redis=require("redis"); | |
| var rclient=redis.createClient(); | |
| // This RPUSH doesn't get available until I've RPUSH'ed | |
| // something from the redis-cli | |
| setInterval(function() { | |
| rclient.rpush('XYZ','Interval',function(err,data) { | |
| console.log('RPUSH'); | |
| if (err)console.dir(err); |
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
| status=$(netstat -a -W | grep ec2 | grep ap-southeast | grep ESTABLISHED) | |
| if [ "$?" != "0" ]; then | |
| ssh -f -N -R 19999:localhost:22 root@THE_SERVER_TO_CONNECT_TO | |
| fi | |
OlderNewer