Skip to content

Instantly share code, notes, and snippets.

☠️
Doing nothing productive...

Sungjin Han meinside

View GitHub Profile
View update-google-ddns.go
package main
// update-google-ddns.go
//
// Update Google Domain's DDNS configurations
//
// https://support.google.com/domains/answer/6147083?hl=en
//
// created on: 2019.03.04.
// last update: 2019.03.22.
@meinside
meinside / Dockerfile.golang
Last active Nov 7, 2018
Dockerfile for example
View Dockerfile.golang
# Dockerfile for Golang application
#
# idea from: https://medium.com/@pierreprinetti/the-go-1-11-dockerfile-a3218319d191
#
#
# $ docker login
# $ docker build -t image-name .
# or
# $ docker build -t image-name --build-arg GO_VERESION=1.11 .
# or
View gitignore.dart_package
# sample .gitignore file for dart libraries
#
# last update: 2018.07.18.
.dart_tool/
.packages
doc/api/
# remove this if it is an application package
pubspec.lock
@meinside
meinside / README.sh
Created Feb 19, 2018
How to cherry-pick from a forked repository
View README.sh
$ git clone MY_REPOSITORY
$ cd MY_REPOSITORY_DIR
$ git remote add FORKED FORKED_REPOSITORY
$ git fetch FORKED
$ git cherry-pick COMMIT_HASH
...
@meinside
meinside / 2017-11-21-Simple-Sabotage-Field-Manual.md
Last active Mar 26, 2019
Simple Sabotage Field Manual (Korean)
View 2017-11-21-Simple-Sabotage-Field-Manual.md

Simple Sabotage Field Manual


간단한 사보타주 실전 매뉴얼, 1944, 전략사무국

간단한 사보타주 실전 매뉴얼

@meinside
meinside / transmission-complete-broadcast.sh
Last active Jul 7, 2017
Broacast transmission download complete message and remove it from the list.
View transmission-complete-broadcast.sh
#!/bin/bash
#
# transmission-complete-broadcast.sh
#
# last update: 2017.07.07.
#
# for broadcasting transmission download complete message
# through telegram-bot-remotecontrol
# (github.com/meinside/telegram-bot-remotecontrol)
#
View setup_qemu_rpi.sh
#!/bin/bash
#
# Setup and Run QEMU + Raspberry Pi
#
# by: meinside@gmail.com
# last update: 2017.06.05.
# referenced: https://gist.github.com/hfreire/5846b7aa4ac9209699ba
# Install QEMU
brew install qemu
@meinside
meinside / vim-tips.md
Last active Mar 23, 2017
Vim tips that I often forget.
View vim-tips.md

vim tips

line completion

In insert mode, ctrl-n or ctrl-p for browsing through possible completions.

insert filename

In insert mode, ctrl-x-f then select a filename.

@meinside
meinside / check_mail.sh
Last active Feb 16, 2017
Sample bash script for checking unread mails in the spool.
View check_mail.sh
#!/usr/bin/env bash
#
# script for checking local mail
#
#
# * for running every one hour:
#
# $ crontab -e
#
# # m h dom mon dow command
View rpi_camera_face_detection.py
#!/usr/bin/env python
#
# Capture an image through rpi-camera, and detect faces in it.
#
# $ pip install "picamera[array]"
from picamera.array import PiRGBArray
from picamera import PiCamera
import time
import cv2
You can’t perform that action at this time.