Skip to content

Instantly share code, notes, and snippets.

View qytang326's full-sized avatar

qytang326

  • Fudan University
  • Shanghai, China
View GitHub Profile
@qytang326
qytang326 / Makefile.include
Created December 12, 2017 08:17
Makefile incluede for vasp 5.4.4, Arch:intel64, and Nvidia GPU
# Precompiler options
CPP_OPTIONS= -DHOST=\"LinuxIFC\"\
-DMPI -DMPI_BLOCK=8000 \
-Duse_collective \
-DscaLAPACK \
-DCACHE_SIZE=4000 \
-Davoidalloc \
-Duse_bse_te \
-Dtbdyn \
-Duse_shmem
@qytang326
qytang326 / git_toturial
Created October 19, 2017 12:18 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "[email protected]" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://[email protected]/VT.git # clone远程仓库
@qytang326
qytang326 / keybase.md
Last active September 14, 2019 14:46

Keybase proof

I hereby claim:

  • I am qytang326 on github.
  • I am quanyin (https://keybase.io/quanyin) on keybase.
  • I have a public key ASA843w66JRQjHRotS4J4AsELKnXwumi6_a9wBPQAodnyAo

To claim this, I am signing this object:

{
"schema_version": 1,
"name": "微信公众号",
"description": "No description provided",
"source_url": false,
"guid": "c0be876a712baf52fa4270d6b1744432",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#00b050",
"icon": "leaf",
"exported_at": "2017-05-28T02:35:18Z",
@qytang326
qytang326 / CMD命令
Created July 11, 2017 10:55
CMD命令汇集
注册表 regedit
cmd.exe /s /k pushd "%V"
禁用服务:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services;Start设为4
卸载不彻底:\HKEY_Current_User\Software\xxx 删掉相关注册项
组策略 gpedit.msc
免密码登陆 netplwiz
定时关机 Shutdown.exe -s -t 7200
!!!重新注册所以dll for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1
for %1 in (%windir%\system32\*.ocx) do regsvr32.exe /s %1
@qytang326
qytang326 / Update-host.bat
Last active July 21, 2021 16:14
Update GFW hosts and Blacklist hosts on Windows
cd C:\Windows\System32\drivers\etc
cp hosts hosts-bak
wget https://raw.githubusercontent.com/lennylxx/ipv6-hosts/master/hosts -O hosts-ipv6
#wget https://raw.githubusercontent.com/racaljk/hosts/master/hosts -O hosts-ipv4
wget https://raw.githubusercontent.com/googlehosts/hosts/master/hosts-files/hosts -O hosts-ipv4
wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts -O hosts-blacklist
cat hosts-other hosts-ipv4 hosts-ipv6 hosts-blacklist > hosts
#sed -i '/vidia/d' hosts
ipconfig/flushdns
echo 'end'