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
| ab -n 10000 -c 100 http://localhost:8010/web/project/spll/app.php/profiling/datalist?table=user | |
| This is ApacheBench, Version 2.3 <$Revision: 1528965 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking localhost (be patient) | |
| Completed 1000 requests | |
| Completed 2000 requests | |
| Completed 3000 requests | |
| Completed 4000 requests |
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
| # You will need to make this file executable (chmod u+x) and run it with sudo | |
| apt-get update | |
| apt-get --fix-missing -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk | |
| mkdir -p /src/erlang | |
| cd /src/erlang | |
| wget http://www.erlang.org/download/otp_src_R15B01.tar.gz | |
| tar -xvzf otp_src_R15B01.tar.gz | |
| chmod -R 777 otp_src_R15B01 | |
| cd otp_src_R15B01 | |
| ./configure |
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
| http://blog.donaldderek.com/2013/06/build-your-own-google-tv-using-raspberrypi-nodejs-and-socket-io/ | |
| https://www.danpurdy.co.uk/web-development/raspberry-pi-kiosk-screen-tutorial/ |
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
| lmvm@lm17 ~/web/web $ ab -r -n 100000 -c 1000 http://www.ekuitas.com/ | |
| This is ApacheBench, Version 2.3 <$Revision: 1528965 $> | |
| Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
| Licensed to The Apache Software Foundation, http://www.apache.org/ | |
| Benchmarking www.ekuitas.com (be patient) | |
| Completed 10000 requests | |
| Completed 20000 requests | |
| Completed 30000 requests | |
| Completed 40000 requests |
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
| // Login API | |
| var auth = riot.observable() | |
| auth.login = function(params) { | |
| $.get('/api', params, function(json) { | |
| auth.trigger('login', json) | |
| }) | |
| } | |
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
| func pasteHandler(w http.ResponseWriter, r *http.Request) { | |
| paste_id := strings.TrimPrefix(r.URL.Path, "/paste") | |
| paste := &Paste{UUID: paste_id} | |
| keep_alive := false | |
| burn_after_reading := false | |
| data := struct { | |
| Paste *Paste | |
| KeepAlive bool | |
| BurnAfterReading bool |
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
| import ( | |
| "crypto/md5" | |
| "encoding/hex" | |
| ) | |
| func GetMD5Hash(text string) string { | |
| hasher := md5.New() | |
| hasher.Write([]byte(text)) | |
| return hex.EncodeToString(hasher.Sum(nil)) | |
| } |
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
| //http://codepen.io/chrisenytc/pen/gyGcx | |
| $window.sessionStorage; |
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
| package main | |
| import ( | |
| "errors" | |
| "log" | |
| "os" | |
| "github.com/PuerkitoBio/goquery" | |
| "github.com/robertkrimen/otto" | |
| ) |
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
| https://ttboj.wordpress.com/2015/07/27/golang-parallelism-issues-causing-too-many-open-files-error/ | |
| https://github.com/kkdai/ |