This file contains hidden or 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 \ | |
-H "X-Api-Secret: <your-weatherlink-api-secret>" \ | |
'https://api.weatherlink.com/v2/stations?api-key=<your-weatherlink-api-key>' |
This file contains hidden or 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 \ | |
-H "Content-Type: application/json" \ | |
-d '{"content":"Your bot's message for the Discord channel goes here!"}' \ | |
<your-discord-webhook-url> |
This file contains hidden or 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
#!/bin/bash | |
# Function that will print requirements if the user passes in the -help flag as the first argument. | |
function help | |
{ | |
echo "Parameters are: " | |
echo " <filename>: The full filename of the video that you want to crop." | |
} | |
# Check for '-help' flag. |
This file contains hidden or 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
# Modifies the Command Line Prompt to the following format: | |
# <Username> <Current Directory Name> <Current Git Branch Name (if applicable)> % | |
# Load version control information | |
autoload -Uz vcs_info | |
precmd() { vcs_info } | |
# Format the vcs_info_msg_0_ variable | |
zstyle ':vcs_info:*' enable git | |
zstyle ':vcs_info:*' formats '(%b)' |
This file contains hidden or 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
alias startdocker='open -a docker' |
This file contains hidden or 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
# import required tools | |
import requests | |
from datetime import datetime | |
# print current date and time | |
print(datetime.now()) | |
print() | |
# define array of cryptos & quantities owned | |
# TO DO: Enter Your Portfolio Holdings |
This file contains hidden or 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
#!/bin/bash | |
gitUsernames=("github-username1" "github-username2") | |
echo "Open Issues (by user)" | |
echo "---" | |
# https://cli.github.com/manual/ | |
for username in ${gitUsernames[@]}; do | |
echo -n "$username: " |
This file contains hidden or 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
#!/bin/bash | |
# Function that will print requirements if the user passes in the -help flag as the first argument | |
function help | |
{ | |
echo "Parameters are: " | |
echo "[Required]: search-term" | |
} | |
# Check for '-help' flag |
This file contains hidden or 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
# API Tutorial: https://weatherlink.github.io/v2-api/tutorial | |
# Before using this script, I would read this tutorial. It is very well written and explains why we have to do certain things in this script. | |
# Import the required dependencies. | |
# You may need to run `pip3 install hashlib hmac json requests time` on your local machine to install them. | |
import hashlib | |
import hmac | |
import json | |
import requests | |
import time |
This file contains hidden or 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
import json | |
import requests | |
# https://opensea.io/assets/<your-asset-contract-address>/<your-token-id> | |
ASSETCONTRACTADDRESS = "<your-asset-contract-address>" # Replace with your Asset Contract Address | |
TOKENID = "<your-token-id>" # Replace with your Token ID | |
# Construct URL for OpenSea API to make GET call | |
url = "https://api.opensea.io/api/v1/asset/" + ASSETCONTRACTADDRESS + "/" + TOKENID + "/" |