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 ffd15b7565277569d6bdf57f6493841dabe6a412 Mon Sep 17 00:00:00 2001 | |
From: Gene Wood <gene_wood@cementhorizon.com> | |
Date: Thu, 3 Jul 2014 09:39:37 -0700 | |
Subject: [PATCH] Adding X- header contents to the body of the email in a | |
non-displaying div to enable easier Gmail filtering | |
--- | |
.../BMO/template/en/default/email/bugmail.html.tmpl | 19 +++++++++++++++++++ | |
1 file changed, 19 insertions(+) |
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 | |
CONF="/usr/local/Crashplan Personal/conf/ui.properties" | |
UIINFO="/var/lib/crashplan/.ui_info" | |
BIN="/usr/local/Crashplan Personal/bin/CrashPlanDesktop" | |
WRAPPER_CONFIG="${HOME}/.crashplandesktop_wrapper" | |
if [ -e "${WRAPPER_CONFIG}" ]; then | |
readarray -t tokens < ${WRAPPER_CONFIG} | |
else |
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
fromaddr = 'me@example.com' | |
toaddr = 'you@example.org' | |
servername = 'smtp.example.com' | |
username = 'username' | |
password = 'password' | |
import smtplib | |
import time | |
server = smtplib.SMTP(servername, 25) | |
server.set_debuglevel(1) |
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
# Find your OS version https://iuscommunity.org/pages/Repos.html#release-packages | |
sudo yum install -y http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm | |
sudo yum install -y python27 python27-devel python27-pip openssl-devel | |
sudo pip2.7 install cx_Freeze | |
git clone https://github.com/NagiosEnterprises/ncpa.git | |
cd ncpa/build | |
make build_rpm |
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
mkdir workspace | |
cd workspace | |
sudo cp /usr/share/subsonic/subsonic-booter-jar-with-dependencies.jar /usr/share/subsonic/subsonic-booter-jar-with-dependencies.jar.orig | |
unzip /usr/share/subsonic/subsonic-booter-jar-with-dependencies.jar | |
cat > webdefault.patch <<End-of-message | |
--- org/mortbay/jetty/webapp/webdefault.xml.orig 2014-06-11 10:06:12.000000000 -0700 | |
+++ org/mortbay/jetty/webapp/webdefault.xml 2014-06-11 10:06:39.000000000 -0700 | |
@@ -323,7 +323,7 @@ | |
<!-- ==================================================================== --> |
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
mkdir workspace | |
cd workspace | |
sudo cp /usr/share/subsonic/subsonic.war /usr/share/subsonic/subsonic.war.orig | |
unzip /usr/share/subsonic/subsonic.war | |
dos2unix WEB-INF/jsp/top.jsp # These dos2unix and unix2dos steps are needed because the files have DOS | |
dos2unix WEB-INF/jsp/index.jsp # line endings and the patches, if copy/pasted have UNIX line endings | |
cat > change-default-view-to-newest.patch <<'End-of-message' | |
diff -ru orig/WEB-INF/jsp/index.jsp new/WEB-INF/jsp/index.jsp | |
--- orig/WEB-INF/jsp/index.jsp 2014-01-23 23:07:04.000000000 -0800 | |
+++ new/WEB-INF/jsp/index.jsp 2014-08-11 09:59:33.000000000 -0700 |
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
# /etc/sysconfig/transmission-daemon | |
INTERFACE=ppp0 # Set this to the interface you want the daemon to bind to | |
if /sbin/ifconfig $INTERFACE >>/dev/null 2>&1; then | |
BIND_ADDR="`/sbin/ifconfig $INTERFACE | awk '$1 == \"inet\" {print $2}' | awk -F: '{print $2}'`" | |
else | |
BIND_ADDR="127.0.0.1" | |
fi |
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
xsel | gpg --decrypt | xsel --clipboard |
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 python | |
# Set this to the ARN of the trusted account role | |
trusted_account_role_arn="arn:aws:iam::123456789012:role/SecurityMonkeyInstanceProfile" | |
import boto.iam | |
conn_iam = boto.iam.connect_to_region('universal') | |
role_name='SecurityMonkey' | |
assume_role_policy_document = '''{ | |
"Version":"2012-10-17", |
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
import boto.iam | |
conn_iam = boto.iam.connect_to_region('universal') | |
role_name='SecurityMonkeyInstanceProfile' | |
assume_role_policy_document = '''{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "", | |
"Effect": "Allow", | |
"Principal": { |