- Create and initalize a new repo on GitHub without a ReadMe, license, or .gitignore
- Navigate to your local Git repo from the command line and carry out the following commands:
git remote add origin [GitHub URL]
git remote -v
--this just verifies that the GitHub repo URL is validgit push -u origin master
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 subprocess | |
def pick_tmux(): | |
print("Here are your active tmux sessions:\n") | |
s = subprocess.run(["tmux", "ls"], capture_output=True, text=True).stdout.strip("\n") | |
seshes = s.splitlines() | |
pretty_list = [s [:s.find(":")] for s in seshes] | |
put_numbers = enumerate(pretty_list, start=1) | |
menu_dict=dict((i,j) for i,j in put_numbers) | |
for key, value in menu_dict.items(): |
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 | |
read -p "Hello! Give me something to work with! A sentence or tweet will do. " sentence | |
# now let's do some curl magic | |
curl --fail --silent --show-error -X POST -H "Authorization: Bearer HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "'"$sentence"'"}' https://api-inference.huggingface.co/models/YOUR_USERNAME/PROJECT_URL | jq '.[0] | map(.) | if .[0].score < .[1].score then "positive" else "negative" end' |
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 | |
# A simple Bash script to create HTML in stdout from a markdown file | |
# This script requires pandoc. On Ubuntu use `sudo apt install pandoc` to install. | |
# Check to see if the user included a filename. If not, ask them for one. | |
if [ -z "$1" ]; then | |
read -p "Please provide a filename (include the path if not in this directory): " file | |
else file=$1 |
I hereby claim:
- I am ianpaul on github.
- I am ianpaul (https://keybase.io/ianpaul) on keybase.
- I have a public key ASCzCID-CGNSYW7lwpflnxsJhdqoJD75KrjThjyb7R_ZQgo
To claim this, I am signing this object:
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
data:text/html, <body contenteditable style="font: 2rem/1.5 monospace;max-width:60rem;margin:0 auto;padding:4rem;"> |