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 | |
| date_default_timezone_set('America/Los_Angeles'); | |
| session_start(); | |
| include("ratelimiter.php"); | |
| // in this sample, we are using the originating IP, but you can modify to use API keys, or tokens or what-have-you. | |
| $rateLimiter = new RateLimiter($_SERVER["REMOTE_ADDR"]); | |
| $limit = 100; // number of connections to limit user to per $minutes | |
| $minutes = 1; // number of $minutes to check for. |
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
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
| <title>Error</title> | |
| </head> | |
| <body style="color:green; background-color:black; text-align:center"><br> | |
| <pre style="font-family: monospace"> | |
| ████████████████████████████████████████████████████████████████████████████████████████ | |
| █░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░███░░░░░░░░░░░░░░░░███░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░███ | |
| █░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀▄▀░░███░░▄▀▄▀▄▀▄▀▄▀▄▀░░███░░▄▀▄▀▄▀▄▀▄▀░░█░░▄▀▄▀▄▀▄▀▄▀▄▀░░███ |
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 | |
| function getUserIpAddr(){ | |
| if(!empty($_SERVER['HTTP_CLIENT_IP'])){ | |
| //ip from share internet | |
| $ip = $_SERVER['HTTP_CLIENT_IP']; | |
| }elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ | |
| //ip pass from proxy | |
| $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
| }else{ | |
| $ip = $_SERVER['REMOTE_ADDR']; |
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
| REM runBackup.bat | |
| REM get current time | replace : with . | |
| set CURRENTTIME=%TIME::=-% | |
| REM HH.MM.SS | |
| set CURRENTTIME=%CURRENTTIME:~0,8% | |
| set ARCHIVNAME=CELSIUS-%DATE%-%CURRENTTIME% | |
| set BACKUPDIR=D:\BACKUP\%ARCHIVNAME% |
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
| package main; | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.util.Locale; | |
| import java.util.Scanner; | |
| public class Simput { | |
| static boolean error; | |
| static String errorDescription = ""; |
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
| <!-- | |
| ~ hibernate.cfg.xml for PostgreSQL | |
| --> | |
| <!DOCTYPE hibernate-configuration PUBLIC | |
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN" | |
| "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> | |
| <hibernate-configuration> | |
| <session-factory> | |
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
| /* | |
| JAVA-SNIPPET | |
| License: Do what you want! | |
| AUTHOR: Niklas Schmitt <www.niklas-schmitt.de> | |
| This snippet returns the current time, separated in hours and minutes as int. | |
| */ | |
| //Get current hours | |
| SimpleDateFormat format = new SimpleDateFormat("HH"); |
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
| <html> | |
| <head> | |
| <title>127.0.0.1 | Welcome Home!</title> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| html{ |
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 | |
| //////////////////////////////////////////////////////////////////////// | |
| # # | |
| ######################################################################## | |
| # # | |
| ############# Spacequadrat Directory Deleter v 0.2 Beta ################ | |
| # # | |
| ######################################################################## |
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 | |
| $sql ="SELECT MAX(jahr) AS jahr FROM lehrjahr"; | |
| $query = mysql_query($sql); | |
| if($query === FALSE) { | |
| die("Error-Code: ".mysql_errno()."Error-Reason: ".mysql_error()); | |
| } | |
| ?> |
NewerOlder