Skip to content

Instantly share code, notes, and snippets.

View PharrellWANG's full-sized avatar

Pharrell PharrellWANG

View GitHub Profile
Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH
Keys are generic ones. These are the same from MSDN account.
Product Key : -6Q8QF
Validity : Valid
Product ID : 00369-90000-00000-AA703
Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017
#!/bin/bash
################################################################################
### OpenCV3 Installation Script ###
################################################################################
### Dependencies
sudo apt-get update
sudo apt-get install -y build-essential git libgtk2.0-dev pkg-config \
python-numpy python-dev libavcodec-dev libavformat-dev \
#!/bin/bash
################################################################################
### OpenCV3 Installation Script ###
################################################################################
### Dependencies
sudo apt-get update
sudo apt-get install -y build-essential git libgtk2.0-dev pkg-config \
python-numpy python-dev libavcodec-dev libavformat-dev \
#!/bin/bash
################################################################################
### OpenCV2 Installation Script ###
################################################################################
### Single line script will download and run this script automatically:
# curl -s "https://gist.githubusercontent.com/PharrellWANG/cfbcf4d7d649c04a87a5eac46c1a6de2/raw/f9143c6b283f39aa718031b1389b94cd937fc132/install_opencv2_ubuntu1604.sh" | bash
@PharrellWANG
PharrellWANG / InstallOpenCV.md
Created August 29, 2018 02:56 — forked from jruizvar/InstallOpenCV.md
Building OpenCV 3.2.0 from source on macOS Sierra with Python 3 support

Building OpenCV 3.2.0 from source with Python 3 support

Install OpenCV on macOS Sierra enabling Python 3 with the following instructions:

  • Install CMake, Python 3 + Numpy in advance
  • Download latest OpenCV source code (https://github.com/opencv/opencv/releases)
  • Move the folder opencv-3.2.0 to the current directory
  • In the current directory, execute the following steps:
mkdir build

How to access a local website on remote linux server from local machine

Problem

Now you have a website running on a remote linux server locally, e.g, tensorboard --logdir=/tmp --port=8989, and you want to visit http://localhost:8989 on your local machine.

However, the server do not have Firefox installed so you can not use X forwarding, and your username are not in sudoers file on the server so you cannot install any software without the help from sudoer.

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License

@PharrellWANG
PharrellWANG / gist:d9ed0be04de8f523032061120c922f92
Created November 20, 2017 03:44 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:

Keybase proof

I hereby claim:

  • I am pharrellwang on github.
  • I am pharrellwang (https://keybase.io/pharrellwang) on keybase.
  • I have a public key ASB5w-DQe14UCeHjApy5M1HdbMrdzIeb2g_Z5CC9M87hlQo

To claim this, I am signing this object:

@PharrellWANG
PharrellWANG / autopgsqlbackup
Created July 21, 2017 08:27 — forked from matthewlehner/autopgsqlbackup
Auto PostgreSQL backup script.
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <[email protected]>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9