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
FROM salt-minion | |
ADD salt-2015.5.3+ds-1trusty1 /var/tmp/ | |
RUN sh -c "dpkg -i /var/tmp/salt-2015.5.3+ds-1trusty1/*.deb || apt-get install -y -f" | |
RUN touch /var/log/salt/minion | |
ENTRYPOINT service salt-minion restart && tail -f /var/log/salt/minion |
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/zsh | |
# inspired on: https://github.com/jkrehm/todotxt-cli-addons | |
# | |
# 功能: | |
# 处理 [todotxt][1] [数据文件][2]中含有 **提醒标记** 的任务事项, | |
# 把他们格式化之后另存为 [remind][3] 格式的[数据文件][4]。 | |
# | |
# 提醒标记(可自定义、符合 todotxt [格式][2]即可): | |
# rem:(.*) | |
# |
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
Section "ServerLayout" | |
Identifier "amdcccle Layout" | |
Screen 0 "amdcccle-Screen[1]-0" 0 0 | |
EndSection | |
Section "Monitor" | |
Identifier "0-DFP10" | |
Option "VendorName" "ATI Proprietary Driver" | |
Option "ModelName" "Generic Autodetecting Monitor" | |
Option "DPMS" "true" |
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
# 贴到 $HOME/.goaccessrc | |
color COLOR_MTRC_HITS color27:color254 | |
color COLOR_MTRC_VISITORS color161:color254 | |
color COLOR_MTRC_DATA color28:color254 | |
color COLOR_MTRC_BW color173:color254 | |
color COLOR_MTRC_AVGTS color240:color254 | |
color COLOR_MTRC_CUMTS color130:color254 | |
color COLOR_MTRC_MAXTS color92:color254 | |
color COLOR_MTRC_PROT color161:color254 | |
color COLOR_MTRC_MTHD color75:color254 |
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
COMMENT ##################### | |
COMMENT vim-powerline symbols | |
COMMENT - <U2B60>...<U2B62> | |
COMMENT - <U2B80>...<U2B83> | |
COMMENT ##################### | |
STARTCHAR U+2B60 | |
ENCODING 11104 | |
SWIDTH 360 0 | |
DWIDTH 10 0 | |
BBX 10 20 0 -6 |
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/perl -w | |
my $debug = 0; | |
# | |
# ical2rem.pl - | |
# Reads iCal files and outputs remind-compatible files. Tested ONLY with | |
# calendar files created by Mozilla Calendar/Sunbird. Use at your own risk. | |
# Copyright (c) 2005, 2007, Justin B. Alcorn | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License |
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
mmonit=> INSERT INTO messageformat VALUES( | |
mmonit(> 1, | |
mmonit(> 'Default', | |
mmonit(> 'mmonit@verns-worktop', | |
mmonit(> 'M/Monit report ($HOST: $EVENT $SERVICE on $DATE)', | |
mmonit(> 'M/Monit report ($COUNT events)', | |
mmonit(> NULL, | |
mmonit(> replace('Date: $DATE\nHost: $HOST\nService: $SERVICE\nAction: $ACTION\nDescription: $DESCRIPTION\n\n','\n',char(10)), | |
mmonit(> replace('\nYour faithful employee,\nM/Monit','\n',char(10)), | |
mmonit(> replace('<html>\n <table style=''border-collapse:collapse;border:1px solid #eee; padding:5px;''>\n <tr>\n <th style=''border: 1px solid #eee; padding:5px;''><b>Date</b></th>\n <th style=''border: 1px solid #eee; padding:5px;''><b>Host</b></th>\n <th style=''border: 1px solid #eee; padding:5px;''><b>Service</b></th>\n <th style=''border: 1px solid #eee; padding:5px;''><b>Action</b></th>\n <th style=''border: 1px solid #eee; padd |
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
# usage: | |
# $ mfscli -np -SIM -SIG | mtail -one_shot -progs mfs.mtail -logs - | |
# OR | |
# $ mtail -progs mfs.mtail -logs mfscli.log | |
# $ mfscli -np -SIM -SIG > mfscli.log | |
# | |
# -SIM {{{ | |
text metadata_servers_state by ip, version | |
gauge metadata_servers_cpu_all by ip, version |
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
/home/scm/.logrotate.dummy { | |
daily | |
su scm scm | |
rotate 0 | |
create | |
ifempty | |
lastaction | |
cd /home/scm/instance/ | |
/usr/bin/find . -path "*/logs/*old*" -type f -mtime +90 -delete | |
/usr/bin/find . -path "*/logs/*log*" -type f -mtime +90 -delete |
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 | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" | |
export PACK_ROOT="${PACK_ROOT:-/}" | |
export PACK_NAME="${PACK_NAME:-$(shuf -zer -n5 {a..z})}" | |
export PACK_SIZE="${PACK_SIZE:-10000}" | |
export PACK_JOBS="${PACK_JOBS:-16}" | |
while [[ "$#" -gt 1 ]]; do | |
case $1 in |