diff --git a/CSharp/SmackMyBitch.cs b/CSharp/TextMyWife.cs similarity index 97% rename from CSharp/SmackMyBitch.cs rename to CSharp/TextMyWife.cs index d5c13fc..40c506e 100644 --- a/CSharp/SmackMyBitch.cs +++ b/CSharp/TextMyWife.cs @@ -7,7 +7,7 @@ namespace Hacker_Scripts { - class SmackMyBitch + class TextMyWife { public static string TWILIO_ACCOUNT_SID = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID"); public static string AUTH_TOKEN = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN"); diff --git a/R/smack_my_bitch_up.R b/R/text_my_wife.R similarity index 100% rename from R/smack_my_bitch_up.R rename to R/text_my_wife.R diff --git a/README.md b/README.md index bfda095..b671f15 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ story](https://www.jitbit.com/alexblog/249-now-thats-what-i-call-a-hacker/)_: > xxx: You're gonna love this -> xxx: [`smack-my-bitch-up.sh`](https://github.com/NARKOZ/hacker-scripts/blob/master/smack-my-bitch-up.sh) - sends a text message "late at work" to his wife (apparently). Automatically picks reasons from an array of strings, randomly. Runs inside a cron-job. The job fires if there are active SSH-sessions on the server after 9pm with his login. +> xxx: [`text-my-wife.sh`](https://github.com/NARKOZ/hacker-scripts/blob/master/text-my-wife.sh) - sends a text message "late at work" to his wife (apparently). Automatically picks reasons from an array of strings, randomly. Runs inside a cron-job. The job fires if there are active SSH-sessions on the server after 9pm with his login. > xxx: [`kumar-asshole.sh`](https://github.com/NARKOZ/hacker-scripts/blob/master/kumar-asshole.sh) - scans the inbox for emails from "Kumar" (a DBA at our clients). Looks for keywords like "help", "trouble", "sorry" etc. If keywords are found - the script SSHes into the clients server and rolls back the staging database to the latest backup. Then sends a reply "no worries mate, be careful next time". @@ -27,7 +27,7 @@ Pull requests with other implementations (Python, Perl, Shell, etc) are welcome. You need these environment variables: ```sh -# used in `smack-my-bitch-up` and `hangover` scripts +# used in `text-my-wife` and `hangover` scripts TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxx TWILIO_AUTH_TOKEN=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy @@ -42,8 +42,8 @@ For Ruby scripts you need to install gems: ## Cron jobs ```sh -# Runs `smack-my-bitch-up.sh` monday to friday at 9:20 pm. -20 21 * * 1-5 /path/to/scripts/smack-my-bitch-up.sh >> /path/to/smack-my-bitch-up.log 2>&1 +# Runs `text-my-wife.sh` monday to friday at 9:20 pm. +20 21 * * 1-5 /path/to/scripts/text-my-wife.sh >> /path/to/text-my-wife.log 2>&1 # Runs `hangover.sh` monday to friday at 8:45 am. 45 8 * * 1-5 /path/to/scripts/hangover.sh >> /path/to/hangover.log 2>&1 diff --git a/go/smack_my_bitch_up.go b/go/text_my_wife.go similarity index 100% rename from go/smack_my_bitch_up.go rename to go/text_my_wife.go diff --git a/java/SmackMyBitch.java b/java/TextMyWife.java similarity index 98% rename from java/SmackMyBitch.java rename to java/TextMyWife.java index 82f0b0e..e34969d 100644 --- a/java/SmackMyBitch.java +++ b/java/TextMyWife.java @@ -12,7 +12,7 @@ //Pre-requisite apache http and twilio java libraries -public class SmackMyBitch { +public class TextMyWife { public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID"); public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN"); @@ -42,4 +42,4 @@ public static void main(String[] args) throws TwilioRestException { Message message = messageFactory.create(params); System.out.println(message.getSid()); } -} \ No newline at end of file +} diff --git a/nodejs/smack_my_bitch_up.js b/nodejs/text_my_wife.js similarity index 100% rename from nodejs/smack_my_bitch_up.js rename to nodejs/text_my_wife.js diff --git a/perl/smack-my-bitch-up.pl b/perl/text-my-wife.pl similarity index 100% rename from perl/smack-my-bitch-up.pl rename to perl/text-my-wife.pl diff --git a/php/smack_my_bitch_up.php b/php/text_my_wife.php similarity index 100% rename from php/smack_my_bitch_up.php rename to php/text_my_wife.php diff --git a/powershell/smack_my_bitch_up.ps1 b/powershell/text_my_wife.ps1 similarity index 100% rename from powershell/smack_my_bitch_up.ps1 rename to powershell/text_my_wife.ps1 diff --git a/python/smack_my_bitch_up.py b/python/text_my_wife.py similarity index 100% rename from python/smack_my_bitch_up.py rename to python/text_my_wife.py diff --git a/python3/smack_my_bitch_up.py b/python3/text_my_wife.py similarity index 95% rename from python3/smack_my_bitch_up.py rename to python3/text_my_wife.py index f160c1c..5f6184b 100755 --- a/python3/smack_my_bitch_up.py +++ b/python3/text_my_wife.py @@ -13,7 +13,7 @@ TWILIO_ACCOUNT_SID = dotenv['TWILIO_ACCOUNT_SID'] TWILIO_AUTH_TOKEN = dotenv['TWILIO_AUTH_TOKEN'] -LOG_FILE_PATH = get_log_path('smack_my_bitch_up.txt') +LOG_FILE_PATH = get_log_path('text_my_wife.txt') def main(): diff --git a/smack-my-bitch-up.sh b/text-my-wife.sh similarity index 100% rename from smack-my-bitch-up.sh rename to text-my-wife.sh diff --git a/smack_my_bitch_up.rb b/text_my_wife.rb similarity index 100% rename from smack_my_bitch_up.rb rename to text_my_wife.rb