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
#!/bin/bash | |
# Interactive PoPToP install script on a OpenVZ VPS | |
# Tested on Debian 5, 6, and Ubuntu 11.04 | |
# 2011 v1.1 | |
# Author: Commander Waffles | |
# http://www.putdispenserhere.com/pptp-debian-ubuntu-openvz-setup-script/ | |
echo "######################################################" | |
echo "Interactive PoPToP Install Script for OpenVZ VPS" | |
echo "by Commander Waffles http://www.putdispenserhere.com" |
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
public class RandomNumber { | |
public static void main(String args[]) { | |
int[] number = new int[4]; | |
boolean flag = true; | |
for (int i = 0; i < number.length; i++) { | |
int temp = RandomNumber.Generator(); | |
while (flag) { | |
if (RandomNumber.Check(temp, number)) | |
flag = false; |
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
root@Meteor:/home/meteor# startx | |
X.Org X Server 1.12.4 | |
Release Date: 2012-08-27 | |
X Protocol Version 11, Revision 0 | |
Build Operating System: Linux 2.6.24-32-xen x86_64 Ubuntu | |
Current Operating System: Linux Meteor 3.5.0-26-generic #42-Ubuntu SMP Fri Mar 8 23:18:20 UTC 2013 x86_64 | |
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.5.0-26-generic root=UUID=369a6a05-a7fd-4411-a239-6df450539ee0 ro quiet splash vt.handoff=7 | |
Build Date: 05 November 2012 10:00:21AM |
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
root@baidu:/home/meteor# XINITRC=/home/meteor/rc/dummy.xinitrc xinit -- :1 -ac -config dummy.conf | |
X.Org X Server 1.11.3 | |
Release Date: 2011-12-16 | |
X Protocol Version 11, Revision 0 | |
Build Operating System: Linux 2.6.42-37-generic x86_64 Ubuntu | |
Current Operating System: Linux baidu.com 3.2.0-24-virtual #39-Ubuntu SMP Mon May 21 18:44:18 UTC 2012 x86_64 | |
Kernel command line: root=/dev/xvda1 console=hvc0 ro | |
Build Date: 27 February 2013 02:07:42AM |
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
meteor@Meteor:$ supervisor app.js | |
DEBUG: Running node-supervisor with | |
DEBUG: program 'app.js' | |
DEBUG: --watch '.' | |
DEBUG: --ignore 'undefined' | |
DEBUG: --extensions 'node|js' | |
DEBUG: --exec 'node' | |
DEBUG: Starting child process with 'node app.js' |
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
/** | |
* User: meteor | |
* Date: 13-12-27 | |
*/ | |
var request = require('request'); | |
var number = 0; | |
var max_number = 100; | |
function start() { | |
request.post('http://cn.technode.com/chinabang-2014/nominate', |
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
'use strict'; | |
var iconv = require('iconv-lite'); | |
var exec = require('child_process').exec; | |
var child = exec('dir', function (error, stdout, stderr) { | |
var str = iconv.encode(stdout, 'GBK'); | |
console.log('stdout: ' + str); | |
// console.log('stdout: ' + stdout); | |
console.log('stderr: ' + stderr); | |
if (error !== null) { | |
console.log('exec error: ' + error); |
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
/** | |
* Created by meteor on 2014/6/10. | |
*/ | |
var request = require('request'); | |
var fs = require('fs'); | |
var r = request.get('http://www.google.com.hk'); | |
r.pipe(fs.createWriteStream('google.txt')); | |
r.on('response', function (r) { | |
console.log(r.statusCode); | |
}) |
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
{ | |
message: { | |
properties: { | |
content: { | |
type: string | |
} | |
host: { | |
type: string | |
} | |
metadata: { |
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
Remember back in school, when you either invited the new kid over to your table or you didn't? | |
If you did, that was a cool move. | |
That was an and move. | |
And moves take guts, but they can mean everything. | |
Their and move was to put wings on a bicycle. | |
Now we fly. | |
When enough people have an and view, the world changes forever. | |
If you think about it, you're only here because of an and moment. | |
Opening yourself up isn't easy, but when you do, it's hard to forget. | |
Because it leads to something new, something better. |
OlderNewer