sudo apt-get install byobu curl
byobu # F6 可以让进程在后台运行`
| ;;contains-bt | |
| ;;二叉搜索树 | |
| (define (contains-bt num bt) | |
| (cond | |
| [(empty? bt) false] | |
| [else (cond | |
| [(= (node-ssn bt) num) true] | |
| [(contains-bt num (node-left bt))true] | |
| [(contains-bt num (node-right bt))true] | |
| [else false] |
| #/bin/bash | |
| ls *.JPG >file.txt | |
| for i in $(cat file.txt) | |
| do | |
| name=$(echo $i.jpg) | |
| mv $i $name | |
| done | |
| ##nginx.conf | |
| user group; | |
| worker_processes 4; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 768; | |
| # multi_accept on; | |
| } |
| #include <unistd.h> | |
| #include <sys/types.h> | |
| #include <errno.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define MAX_DATA_LEN 256 | |
| #define DELAY_TIME 1 | |
| int main(){ |
| *.pyc | |
| *~ | |
| *.[oa] | |
| *.db | |
| *.*~ | |
| # See http://help.github.com/ignore-files/ for more about ignoring files. | |
| # | |
| # If you find yourself ignoring temporary files generated by your text editor | |
| # or operating system, you probably want to add a global ignore instead: | |
| # git config --global core.excludesfile ~/.gitignore_global |
| { "keys": ["j","j"], "command": "exit_insert_mode", | |
| "context": | |
| [ | |
| { "key": "setting.command_mode", "operand": false }, | |
| { "key": "setting.is_widget", "operand": false } | |
| ] | |
| }, | |
| { "keys": ["j","j"], "command": "hide_auto_complete", "context": | |
| [ |
socket位置
mysql_config --socket
输出
/var/run/mysqld/mysqld.sock
mysql备份数据库
| SSH_PORT = 80 | |
| SSH_USER = lidashuang@210.44.176.208 | |
| SSH_USERPATH = ~/scrapbook | |
| DIR = ~/scrapbook | |
| rsync: | |
| rsync -avze 'ssh -p $(SSH_PORT)' --delete $(DIR) $(SSH_USER):$(SSH_USERPATH) |
| (fn [seq] | |
| (map-indexed (fn [id val] (vector val id)) seq)) | |