Skip to content

Instantly share code, notes, and snippets.

Avatar
🐷
新年新气象

康行天下 makefile

🐷
新年新气象
View GitHub Profile
@makefile
makefile / CascadeRCNN-demo.py
Last active Dec 3, 2018
Cascade R-CNN demo&test script
View CascadeRCNN-demo.py
import os
import sys
import argparse
import numpy as np
from PIL import Image, ImageDraw
import cv2
import time
import json
# Make sure that caffe is on the python path:
@makefile
makefile / how-to-install-latest-gcc-on-ubuntu-lts.txt How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
View how-to-install-latest-gcc-on-ubuntu-lts.txt
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
@makefile
makefile / install_nvidia_driver_in_ubuntu1604.md
Created Dec 15, 2017 — forked from dangbiao/install_nvidia_driver_in_ubuntu1604.md
Ubuntu 16.04 安装英伟达(Nvidia)显卡驱动
View install_nvidia_driver_in_ubuntu1604.md

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

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

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

@makefile
makefile / ifcfg-he-ipv6
Created Oct 24, 2017 — forked from briancline/ifcfg-he-ipv6
HE.net IPv6 Tunnel Broker - CentOS/RHEL/Fedora NIC config
View ifcfg-he-ipv6
DEVICE="he-ipv6"
DEVICETYPE=sit
BOOTPROTO=none
ONBOOT=yes
IPV6INIT=yes
IPV6TUNNELIPV4=184.105.253.10
IPV6TUNNELIPV4LOCAL=XXX.XXX.XXX.XXX
IPV6ADDR=2001:470:YYYY:YYYY::2/64
IPV6_DEFAULTGW=2001:470:YYYY:YYYY::1
@makefile
makefile / SimpleHTTPServerWithUpload.py
Last active Dec 17, 2019 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload, support ipv6 address, multi threading and utf-8 display
View SimpleHTTPServerWithUpload.py
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""