Twitter Bot

For my new quote site, AtomicQuote, I wanted to add the ability for the site to auto-tweet the most popular quotes throughout the day. I ran into a few issues and wanted to write this post to hopefully help others who want to create an auto tweeting Twitter bot.

Twitter API

The first task was to sign up for a Twitter API account and check their documentation. Make sure you use the account your want to tweet from when you generate your keys. You will need a Key, Secret Key, Token, and Token Secret. Read More

Useful Git Aliases

If you’re a software developer, you most likely use git. Many people are not aware that you can create an alias for commands. Creating alias will make commands easier to remember and quicker to type. Here are some of my favorite git alias I use on a regular basis.

Short for git status

alias gs="git status"

Quickly commit with wip message

alias wip='git add . && git commit -m "wip"'

Updates your branch and submodules

alias gpa = "!git pull --rebase --prune [email protected] && git submodule update --init --recursive"

Reset all changes (use with caution)

alias nah="git reset --hard && git clean -df"

 

Leave a comment below on your favorite alias commands.