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
string Serialize(object o) | |
{ | |
XmlWriterSettings Settings = new XmlWriterSettings() | |
{ | |
Indent = true, | |
IndentChars = " ", | |
NewLineHandling = NewLineHandling.None, | |
NewLineChars = "\n", | |
}; | |
var sb = new StringBuilder(); |
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
/* | |
* ---------------------------------------------------------------------------- | |
* "THE BEER-WARE LICENSE" (Revision 42): | |
* Guoxun Yang and Zeljko Milojkovic wrote this file. As long as you retain this | |
* notice you can do whatever you want with this stuff. If we meet some day, and | |
* you think this stuff is worth it, you can buy us beer in return. | |
* ---------------------------------------------------------------------------- | |
*/ | |
using System; |
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 ProxyEngine(initialRules = []) { | |
const storedRules = JSON.parse((localStorage.getItem(keyStorage) || '[]')); | |
const rules = new Map([...initialRules, ...storedRules]); | |
const matchRules = (url,response) => { | |
const element = [...rules.keys()].find((rule) => url.indexOf(rule) > 1); | |
if (element){ | |
const rule = rules.get(element); |
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
OGP Agent Installation | |
sudo apt-get install libxml-parser-perl libpath-class-perl perl-modules screen rsync sudo e2fsprogs unzip subversion libarchive-extract-perl pure-ftpd libarchive-zip-perl libc6 libgcc1 | |
sudo apt-get install libc6-i386 lib32gcc1 | |
sudo apt-get install libhttp-daemon-perl | |
OGP AGENT | |
wget -N "http://sourceforge.net/projects/ogpextras/files/Easy-Installers/ogp-agent-latest.deb/download" -O "ogp-agent-latest.deb" | |
sudo dpkg -i "ogp-agent-latest.deb" | |
sudo cat /root/ogp_user_password |
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 | |
$name = Trim(stripslashes($_POST['name'])); | |
$email = Trim(stripslashes($_POST['email'])); | |
$message = Trim(stripslashes($_POST['message'])); | |
// validation | |
$validationOK=true; | |
if (!$validationOK) { |
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 | |
// retrieve data file | |
$filename = $_FILES['berkas']['name']; | |
$tempname = $_FILES['berkas']['tmp_name']; | |
//specify the location of the file to be moved | |
$dirUpload = "terupload/"; | |
// move the file |
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
// Require our core node modules. | |
var bodyParser = require( "body-parser" ); | |
var chalk = require( "chalk" ); | |
var cookieParser = require( "cookie-parser" ); | |
var express = require( "express" ); | |
var onFinished = require( "on-finished" ); | |
var path = require( "path" ); | |
// ----------------------------------------------------------------------------------- // | |
// ----------------------------------------------------------------------------------- // |
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
#define FILTERSCRIPT | |
#include <a_samp> | |
#include <colandreas> | |
new pBall; | |
new | |
Float:InGameX = 0.7, | |
Float:InGameY = 0.525, |
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 | |
/** | |
* Check if a given ip is in a network. | |
* | |
* @see https://gist.github.com/ryanwinchester/578c5b50647df3541794 | |
* | |
* @param string $ip IP to check in IPV4 format eg. 127.0.0.1 | |
* @param string $range IP/CIDR netmask eg. 127.0.0.0/24, also 127.0.0.1 is accepted and /32 assumed |
OlderNewer