간단한 사보타주 실전 매뉴얼
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=__Service_Description__ | |
After=syslog.target | |
After=network.target | |
[Service] | |
Type=simple | |
User=__Run_User__ | |
Group=__Run_Group__ | |
WorkingDirectory=__Directory_Path__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |