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
FROM arm64v8/ubuntu:bionic-20200807 | |
RUN \ | |
apt-get update && \ | |
apt-get install -y --no-install-recommends apt-utils && \ | |
apt-get -y install vim && \ | |
apt-get install -y lynx && \ | |
apt-get -y install default-jre && \ | |
apt-get -y install expect |
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
How To Block Websites on Your Mac Using Terminal | |
1. Open up Terminal | |
2. In the command line, type in "sudo nano /etc/hosts". | |
3. When asked, type your admin password. | |
4. In the screen that will appear, you’ll see the host database for your computer. | |
5. Using your down arrow, go to the bottom, right under where it says, "127.0.0.1 localhost". | |
6. Type in "127.0.0.1 hit ‘tab’, then enter facebook.com”. | |
7. On a new line, type in "127.0.0.1" hit ‘tab’, then enter www.facebook.com"; this is for extra measure. |
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
export PS1="\[\033[38;5;26m\][\[$(tput sgr0)\]\[\033[38;5;6m\]\w\[$(tput sgr0)\]\[\033[38;5;27m\]]\[$(tput sgr0)\]\[\033[38;5;9m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" |
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
curl --request POST https://rest-ww.telesign.com/v1/phoneid/<complete-phone-number> \\ | |
--header "Content-Type: application/json" \\ | |
--data '{"addons":{"number_deactivation":{}}}' \\ | |
--user "CUSTOMER_ID":"API_KEY" |
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
curl --request POST https://rest-ww.telesign.com/v1/phoneid/<complete-phone-number> \\ | |
--header "Content-Type: application/json" \\ | |
--data '{"addons":{"contact_match":{"first_name": "User First Name", "last_name":"User Last Name", "address": "123 Main St", "city": "Marina Del Rey"}}}' \\ | |
--user "CUSTOMER_ID":"API_KEY" |
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
curl --request POST https://rest-ww.telesign.com/v1/phoneid/<complete-number> \\ | |
--header "Content-Type: application/json" \\ | |
--data '{"addons":{"contact":{"billing_postal_code": "90292"}}}' \\ | |
--user "CUSTOMER_ID":"API_KEY" |
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
curl --request POST https://rest-ww.telesign.com/v1/phoneid/<complete-number> \\ | |
--header "Content-Type: application/json" \\ | |
--data '{"addons":{"contact":{}}}' \\ | |
--user "CUSTOMER_ID":"API_KEY" |
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
docker run --rm --name=composer -v $(pwd):/www matriphe/alpine-composer:latest composer require telesign/telesign | |
wget https://raw.githubusercontent.com/TeleSign/php_telesign/master/examples/messaging/1_send_message.php | |
# Edit the file for api keys | |
docker run -d -p 80:80 --name my-apache-php-app -v "$PWD":/var/www/html php:7.0-apache |
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
curl -X POST https://rest-api.telesign.com/v1/voice \ | |
-d phone_number=XXXXXXXX \ | |
-d message="You have a dentist appointment at 2:15pm" \ | |
-d message_type="ARN" \ | |
-u "CUSTOMER_ID":"API_KEY" |
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
curl -X POST https://rest-api.telesign.com/v1/phoneid/<complete_phone_number> \ | |
-d account_lifecycle_event="sign-in" \ | |
-u "CUSTOMER_ID":"API_KEY" |
NewerOlder