Skip to content

Instantly share code, notes, and snippets.

@dan1901
dan1901 / django-shell-notebook-setup.md
Created February 25, 2021 08:17 — forked from madyasiwi/django-shell-notebook-setup.md
Guide to setup Django-shell Jupyter notebook running in Docker container

Setting Up Django-Shell Jupyter Notebook in Docker Container

This guide assumes that your django application already running in the container.

1. Install required python packages

You will have to make sure that django-extensions and jupyter packages are installed in the container's python virtual environment.

If you need to shell into the container as root user to do this, you can do so from the host PC:

@dan1901
dan1901 / amazon-rekognition.md
Created February 3, 2020 07:07 — forked from alexcasalboni/amazon-rekognition.md
Amazon Rekognition - Python Code Samples

Amazon Rekognition - Python Code Samples

  1. Labels Detection
  2. Faces Detection
  3. Faces Comparison
  4. Faces Indexing
  5. Faces Search
@dan1901
dan1901 / Windows10AWSEC2.md
Created September 14, 2018 09:19 — forked from peterforgacs/Windows10AWSEC2.md
Running Windows 10 on AWS EC2

Running Windows 10 on AWS EC2

Downloading the image

Download the windows image you want.

AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)

So Home wont work.

@dan1901
dan1901 / array_dupplicate_counter.js
Created July 6, 2018 02:33 — forked from ralphcrisostomo/array_dupplicate_counter.js
Javascript: Count duplicates in an array
/**
Problem:
You have a javascript array that likely has some duplicate values and you would like a count of those values.
Solution:
Try this schnippet out.
*/
@dan1901
dan1901 / try_catch_stackoverflow.py
Created February 27, 2017 07:51
파이썬에서 exception 을 바로 stack overflow로 검색하기
import webbrowser
try:
# Todo code..
except Exception as exp:
webbrowser.open('http://stackoverflow.com/search?q='+exp,new=0,autoraise=True)
@dan1901
dan1901 / docker_cheat.md
Created February 14, 2017 05:46 — forked from nacyot/docker_cheat.md
도커(Docker) 치트 시트

Docker 치트 시트

한국어 번역(초벌) : nacyot

왜 Docker를 사용해야하는가?

Why Should I Care (For Developers)

"나에게 Docker의 매력은 간단히 격리된 환경을 만들 수 있다는 것과, 그러한 환경을 재사용할 수 있다는 점이다."런타임 환경을 한 번 만들어 패키지로 만들면, 이 패키지를 다른 어떤 머신에서도 다시 사용할 수 있다. 또한 여기서 실행되는 모든 것은 마치 가상머신과 같이 호스트로부터 격리되어있다. 무엇보다도 이런 모든 일들이 빠르고 간단히 가능하다.

@dan1901
dan1901 / # cmake - 2016-08-24_15-29-16.txt
Created August 24, 2016 06:30
cmake on Mac OS X 10.12 - Homebrew build logs
Homebrew build logs for cmake on Mac OS X 10.12
Build date: 2016-08-24 15:29:16