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
| server | |
| { | |
| listen 443; | |
| server_name twitter-api.vii.im api.twitter.com; | |
| ssl on; | |
| ssl_certificate /etc/nginx/certs/vii.im.crt; | |
| ssl_certificate_key /etc/nginx/certs/vii.im.key; | |
| location / { |
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
| var util = require('util'), | |
| twitter = require('twitter'), | |
| colors = require('colors'); | |
| var twit = new twitter({ | |
| consumer_key: '*', | |
| consumer_secret: '*', | |
| access_token_key: '*', | |
| access_token_secret:'*' | |
| }); |
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 | |
| /* bitbucket user */ | |
| $bb_user = 'aveline'; | |
| $bb_pass = '**YOUR PASSWORD**'; | |
| /* github username and password */ | |
| $gh_conf = array( | |
| 'ym' => '**YOUR PASSWORD**', | |
| 'aveline' => '**YOUR PASSWORD**' | |
| ); |
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 test_void () { return false; } | |
| function test_1 ($params = array()) { | |
| if (is_array($params)) { | |
| foreach ($params as $param) { | |
| test_void($param); |
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
| var http = require('http') | |
| , qs = require('querystring'); | |
| http.createServer(function (req, res) { | |
| try { | |
| res.writeHead(200, {'Content-Type': 'text/html'}); | |
| if (req.method == 'POST') { | |
| var result = ''; |
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
| acl manager proto cache_object | |
| acl localhost src 127.0.0.1/32 | |
| acl localhost src ::1/128 | |
| acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 | |
| acl to_localhost dst ::1/128 | |
| acl localnet src 10.0.0.0/8 | |
| acl localnet src 172.16.0.0/12 | |
| acl localnet src 192.168.0.0/16 | |
| acl localnet src fc00::/7 | |
| acl localnet src fe80::/10 |
NewerOlder