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
// ==UserScript== | |
// @name Chancenlos GeoCacher Lotto Gambler | |
// @namespace https://gist.github.com/sdennler/ | |
// @version 10 | |
// @description Script to win the GeoCacher Lotto for the Chancenlos GeoCaches GC3JN6W, GC3JN7G, GC3JN84 and GC3JN8J | |
// @author Sdennler | |
// @match https://www.navikatzen.com/lotto_neu/* | |
// @exclude *winner.php* | |
// @grant none | |
// ==/UserScript== |
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
function inFrame() { | |
try { | |
return window.self !== window.top; | |
} catch (e) { | |
return true; | |
} | |
} | |
window.onload = function(){ | |
if(inFrame()){ |
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
; Global settings | |
[redshift] | |
temp-day=6500K | |
temp-night=4800 | |
transition=1 | |
gamma=0.8:0.7:0.8 | |
;gamma=1.000:1.000:1.000 | |
brightness=1.0:0.5 | |
adjustment-method=randr |
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
Bring the necessary Desktop Notification to Outlook Web App. |
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
Some improvements on the GC.com statistic 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
<!DOCTYPE HTML> | |
<html lang="de"> | |
<head> | |
<title>Test Iframe</title> | |
<style> | |
html { | |
height: 100%; | |
overflow: auto; | |
} | |
body { |
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 | |
$csv = fopen('in.csv', 'r'); | |
$out = fopen('out.csv', 'w'); | |
$number = 0; | |
while($line = fgetcsv($csv, 0, ',', '"')){ | |
echo "Processing Line $number: ".var_export($line[2], true)."\n"; | |
$url = array_pop($line); // Last field should contain the URL to check | |
if(strpos($url, 'http') > -1){ | |
$link = @fopen($url, 'r'); |
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
Encodings are a pain. Some treats are found here: | |
Create-Test-File.php Creates the test file below | |
UTF-8-control-test.txt A test file whit all control chars | |
UTF-8-test.txt A great test file mad by Markus Kuhn | |
Filter.php Examles for filtering | |
Test.sh Shell comands to test for validity |
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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', 'On'); | |
/** | |
* http://stackoverflow.com/questions/27103269/what-is-a-bucket-brigade | |
* http://stackoverflow.com/questions/38147616/consumed-bytes-for-php-user-filterfilter | |
*/ | |
class append_filter extends php_user_filter { |
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 | |
/** | |
* Ugly script to calculate the areas for the TB Swiss Hiker and similar | |
* Usage: | |
* 1. Download KML file from GC.com (View in Google Earth) | |
* 1. Put in same directory as script and name it tb.kml | |
* 3. Get a geonames username and put bellow | |
* 4. Run script (php tb.php |less) | |
* @see https://coord.info/TB56N6P |
OlderNewer