간단한 사보타주 실전 매뉴얼
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
#!/usr/bin/env bash | |
# | |
# script for checking local mail | |
# | |
# | |
# * for running every one hour: | |
# | |
# $ crontab -e | |
# | |
# # m h dom mon dow command |
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 | |
# | |
# transmission-complete-broadcast.sh | |
# | |
# last update: 2019.08.29. | |
# | |
# for broadcasting transmission download complete message | |
# through telegram-bot-remotecontrol | |
# (github.com/meinside/telegram-bot-remotecontrol) | |
# |
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/sh | |
# | |
# script for waking up on lan | |
# XXX - mac address to wake up | |
MAC_ADDR="01:23:45:67:AB:CD" | |
WOL="/usr/bin/wakeonlan" # apt-get install wakeonlan | |
$WOL "$MAC_ADDR" |
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. |
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
/* | |
Send a message on Transmission(torrent) completion: | |
https://trac.transmissionbt.com/wiki/Scripts | |
* Created on : 2015.07.07. | |
* Last update: 2015.07.16. | |
* by meinside@duck.com |
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 | |
# coding: UTF-8 | |
# inline_image.rb | |
# | |
# generates in-line image tag | |
# (referenced: http://en.wikipedia.org/wiki/Data_URI_scheme) | |
# | |
# created on : 2013.06.30 | |
# last update: 2013.06.30 |
OlderNewer