Skip to content

Rename smack-my-bitch scripts #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CSharp/SmackMyBitch.cs → CSharp/TextMyWife.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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".

Expand All @@ -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

Expand All @@ -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
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions java/SmackMyBitch.java → java/TextMyWife.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -42,4 +42,4 @@ public static void main(String[] args) throws TwilioRestException {
Message message = messageFactory.create(params);
System.out.println(message.getSid());
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion python3/smack_my_bitch_up.py → python3/text_my_wife.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
File renamed without changes.
File renamed without changes.