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
#include <iostream> | |
#include <cstring> | |
#include <cstdlib> | |
#include <vector> | |
using namespace std; | |
class Str{ | |
public: | |
char *value; | |
Str(char s[]) | |
{ |
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
python3 -m http.server 8080 |
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
Adobe Illustrator 2020 | |
链接:https://pan.baidu.com/s/1qdqgr4OvBubsXJR70eF6Og 提取码:5s0b | |
https://uigoodies.com/ | |
https://www.freepik.com/free-vector/mobile-app-template_1116054.htm |
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
/* | |
# Author: Qichunren | |
# Email: [email protected] | |
*/ | |
#include "files_sync.h" | |
#include "nt_config.h" | |
#include "nt_utils.h" | |
#include <QDir> | |
#include <QTimer> |
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
# 统计代码行数,不包括空行 | |
find /src -name "*.cpp" |xargs cat|grep -v ^$|wc -l | |
# 查看进程内存使用情况 | |
cat /proc/409/status | grep VmRSS | awk '{print $2}' | |
# 获取网卡设备对应的IP地址 | |
ifconfig eth0 | grep "inet " | awk '{print $2}' | |
# 获取网卡设备对应的MAC地址 |
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. vscode from https://code.visualstudio.com/ | |
2. ruby 2.6.5 from https://www.ruby-lang.org/zh_cn/, add bin path to /etc/environment | |
3. nodejs from https://nodejs.org/zh-cn/, sudo tar xf xx.tar.gz -C /usr/local, and add bin path to /etc/environment | |
4. sudo visudo, Add ruby and node path to secret path. | |
5. sudo npm install -g yarn | |
6. curl, git, gitg | |
$ git config --global user.name "qichunren" | |
$ git config --global user.email [email protected] | |
7. openssh-server | |
8. Set up ssh key with right permisson flag. |
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
function pajx_request(url) { | |
Rails.ajax({ | |
url: url, | |
type: "get", | |
success: function (data) { | |
console.log(data); | |
$("#pajx_container").html(data.documentElement.innerHTML); | |
window.history.pushState(null, null, url); | |
}, | |
beforeSend: (xhr, options) => { |
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 | |
echo "Start rsync daemon ..." | |
for (( ; ; )) | |
do | |
echo "rsync checking ... [ hit CTRL+C to stop]" | |
rsync -az --exclude 'log/' --exclude 'tmp/' --exclude 'public/' --exclude 'node_modules/' --exclude '.git/' --exclude 'Gemfile.lock' --exclude 'yarn.lock' backend_www [email protected]:/home/xxxxxxx/code/ --delete | |
sleep 3 | |
done |
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
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |