Skip to content

Commit 7e0b21c

Browse files
Ping HuPing Hu
Ping Hu
authored and
Ping Hu
committed
Rename smack-my-bitch scripts
Renamed all wife-texting scripts to variants of 'text my wife.' This is a more tasteful name, and is still true to the original script which texted the author's wife specifically. Updated README accordingly.
1 parent 64f2d1b commit 7e0b21c

13 files changed

+8
-8
lines changed

CSharp/SmackMyBitch.cs renamed to CSharp/TextMyWife.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace Hacker_Scripts
99
{
10-
class SmackMyBitch
10+
class TextMyWife
1111
{
1212
public static string TWILIO_ACCOUNT_SID = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID");
1313
public static string AUTH_TOKEN = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN");
File renamed without changes.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ story](https://www.jitbit.com/alexblog/249-now-thats-what-i-call-a-hacker/)_:
99
1010
> xxx: You're gonna love this
1111
12-
> 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.
12+
> 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.
1313
1414
> 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".
1515
@@ -27,7 +27,7 @@ Pull requests with other implementations (Python, Perl, Shell, etc) are welcome.
2727
You need these environment variables:
2828

2929
```sh
30-
# used in `smack-my-bitch-up` and `hangover` scripts
30+
# used in `text-my-wife` and `hangover` scripts
3131
TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3232
TWILIO_AUTH_TOKEN=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
3333

@@ -42,8 +42,8 @@ For Ruby scripts you need to install gems:
4242
## Cron jobs
4343

4444
```sh
45-
# Runs `smack-my-bitch-up.sh` monday to friday at 9:20 pm.
46-
20 21 * * 1-5 /path/to/scripts/smack-my-bitch-up.sh >> /path/to/smack-my-bitch-up.log 2>&1
45+
# Runs `text-my-wife.sh` monday to friday at 9:20 pm.
46+
20 21 * * 1-5 /path/to/scripts/text-my-wife.sh >> /path/to/text-my-wife.log 2>&1
4747

4848
# Runs `hangover.sh` monday to friday at 8:45 am.
4949
45 8 * * 1-5 /path/to/scripts/hangover.sh >> /path/to/hangover.log 2>&1
File renamed without changes.

java/SmackMyBitch.java renamed to java/TextMyWife.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//Pre-requisite apache http and twilio java libraries
1313

1414

15-
public class SmackMyBitch {
15+
public class TextMyWife {
1616

1717
public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID");
1818
public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN");
@@ -42,4 +42,4 @@ public static void main(String[] args) throws TwilioRestException {
4242
Message message = messageFactory.create(params);
4343
System.out.println(message.getSid());
4444
}
45-
}
45+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

python3/smack_my_bitch_up.py renamed to python3/text_my_wife.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
TWILIO_ACCOUNT_SID = dotenv['TWILIO_ACCOUNT_SID']
1414
TWILIO_AUTH_TOKEN = dotenv['TWILIO_AUTH_TOKEN']
1515

16-
LOG_FILE_PATH = get_log_path('smack_my_bitch_up.txt')
16+
LOG_FILE_PATH = get_log_path('text_my_wife.txt')
1717

1818

1919
def main():
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)