Skip to content

Instantly share code, notes, and snippets.

View bendangnuksung's full-sized avatar
👷‍♂️
At work

Bendang bendangnuksung

👷‍♂️
At work
View GitHub Profile
@davfre
davfre / git_cheat-sheet.md
Last active August 11, 2024 11:12
git commandline cheat-sheet
@dimitardanailov
dimitardanailov / mongo-commands.md
Last active December 8, 2022 18:38
MongoDB - Commands
# Get documents, where writters are Joel Coen and Ethan Coen.
db.movieDetails.find({ "writters" : ["Joel Coen", "Ethan Coen"] }).count()
# Get documents, where Jeff Bridges is playing leading role.
> db.movieDetails.find({ "actors.0": "Jeff Bridges" }).pretty()
@kylehounslow
kylehounslow / client.py
Last active April 23, 2024 10:58
Send and receive images using Flask, Numpy and OpenCV
from __future__ import print_function
import requests
import json
import cv2
addr = 'http://localhost:5000'
test_url = addr + '/api/test'
# prepare headers for http request
content_type = 'image/jpeg'
@jayspeidell
jayspeidell / kaggle_download.py
Last active July 18, 2023 12:23
Sample script to download Kaggle files
# Info on how to get your api key (kaggle.json) here: https://github.com/Kaggle/kaggle-api#api-credentials
!pip install kaggle
api_token = {"username":"USERNAME","key":"API_KEY"}
import json
import zipfile
import os
with open('/content/.kaggle/kaggle.json', 'w') as file:
json.dump(api_token, file)
!chmod 600 /content/.kaggle/kaggle.json
!kaggle config path -p /content
# This is a note of https://blog.pjsen.eu/?p=440
I did a little research and have found that GIT Bash uses MINGW compilation of GNU tools.
It uses only selected ones.
You can install the whole distribution of the tools from https://www.msys2.org/
and run a command to install Tmux. And then copy some files to installation folder of Git.
This is what you do:
Install before-mentioned msys2 package and run bash shell
Install tmux using the following command: pacman -S tmux
@bendangnuksung
bendangnuksung / docker_tf_model_setup.md
Last active January 7, 2022 08:59
nvidia docker, tensorflow model server GPU setup for ubuntu (for cuda 9)

Setup Nvidia docker, TF model server GPU setup

Install Docker

Reference here

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce