Skip to content

Instantly share code, notes, and snippets.

View meinside's full-sized avatar
🤡
I hope my code makes more cents than my life.

Sungjin Han meinside

🤡
I hope my code makes more cents than my life.
View GitHub Profile
@meinside
meinside / notify-ssh-login.sh
Last active May 3, 2022 08:08
Notify with pushbullet message on successful ssh logins
#!/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
Last active May 3, 2022 08:08
Notify with pushbullet message on fail2ban's ban actions
#!/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 November 7, 2018 11:26
Dockerfile for example
# 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
@meinside
meinside / 2017-11-21-Simple-Sabotage-Field-Manual.md
Last active March 26, 2019 08:05
Simple Sabotage Field Manual (Korean)

Simple Sabotage Field Manual


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

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

@meinside
meinside / systemd_go_example.service
Created November 16, 2015 01:15
Systemd service file for Go application
[Unit]
Description=__Service_Description__
After=syslog.target
After=network.target
[Service]
Type=simple
User=__Run_User__
Group=__Run_Group__
WorkingDirectory=__Directory_Path__
@meinside
meinside / 2gif.rb
Last active July 6, 2022 04:33
Slice & convert given video files to .gif format. GIF 짤방 제조용 스크립트. (Tested on OSX & ffmpeg built with 'brew install ffmpeg --with-libvpx --with-libvorbis')
#!/usr/bin/env ruby
# frozen_string_literal: true
# 2gif.rb
#
# https://gist.github.com/meinside/62c442900e6d73d5d3d9
#
# Convert video to gif.
# * referenced: http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
#