Install SleepWatcher using Homebrew:
sudo chown -R $(whoami) /usr/local
brew update
brew install sleepwatcher
Start the SleepWatcher service:
Install SleepWatcher using Homebrew:
sudo chown -R $(whoami) /usr/local
brew update
brew install sleepwatcher
Start the SleepWatcher service:
#== Cisco ASA == | |
HOSTNAME \b(?:[_0-9A-Za-z][_0-9A-Za-z-]{0,62})(?:\.(?:[_0-9A-Za-z][_0-9A-Za-z-]{0,62}))*(\.?|\b) | |
CTIMESTAMP %{YEAR}-%{MONTHNUM2}-%{MONTHDAY}[T ]%{HOUR}:?%{MINUTE}(?::?%{SECOND})(?:\.[0-9]+)?%{ISO8601_TIMEZONE} | |
CISCO_TAGGED %{CTIMESTAMP}( %{SYSLOGHOST:host})? %{CISCO_TAG:ciscotag}: | |
CISCO_ASA_TAGGED %{CTIMESTAMP}( %{SYSLOGHOST:host})? %{CISCO_ASA_TAG:ciscotag}: | |
CISCO_CLASS [0-9]{3} | |
CISCO_STRUC [A-Z0-9_]+ | |
CISCO_TAG %{CISCO_STRUC:cisco_facility}-%{INT:cisco_severity}-%{CISCO_STRUC:cisco_mnemonic}|WLC[0-9]+ | |
CISCO_ASA_TAG %[A-Z0-9_]+-%{INT:cisco_severity}-%{CISCO_CLASS:cisco_class}[0-9]{3} | |
# Common Particles |
#!/bin/sh | |
if [ "$1" ] | |
then | |
find "$1" -name '*.flac' | while read fn; | |
do | |
basename=$(basename "$fn" .flac).mp3 | |
dirname=$(dirname "$fn") | |
outfile="$dirname/$basename" |
{ | |
"cmd": ["make"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${project_path:${folder}}", | |
"selector": "source.c, source.c++", | |
"variants": | |
[ | |
{ | |
"name": "Run", | |
"working_dir": "${project_path:${folder}}", |
#!/bin/bash | |
# ----------------------------------------------------------------------------------- | |
# pem2pkcs12.sh | |
# (c) Nathan Nobbe 2014 | |
# quickshiftin@gmail.com | |
# http://quickshiftin.com | |
# | |
# Use this script to convert a set of apache ssl certificates to a format suitable | |
# for Jetty. | |
# |
mkdir io-test | |
cd io-test/ | |
wget www.iozone.org/src/current/iozone3_413.tar | |
tar -xvf iozone3_413.tar | |
rm iozone3_413.tar | |
cd iozone3_413/src/current/ | |
make linux-AMD64 | |
./iozone -RazMb io-test.xls |
#!/bin/sh | |
# | |
# jenkins-slave: Launch a Jenkins BuildSlave instance on this node | |
# | |
# chkconfig: - 99 01 | |
# description: Enable this node to fulfill build jobs | |
# | |
JENKINS_WORKDIR="/var/jenkins" | |
JENKINS_USER="jenkins" |
#!/bin/bash | |
#-------------------------------------- | |
# | |
# Author(s): | |
# | |
# K.Kadoyama | |
# | |
# Usage: | |
# | |
# mon_put.bash |
##Whitelist IP in ModSecurity | |
#1. If you need to whitelist an IP in ModSecurity (v2.7+), here’s what to do: | |
nano /usr/local/apache/conf/modsec2/whitelist.conf | |
#2. add this line, replacing (#####) with a unique ID number for mod security, I used a version of my whitelisted ip address: | |
SecRule REMOTE_ADDR "@ipMatch 1.2.3.4" "phase:1,t:none,nolog,allow,ctl:ruleEngine=Off,ctl:auditEngine=Off,id:(#####)" | |
#3. Then restart apache. |