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
<script type="text/javascript"> | |
if (top != self) top.window.location = 'http://URL-OF-DESTINATION-TAB'; | |
</script> |
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 | |
/* | |
------------------------------------------------------------------------------------------------- | |
Offer Link Rotation Script | |
Last edit: 2/25/2010 | |
http://www.ctrtard.com | |
This script is designed to work with Prosper202 | |
Parts ripped from Wes's landing page rotation script |
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
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:1 | |
nano /etc/sysconfig/network-scripts/ifcfg-eth0:1 | |
DEVICE="eth0:1" | |
BOOTPROTO="static" | |
IPADDR="142.4.223.247" |
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
Centmin Mod install created command short cuts outlined here to allow you to quickly edit your /usr/local/lib/php.ini file and your /usr/local/etc/php-fpm.conf file. Full list of command shortcuts below: | |
Edit php.ini = phpedit ( /usr/local/lib/php.ini ) | |
Edit my.cnf = mycnf ( /etc/my.cnf ) | |
Edit php-fpm.conf = fpmconf ( /usr/local/etc/php-fpm.conf ) | |
Edit nginx.conf = nginxconf ( /usr/local/nginx/conf/nginx.conf ) | |
Edit (nginx) virtual.conf = vhostconf - only edits /usr/local/nginx/conf/conf.d/virtual.conf not the additional vhost domain.com.conf files added later | |
Edit (nginx) php.conf = phpinc ( /usr/local/nginx/conf/php.conf ) | |
Edit (nginx) drop.conf = dropinc ( /usr/local/nginx/conf/drop.conf ) | |
Edit (nginx) staticfiles.conf = statfilesinc ( /usr/local/nginx/conf/staticfiles.conf ) |
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
import 'dart:io'; | |
import 'dart:async'; | |
main() { | |
ServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, 8000).then((s_server) { | |
s_server.listen((socket) { | |
socket.write('Ping!'); | |
socket.listen((data){ | |
print(new String.fromCharCodes(data)); | |
sleep(new Duration(seconds:1)); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Use netcat -- often nc on Linux systems: | |
nc -dvzw10 ${HOSTNAME} 23 | |
Works for me, with a response like: | |
Connection to ${HOSTNAME} 23 port [tcp/telnet] succeeded! | |
It also returns 0 on success, and is happy with a simple connection after which it goes away. | |
-d means not to read anything from the keyboard side | |
-v means to be verbose (turn this off in a script) |
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
}).then((HttpResponse resp) { | |
var json = ''; | |
if (resp.statusCode == 200) { | |
resp.transform(UTF8.decoder) // use a UTF8.decoder | |
.listen((String data) => json = json + data, // output the data | |
onError: (error) => print("UNABLE TO CONNECT"), onDone:() { | |
}); | |
} |
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
getJsonResponse(String target, Map params) { | |
params.addAll({ | |
'client_id':this.client_id, 'api_key':this.api_key | |
}); | |
var url = new Uri.http(API_HOST, target, params); | |
var client = new HttpClient(); | |
client.userAgent = 'DoD v1.0'; | |
print(url); | |
var url2 = Uri.parse('http://google.com'); |
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
Daily Stats: | |
metadata: { | |
date: '...' | |
type: 'CAMPAIGN' | |
'ref': | |
} |
OlderNewer