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 | |
| #Program: | |
| # This program runs the dependences of HIlary: | |
| # cassandra | |
| # redis | |
| # elasticsearch | |
| # rabbitmq | |
| #Parameter: | |
| # config | |
| # config the script even if there's configuration file exist |
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
| set-window-option -g mode-keys vi | |
| # set prefix key fro C-b to C-a | |
| set-option -g prefix C-n | |
| ##################################### | |
| # Key Binding | |
| # bind-key [-cnr] [-t key-table] key command [arguments] | |
| # -n: ignore prefix key | |
| ##################################### | |
| ## split |
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
| syntax on | |
| set tabstop=4 | |
| set autoindent | |
| set nu | |
| set background=dark | |
| "Comment | |
| "colorscheme solarized | |
| nmap <CR> o<ESC>k | |
| nmap <SPACE> i<SPACE><ESC> |
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
| ! 37 control_l | |
| ! 133 Super_L | |
| ! remove Lock = Caps_Lock | |
| ! remove Control = Control_L | |
| ! keysym Control_L = Caps_Lock | |
| ! keysym Caps_Lock = Control_L | |
| ! add Lock = Caps_Lock | |
| ! add Control = Control_L |
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 | |
| ipaddr=$(ifconfig eth0 | grep 'inet addr:') | |
| ROS_MASTER_URI=${ipaddr:20:12} | |
| export ROS_MASTER_URI=$ROS_MASTER_URI |
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
| 1 #!/bin/bash | |
| 2 ip=$(ifconfig eth0 | grep inet | awk '{print $2}' | cut -d':' -f2) | |
| 3 echo "To: dustsnow@126.com\nFrom: dustsnow@gmail.com\nSubject: IP Address\n" > msg.txt | |
| 4 echo ${ip} >> msg.txt | |
| 5 | |
| 6 ssmtp dustsnow@126.com < msg.txt |
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
| String[] myStringArray = new String[] { "Cool", "Very nice", "Hate it" }; | |
| ArrayAdapter adapter = new ArrayAdapter<String>(this, | |
| android.R.layout.simple_list_item_1, myStringArray); | |
| ListView listView = (ListView) findViewById(R.id.listView1); | |
| listView.setAdapter(adapter); |
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 80; | |
| root /var/www; | |
| index index.php index.html index.htm; | |
| error_page 404 /404.html; | |
| error_page 500 502 503 504 /50x.html; | |
| location = /50x.html { |
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
| web: node app.js | |
| worker: node consumer.js |
OlderNewer