Skip to content

Instantly share code, notes, and snippets.

View PharrellWANG's full-sized avatar

Pharrell PharrellWANG

View GitHub Profile
@PharrellWANG
PharrellWANG / labels_1024.tsv
Created May 10, 2017 13:42 — forked from teamdandelion/labels_1024.tsv
TensorBoard: TF Dev Summit Tutorial
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
7
2
1
0
4
1
4
9
5
9
@PharrellWANG
PharrellWANG / jupyter_shortcuts.md
Created June 5, 2017 11:24 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • โŒ˜ : Command
@PharrellWANG
PharrellWANG / jupyter_shortcuts.md
Created June 5, 2017 11:24 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • โŒ˜ : Command
@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

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 / 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:

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License

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.

@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
#!/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