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
| vi /usr/syno/etc/httpd-vhost.conf-user | |
| /usr/syno/etc/rc.d/S97apache-user.sh restart | |
| ProxyHTMLURLMap http://localhost:8082 /couch | |
| /usr/syno/apache/bin/httpd -L | |
| http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh | |
| ProxyRequests Off |
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_port 8080 accel defaultsite=myredhotcar.co.uk | |
| cache_peer localhost parent 5000 0 no-query originserver name=myAccel | |
| acl our_sites dstdomain myredhotcar.co.uk | |
| http_access allow our_sites | |
| cache_peer_access myAccel allow our_sites | |
| http://www.cyberciti.biz/tips/linux-setup-transparent-proxy-squid-howto.html | |
| http://www.visolve.com/squid/whitepapers/reverseproxy.php |
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
| Sub DoIt() | |
| Selection = Selection.Value | |
| End Sub | |
| Sub datevalues() | |
| ' |
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/sh | |
| # Name of Service | |
| SERVICE=sick | |
| if ps | grep -v grep | grep $SERVICE > 0 | |
| then |
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/sh | |
| case "$1" in | |
| start) | |
| wget --post-data 'apikey=XXXXX&application=DiskStation&event=System&description=DiskStation Starting Up' -O - http://api.prowlapp.com/publicapi/add | |
| ;; | |
| stop) | |
| wget --post-data 'apikey=XXXXX&application=DiskStation&event=System&description=DiskStation Shutting Down' -O - http://api.prowlapp.com/publicapi/add | |
| ;; | |
| esac |
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
| javascript:var http = new XMLHttpRequest();var url = "http://prowl.weks.net/publicapi/add";var apikey = "XXXXX";var application = "Work Browser";var evt = "Browser!";var description = encodeURIComponent(document.title.replace(/^\s*|\s*/g,%27%27))+ escape("\n") + encodeURIComponent(location.href);var params = "apikey="+apikey+"&application="+escape(application)+"&event="+escape(evt)+"&description="+description;http.open("POST", url, true);http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");http.send(params); | |
| javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('https://prowl.weks.net/publicapi/add?apikey=XXXXX&application=Work Browser&event=Send Link&description='+encodeURIComponent(p)+'&url='+encodeURIComponent(q)+'')); |
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 | |
| limit=39 | |
| t=`/usr/syno/bin/smartctl -a -d sat /dev/sda | grep "Temperature_Celsius" | awk '{print $10}'` | |
| if [ $t -ge $limit ] | |
| then | |
| wget --post-data 'apikey=XXXX&priority=2&application=DiskStation&event=Hard Drive&description=Hard Drive Temperature over Limit degress&url=http://myredhotcar.co.uk:5000' -O - http://api.prowlapp.com/publicapi/add |
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/perl | |
| # | |
| # copyright Martin Pot 2003 | |
| # http://martybugs.net/linux/hddtemp.cgi | |
| # | |
| # Modified by myredhotcar for DiskStation DS212j | |
| # | |
| # | |
| # | |
| # rrd_hddtemp.pl |
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
| "echo 2 >/dev/ttyS1" for a short beep | |
| "echo 3 >/dev/ttyS1" for a long beep |
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 | |
| /** | |
| * First, we declare an array of domains to check. Each array is for a domain that we want to check, and the port that we want to check. | |
| * The third value is how long fsockopen should wait before timing out. | |
| */ | |
| $ports = array ( | |
| array('192.168.0.1', 80, 1,'Router'), | |
| array('192.168.0.7', 90, 1,'Self'), | |
| array('www.yahoo.com', 80, 1,'google'), | |
| array('www.sitethatdoesnotexist.com', 80, 1,'nothing') |
OlderNewer