Skip to content

Instantly share code, notes, and snippets.

View ayee's full-sized avatar

Anthony Yee ayee

View GitHub Profile
@ayee
ayee / zeppelin-env-config.json
Last active March 8, 2017 23:54
This file is used to change configuration of Zeppelin started along with EMR Spark cluster.
[
{
"Classification": "zeppelin-env",
"Properties": {
},
"Configurations": [
{
"Classification": "export",
"Properties": {
@ayee
ayee / InstallOpenCViOS.md
Last active January 25, 2021 23:21
How to Install opencv for iOS on OSX
  1. Install cmake
  2. Add to cmake to PATH
PATH=$PATH:/Applications/CMake.app/Contents/bin
  1. Clone OpenCV repository
cd ~/<my_working _directory>
git clone https://github.com/opencv/opencv.git
@ayee
ayee / ca_fields.yaml
Created December 13, 2017 06:56
ca_fields.yaml
card_no:
x: 392
y: 118
w: 227
h: 48
binarize: false
date_of_expiry:
x: 413
y: 195

Create authentication token

Step 1: Get user to create token for

django.contrib.auth.models.User.objects.all() return error AttributeError: Manager isn't available; 'auth.User' has been swapped for 'users.User'

from django.contrib.auth import get_user_model
In [5]: get_user_model()
Out[5]: socgram.users.models.User
In [8]: get_user_model().object.all()
@ayee
ayee / LearningKubernetesNotes.md
Created June 30, 2020 00:51
Notes to Learning Kubernetes

Hello