Skip to content

Instantly share code, notes, and snippets.

View xizero00's full-sized avatar
🎯
Focusing

xizero00 xizero00

🎯
Focusing
  • China
View GitHub Profile
@xizero00
xizero00 / mirror.py
Created November 1, 2018 12:58 — forked from hvnsweeting/mirror.py
mirror a PPA
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''
PPA=$1
if [ -z $PPA ] then;
echo "PPA is required. E.g:
fi
DIRECTORY=${2:-ubuntu}
@xizero00
xizero00 / delete_git_submodule.md
Created September 13, 2018 17:17 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@xizero00
xizero00 / readme.md
Created July 19, 2018 09:31 — forked from lyastro/readme.md
install Tensorflow with GPU support on Centos 7

install Tensorflow with GPU support on Centos 7

system: fully installed Centos 7

  • system update
$ sudo yum -y update
$ sudo yum -y install epel-release
$ sudo yum -y install gcc gcc-c++ python-pip python-devel atlas atlas-devel gcc-gfortran openssl-devel libffi-devel