Auto:
https://github.com/Nyr/openvpn-install
Manual:
apt-get update wget http://swupdate.openvpn.org/as/openvpn-as-2.0.21-Ubuntu14.amd_64.deb sudo dpkg -i openvpn-as-2.0.21-Ubuntu14.amd_64.deb
| class VietnameseService | |
| VIETNAMESE_CONVERT_TABLE = { | |
| "a" => ["à","á","ạ","ả","ã","â","ầ","ấ","ậ","ẩ","ẫ","ă","ằ","ắ","ặ","ẳ","ẵ"], | |
| "e" => ["è","é","ẹ","ẻ","ẽ","ê","ề","ế","ệ","ể","ễ"], | |
| "i" => ["ì","í","ị","ỉ","ĩ"], | |
| "o" => ["ò","ó","ọ","ỏ","õ","ô","ồ","ố","ộ","ổ","ỗ","ơ","ờ","ớ","ợ","ở","ỡ"], | |
| "u" => ["ù","ú","ụ","ủ","ũ","ư","ừ","ứ","ự","ử","ữ"], | |
| "y" => ["ỳ","ý","ỵ","ỷ","ỹ"], | |
| "d" => ["đ"], | |
| "A" => ["À","Á","Ạ","Ả","Ã","Â","Ầ","Ấ","Ậ","Ẩ","Ẫ","Ă","Ằ","Ắ","Ặ","Ẳ","Ẵ"], |
| --Add lines to php.ini | |
| xdebug.remote_enable=1 | |
| xdebug.remote_handler=dbgp | |
| xdebug.remote_host=127.0.0.1 | |
| xdebug.remote_port=9000 |
| use this script to check: | |
| <?php | |
| echo "GD: ", extension_loaded('gd') ? 'OK' : 'MISSING', '<br>'; | |
| echo "XML: ", extension_loaded('xml') ? 'OK' : 'MISSING', '<br>'; | |
| echo "zip: ", extension_loaded('zip') ? 'OK' : 'MISSING', '<br>'; | |
| ?> | |
| by default XML and ZIP is OK, GD have to install manually: `sudo apt-get install php5-gd` |
| var casper = require('casper').create(); | |
| var url = 'https://www.getnewsmart.com/articles/80250-xiaomi-keeps-sights-on-india-has-no-ipo-timetable'; | |
| casper.start(url, function() { | |
| this.echo(this.getTitle()); | |
| }) | |
| casper.waitFor(function check() { | |
| return true; |
| // global variable | |
| var allUserData = []; | |
| function logStuff (userData) { | |
| console.log('22222222'); | |
| if ( typeof userData === "string") | |
| { | |
| console.log(userData); | |
| } | |
| else if ( typeof userData === "object") |
| var Q = require('q'); | |
| var request = require('request'); | |
| var cheerio = require('cheerio'); | |
| function getArticleUrlPerPage(pageNumber, articleUrls) { | |
| var deferred = Q.defer(); | |
| var options = { | |
| method: 'GET', |
| function getArticleUrlPerPage(pageNumber, articleUrls, callback) { | |
| var options = { | |
| method: 'GET', | |
| url: 'https://www.getnewsmart.com/?last_time_title=This+week&page=' + pageNumber + '§ion=&xhr=true', | |
| }; | |
| request(options, function(error, response, body) { | |
| if (error) throw new Error(error); | |
| $ = cheerio.load(body); | |
| $('.text-wrapper').each(function(i, elem) { |
| d=3; % Change this to change the size of the matrix | |
| n=10; % Change this to change the range of the numbers | |
| floor(n*rand(d,d)) |
Auto:
https://github.com/Nyr/openvpn-install
Manual:
apt-get update wget http://swupdate.openvpn.org/as/openvpn-as-2.0.21-Ubuntu14.amd_64.deb sudo dpkg -i openvpn-as-2.0.21-Ubuntu14.amd_64.deb