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
diff --git a/SMTP_old.pm b/SMTP.pm | |
index 23b508e..4f6f35d 100644 | |
--- a/SMTP_old.pm | |
+++ b/SMTP.pm | |
@@ -49,12 +49,12 @@ sub _quoteaddr { | |
sub _smtp_client { | |
my ($self) = @_; | |
- my $class = "Net::SMTP"; | |
+ my $class = "Net::SMTP_auth"; |
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 | |
# define $SHELL_VARS here | |
report_error () { | |
MESSAGE=$1 | |
SUBJECT=$2 | |
echo "$MESSAGE" | $MAILPROGRAM --subject="$SUBJECT" --toList=$EMAIL | |
} |
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
# DDPClient from here: https://github.com/hharnisc/python-ddp | |
from DDPClient import DDPClient | |
import hashlib | |
import time | |
# these are callbacks | |
def show_data(data, *more): | |
print("Data received: '{}':'{}'".format(data, more)) | |
def received_message(data): |
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 | |
for FILE in `ls *.tgz`; do | |
echo "Unzipping '$FILE'" | |
tar xzf $FILE | |
cd package/ | |
echo "Checking for old repo..." | |
perl -pi -e 's/https.*/http:\/\/new.repository\/repository\/custom-npm\/"/ if m/registry.*https:\/\/package/' package.json | |
echo "Uploading to new repo..." | |
npm publish --registry=http://new.repository/repository/custom-npm/ |