Skip to content

Instantly share code, notes, and snippets.

View deneschen's full-sized avatar
🎯
Focusing

SomeOne deneschen

🎯
Focusing
View GitHub Profile
vi ~/.bashrc
修改.bashrc添加下面两行
alias tmux='tmux -2'
export TERM="screen-256color"
source一下~/.bashrc
KcpTun客户端程序下载:
https://github.com/xtaci/kcptun/releases
https://github.com/kuoruan/shell-scripts
@deneschen
deneschen / Book
Created August 9, 2017 14:16
gorman book
https://www.kernel.org/doc/gorman/html/understand/
@deneschen
deneschen / I2C测试工具源码
Created September 13, 2017 16:12
I2C测试工具源码
https://fossies.org/dox/i2c-tools-3.1.2/
__declspec(dllexport) int test(int len)
{
return len;
}
//注意设置项目属性,编译win32的DLL
//注意也使用32位的Python安装包
import ctypes
#dll = ctypes.windll.LoadLibrary('ConsoleApplication1')
@deneschen
deneschen / 深入理解并行编程一书
Created September 15, 2017 13:21
深入理解并行编程一书
https://www.kernel.org/pub/linux/kernel/people/paulmck/perfbook/perfbook.html
sudo apt-get update
sudo apt-get install git vim wget psmisc python-pip -y
wget --no-check-certificate https://github.com/shadowsocks/shadowsocks-rust/releases/download/v1.7.2/shadowsocks-v1.7.2-stable.x86_64-unknown-linux-musl.tar.xz
tar -Jxf shadowsocks-v1.7.2-stable.x86_64-unknown-linux-musl.tar.xz
cp ssserver /usr/local/bin/
cat <<EOF >/usr/lib/systemd/system/shadowsocks.service
@deneschen
deneschen / gist:a7ff125a1cd13d9eb11acdd79e139b88
Created October 25, 2017 13:39
一些网络地址备份
实时编译汇编指令:https://gcc.godbolt.org/
Kernel实时代码查看:http://elixir.free-electrons.com/linux/v4.14-rc6/source
git clone https://code.csdn.net/chenyu105/linux_kernel_2-6-11-12_comment.git
git clone https://code.csdn.net/xiebaoyou/linux-4-3-0-comment.git
@deneschen
deneschen / WindowDos批处理指导
Last active September 13, 2022 03:14
WindowDos批处理指导
Windows批处理(cmd/bat)常用命令小结
前言
批处理文件(batch file)包含一系列 DOS命令,通常用于自动执行重复性任务。用户只需双击批处理文件便可执行任务,而无需重复输入相同指令。
编写批处理文件非常简单,但难点在于确保一切按顺序执行。编写严谨的批处理文件可以极大程度地节省时间,在应对重复性工作时尤其有效。
在Windows中善用批处理可以简化很多重复工作
阅读原文 - https://wsgzao.github.io/post/windows-batch/