Skip to content

Instantly share code, notes, and snippets.

Tom ficus

  • Ficus Design
  • Minneapolis, MN
Block or report user

Report or block ficus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# Simple script to test for network interruption blip we seem to experience for a moment btw. midnight and one. TNG 20170720
# * 0-1 * * * /home/tgodar/tmp_net_test/ | while IFS= read -r line; do echo "$(date) $line"; done >>/home/tgodar/tmp_net_test/netcheck.log
if ping -c1 -w10 google.acom | grep -q '1 packets transmitted\, 1 received\, \0\% packet loss'; then
echo "Ping OK."
echo "Ping Failed!"
ficus / monit-base.conf
Created Oct 6, 2016
Monit configurations for common web server services.
View monit-base.conf
set daemon 120 # check services at 2-minute intervals
with start delay 240 # optional: delay the first check by 4-minutes
set mailserver localhost
set alert
# set alert only on { timeout } # receive just service-
# # timeout alert
ficus / MySQL-DateDim.sql
Created Oct 6, 2016
Populate a Date Dimension Table - Code from Kimball?
View MySQL-DateDim.sql
drop table if exists dim_date;
CREATE TABLE dim_date(
date_key int NOT NULL,
full_date date NULL,
date_name char(11) NOT NULL,
date_name_us char(11) NOT NULL,
date_name_eu char(11) NOT NULL,
day_of_week tinyint NOT NULL,
day_name_of_week char(10) NOT NULL,
day_of_month tinyint NOT NULL,
ficus / .screenrc
Created Oct 6, 2016
customizations to .screenrc
View .screenrc
term xterm
defutf8 on
defflow off
vbell off
autodetach on
startup_message off
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
ficus / .bashrc
Created Oct 6, 2016
customizations to .barshrc
View .bashrc
#For root user visual cue
export PS1="\[\e[31;1m\][\u@\[\e[37;1m\]\H \W]# \[\e[0m\]"
You can’t perform that action at this time.