Skip to content

Instantly share code, notes, and snippets.

@terrydang
terrydang / arg_max_wiki.md
Created May 30, 2016 06:27
数学中常用符号 arg max(arg min) 含义解释
@terrydang
terrydang / download-install-openbts.sh
Created May 29, 2016 07:53
Download and install openbts
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
git clone https://github.com/RangeNetworks/dev.git
cd dev
./clone.sh
./switchto.sh master
@terrydang
terrydang / gist:160f00040eed81bac012bd4d85801e1d
Created May 27, 2016 06:10
命令行下使用 socks5 代理
export http_proxy=socks5://127.0.0.1:8080 https_proxy=socks5://127.0.0.1:8080
@terrydang
terrydang / install_tensorflow_form_source_Ubuntu_16_04.md
Last active April 2, 2018 05:48
Ubuntu 16.04 安装 tensorflow with GPU support(源码编译安装)

Ubuntu 16.04 安装 tensorflow with GPU support(源码编译安装)

显卡型号
NVIDIA Corporation GM204 [GeForce GTX 970]

1. 安装依赖
@terrydang
terrydang / install_cuda_7_5_Unbuntu_16_04.md
Created May 27, 2016 03:23
Ubuntu 16.04 安装 NVIDIA CUDA Toolkit 7.5

Ubuntu 16.04 安装 NVIDIA CUDA Toolkit 7.5

NVIDIA CUDA Toolkit 7.5 目前官方只适配了 Ubuntu 15.04 和 Ubuntu 14.04 两个版本的系统。如果你是这两个系统,可以直接去官方下载安装文件安装。

由于其没有适配 Ubuntu 16.04 ,这里我们通过下载官方为 CUDA 7.5 为 Uubuntu 15.04 适配的 runfile(local) 安装。

@terrydang
terrydang / install_nvidia_driver_in_ubuntu1604.md
Last active August 8, 2022 09:31
Ubuntu 16.04 安装英伟达(Nvidia)显卡驱动

Ubuntu 16.04 安装英伟达(Nvidia)显卡驱动

配有英伟达显卡的主机,装完 Ubuntu 16.04 后出现闪屏现象,是由于没有安装显卡驱动。

显卡型号
NVIDIA Corporation GM204 [GeForce GTX 970]

@terrydang
terrydang / config_gist_in_sublime.md
Last active May 25, 2016 08:35
Sublime text 3 安装和配置 Gist 插件(OSX 10.11.5)

Sublime text 3 安装和配置 Gist 插件(OSX 10.11.5)

1. 安装 Gist

$cd /users/terry/Library/Application Support/Sublime Text 3/Packages
$git clone git://github.com/condemil/Gist

2. 配置 Gist 所需的 token ( 用于授权 github )

@terrydang
terrydang / 0_reuse_code.js
Created May 25, 2016 06:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@terrydang
terrydang / pr-log.py
Created January 10, 2016 14:12 — forked from kylemcdonald/pr-log.py
Probe request MAC/SSID pair logging with tcpdump and Python3 for OS X, using airport for channel hopping.
import re
import pickle
from threading import Timer
import subprocess
from subprocess import call
import os.path
import sys
# config
database = 'allPairs.p'