Skip to content

Instantly share code, notes, and snippets.

View bearpaw's full-sized avatar

Wei Yang bearpaw

View GitHub Profile
@bearpaw
bearpaw / mmdetection_env.sh
Created June 10, 2019 18:02 — forked from hellock/mmdetection_env.sh
Setup mmdetection with conda
conda create -n open-mmlab python=3.7 -y
source activate open-mmlab
conda install -c pytorch pytorch torchvision -y
conda install cython -y
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
./compile.sh
pip install -e . # "pip install ." for installation mode
@bearpaw
bearpaw / delete_git_submodule.md
Last active February 5, 2019 00:22 — 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
@bearpaw
bearpaw / starcounter.js
Last active June 13, 2018 09:31 — forked from yyx990803/starcounter.js
Count your total stars!
var https = require('https'),
user = process.argv[2],
opts = parseOpts(process.argv.slice(3))
request('/users/' + user, function (res) {
if (!res.public_repos) {
console.log(res.message)
return
}
var pages = Math.ceil(res.public_repos / 100),
@bearpaw
bearpaw / notebook.sh
Last active March 9, 2017 05:46 — forked from yangj1e/notebook.sh
Deploy Jupyter Notebook server
#!/usr/bin/env bash
cd ~
wget https://repo.continuum.io/archive/Anaconda2-4.3.0-Linux-x86_64.sh
bash Anaconda2-4.3.0-Linux-x86_64.sh -b
echo 'PATH="/home/ubuntu/anaconda2/bin:$PATH"' >> .bashrc
. .bashrc
jupyter notebook --generate-config
@bearpaw
bearpaw / redshift.conf
Created June 3, 2016 11:59 — forked from bcomnes/redshift.conf
My configuration file for Redshift. Place it in ~/.config/ Drag redshift onto the Startup Applications menu to have it boot on start
; Global settings
[redshift]
temp-day=6500K
temp-night=5000
transition=1
;gamma=0.8:0.7:0.8
gamma=1.000:1.000:1.000
location-provider=geoclue
;location-provider=manual
adjustment-method=vidmode