-
Install rvm https://rvm.io/
-
Install jruby
rvm install jruby
-
use jruby
curl 'http://127.0.0.1:9200/_all/_stats/' | python -m json.tool- Classes, Properties, and Methods
ในข้อกำหนด คลาส หมายรวมถึงคำสำคัญ class, interface และ traits
การประกาศใช้ extends และ implements ต้องอยู่ในบรรทัดเดียวกับชื่อคลาส
การเปิดปีกกาของคลาสต้องวางในบรรทัดต่อจากการประกาศชื่อคลาสและปิดปีกกาในบรรทัดต่อจากโค้ดภายในคลาสนั้น
| [ 'new', 'psr2.6' ] | |
| [ 'golf', 'psr2.1' ] | |
| [ 'nut', 'psr2.7' ] | |
| [ 'nueng', 'psr2.5' ] | |
| [ 'bow', 'psr2.4-2' ] | |
| [ 'aof', 'psr2.3' ] | |
| [ 'pf', 'psr2.2' ] | |
| [ 'pkid', 'psr1' ] | |
| [ 'me', 'psr2.4-1' ] |
| <?php | |
| class Car { | |
| public static function test() { | |
| echo 'test'; | |
| } | |
| } | |
| class TestService { | |
| private function model() { | |
| return 'Car'; |
Provisioning scripts run after mounts. If you set the provisioning script to run "always", then you can do something like this:
config.vm.provision :shell, :inline => "sudo service mysql start", run: "always"...which is an easier solution than having to use upstart.
| Host 192.168.0.* | |
| StrictHostKeyChecking no | |
| UserKnownHostsFile=/dev/null |
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass
| { | |
| "bold_folder_labels": true, | |
| "theme": "Seti.sublime-theme", | |
| "color_scheme": "Packages/Seti_UI/Scheme/Seti_monokai.tmTheme", | |
| "draw_minimap_border": true, | |
| "font_face": "Ubuntu Mono", | |
| "font_options": "subpixel_antialias", | |
| "font_size": 13, |
OS: Ubuntu 14.04 amd64
-
download deb file http://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb
-
install via
dpkg -i influxdb_latest_amd64.deb -
configure
/opt/influxdb/shared/config.tomladdinput_plugins.collectdbelow theinput_pluginssection[input_plugins]
[input_plugins.collectd]