Skip to content

Instantly share code, notes, and snippets.

☠️
Doing nothing productive...

Sungjin Han meinside

☠️
Doing nothing productive...
Block or report user

Report or block meinside

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@meinside
meinside / notify-ssh-login.sh
Created Jun 5, 2019
Notify with pushbullet message on successful ssh logins
View notify-ssh-login.sh
#!/bin/bash
#
# notify-ssh-login.sh
#
# Notifies successful ssh logins through pushbullet
#
# NOTE: this script will be run as root, so don't forget to put related config files under /root/.config/
#
#
# last update: 2019.06.05.
@meinside
meinside / notify-fail2ban.sh
Created Jun 5, 2019
Notify with pushbullet message on fail2ban's ban actions
View notify-fail2ban.sh
#!/bin/bash
#
# notify-fail2ban.sh
#
# Notifies on fail2ban's ban actions through pushbullet
#
# NOTE: this script will be run as root, so don't forget to put related config files under /root/.config/
#
# USAGE: $ ./notify-fail2ban.sh 8.8.8.8 ssh
#
@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
You can’t perform that action at this time.