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
$.getJSON("http://jsonip.appspot.com?callback=?", function (data) { | |
alert("Your ip: " + data.ip); | |
}) |
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
- set <add key="umbracoDebugMode" value="true" /> in web.config | |
- add ?umbDebugShowTrace=true to url of the page |
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
# HowTo install Spotweb on Synology | |
# (source: http://dl.dropbox.com/u/5653370/syn_howto/HowTo%20-%20install%20Spotweb.txt) | |
################################# | |
# | |
# Spotweb: https://github.com/spotweb/spotweb | |
# Spotweb is a webbased usenet binary resource indexer based | |
# on the protocol and development done by Spotnet | |
# (http://github.com/spotnet). | |
# | |
# Thanks to: |
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
RewriteEngine on | |
RewriteCond %{REQUEST_URI} !api/ | |
RewriteRule api/?$ index.php?page=newznabapi [QSA,L] |
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/sh | |
# Check for new spots for Spotweb. | |
# | |
# Author: J. van Emden (Brickman) | |
# Latest version: http://dl.dropbox.com/u/5653370/synology.html | |
# | |
# Thanks to: | |
# Mar2zz - http://mar2zz.tweakblogs.net/blog/6724/spotweb-als-provider.html | |
# | |
# Version: |
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/sh | |
# Cronjob script for updating spotweb | |
# | |
# Author: J. van Emden (Brickman) | |
# Latest version: http://dl.dropbox.com/u/5653370/synology.html | |
# | |
# Version: | |
# 2011-11-26: | |
# - Initial release | |
# |
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/sh | |
# Cronjob script for retrieving new spots of spotweb | |
# | |
# Author: J. van Emden (Brickman) | |
# Latest version: http://dl.dropbox.com/u/5653370/synology.html | |
# | |
# Version: | |
# 2011-11-26: | |
# - Initial release | |
# |
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/sh | |
# Upgrade script for Spotweb. | |
# | |
# Author: J. van Emden (Brickman) | |
# Latest version: http://dl.dropbox.com/u/5653370/synology.html | |
# | |
# Thanks to: | |
# Mar2zz - http://mar2zz.tweakblogs.net/blog/6724/spotweb-als-provider.html | |
# | |
# Version: |
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
protected override void Dispose(bool disposing) | |
{ | |
_db.Dispose(); | |
base.Dispose(disposing); | |
} |
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
// -------------------------------------- | |
// i2c_scanner | |
// | |
// Version 1 | |
// This program (or code that looks like it) | |
// can be found in many places. | |
// For example on the Arduino.cc forum. | |
// The original author is not know. | |
// Version 2, Juni 2012, Using Arduino 1.0.1 | |
// Adapted to be as simple as possible by Arduino.cc user Krodal |
OlderNewer