Skip to content

Instantly share code, notes, and snippets.

View shellscape's full-sized avatar
🌴

Andrew Powell shellscape

🌴
View GitHub Profile
#!/usr/bin/env ruby
require 'rubygems'
require 'twitter'
require 'json'
require 'faraday'
# things you must configure
PATH_TO_DROPBOX = "/PATH_TO_YOUR_DROPBOX/tweets/" # you must create this folder
TWITTER_USER = "YOUR_USERNAME"
@shellscape
shellscape / README.md
Created September 4, 2021 01:18
knex-stringcase TypeScript Definition

This defintion is from work by @eioo on this pull request Kequc/knex-stringcase#14 which the maintainer decided to decline only after making the contributor go through several revisions. I have no desire to maintain a @types package, but please feel free to copy and use as needed.

.closed.octicon.octicon-issue-closed {
color: var(--color-danger-fg) !important;
}
.gh-header-meta .State--merged, .State--merged[title="Status: Closed"] {
background-color: var(--color-danger-fg) !important;
}
.TimelineItem-badge.color-bg-done-emphasis {
background-color: var(--color-danger-fg) !important;
@shellscape
shellscape / .zshrc
Created February 5, 2025 02:44
Add local node_modules/.bin to the PATH dynamically
function add_node_modules_bin() {
export _OLD_NODE_PATH="$PATH"
if [[ -d "./node_modules/.bin" ]]; then
export PATH="$PWD/node_modules/.bin:$PATH"
fi
}
function remove_node_modules_bin() {
if [[ -n "$_OLD_NODE_PATH" ]]; then