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 perl | |
use warnings; | |
use strict; | |
use Date::Parse; | |
use Net::SSH::Expect; | |
use POSIX qw(strftime); | |
# set to a known host on your network |
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 | |
#========================================================================== | |
# | |
# FILE: parse_mail_infolog.pl | |
# | |
# USAGE: ./parse_mail_infolog.pl | |
# | |
# DESCRIPTION: taken a 'list' ( below ), look for specific email logs first by | |
# string, then by session ids to extract the entire mail |
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 perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use Parallel::ForkManager 0.7.6; | |
use Time::HiRes qw (sleep); | |
use POSIX qw(strftime); | |
my $tmp_dir = '/tmp'; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 101 Template</title> | |
<!-- Bootstrap --> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> |
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 | |
# autossh daemon | |
# chkconfig: 345 20 80 | |
# description: autossh daemon | |
# processname: autossh | |
DAEMON_PATH="/home/autossh" | |
DAEMON="/usr/bin/sudo" | |
DAEMONOPTS="-u autossh /usr/bin/autossh -M 20043 -N -L 3307:127.0.0.1:3306 -p 22 xx.xx.xx.xx" |
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
in apache2.conf, replace current ErrorLog line with : | |
ErrorLog "| /usr/bin/logger -t httpderr -i -p local4.error" | |
then in each virtual add logging : | |
CustomLog "||/usr/bin/logger -t apache -i -p local5.notice" combined |
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
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"os" | |
"regexp" | |
) |
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
<head> | |
<title>postsApp</title> | |
</head> | |
<body> | |
{{> posts}} | |
</body> | |
<template name="posts"> | |
<ul> |
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
description "sleepy server" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
# set up an environment variable | |
env TIME=inf | |
# restart this process if it dies | |
respawn |
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 ubuntu:14.04 | |
MAINTAINER Jon Brookes | |
ENV REFRESHED_AT 2015-11-05 | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
RUN echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
RUN apt-get update | |
RUN apt-get install -y mongodb-org | |
RUN stop mongod | |
RUN echo manual | sudo tee /etc/init/mongod.override |
OlderNewer