I hereby claim:
- I am ratanshreshtha on github.
- I am ratanshreshtha (https://keybase.io/ratanshreshtha) on keybase.
- I have a public key ASCPCjd7bHM1Ob9S4jX4Lxd7AC5Ne-doeS-2AaewlmeSaAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Here is rail road diagram for summer training bot in #dgplug to extract links from logs.
Here is the regex used for url extraction.
r'(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9]\.[^\s]{2,})'
# In your .env file
export accountSid='zuhvu87468KFYHJ0987-jmbhjhbhvfhh234BGUJ';
export authToken='nbkgjk-9jhj9876-87tnmjjk-knjbb-234-JHHYU-JBjhhmb';
Now to access these variable just refer to enviornment variables from inside of your code.
const accountSid = 'zuhvu87468KFYHJ0987-jmbhjhbhvfhh234BGUJ';
const authToken = 'nbkgjk-9jhj9876-87tnmjjk-knjbb-234-JHHYU-JBjhhmb';
const Twilio = require('twilio');
const client = new Twilio(accountSid, authToken);
client.messages
.create({
to: '+1987654323876',
# Set symbols and colors here | |
triangle=$'\uE0B0' | |
# function to set username and host in the prompt | |
function prompt_user_and_host() { | |
echo -e "\e[1;37;44m $(users) @ $(hostname) \e[0m\e[34;100m$triangle\e[0m" | |
} | |
# function to set directories in the prompt | |
function prompt_dirs() { |