Skip to content

Instantly share code, notes, and snippets.

View yzf's full-sized avatar
🎯
Focusing

Jeff Yuan yzf

🎯
Focusing
  • Netease Games
  • GuangZhou, China
View GitHub Profile
@yzf
yzf / fix_redis_warning.sh
Last active July 6, 2016 02:14
解决redis安装后的几个warning
#!/bin/bash
# Or add `vm.overcommit_memory=1` in `/etc/sysctl.conf` and call `sudo sysctl -p`
sudo sysctl vm.overcommit_memory=1
# Or add `echo never > /sys/kernel/mm/transparent_hugepage/enabled` in `/etc/rc.local`
sudo echo never > /sys/kernel/mm/transparent_hugepage/enabled
@yzf
yzf / install_parallel_tools.sh
Last active July 6, 2016 02:15
无图形界面时,安装PD tools
#!/bin/bash
umount /media/cdrom
mount -o exec /media/cdrom
cd /media/cdrom
./install
shutdown now
@yzf
yzf / update_git_author.sh
Last active July 6, 2016 02:15
更新仓库的commit的提交者信息
#!/bin/bash
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "original_email_addr" ]