Skip to content

Instantly share code, notes, and snippets.

View billyxs's full-sized avatar

Billy Montgomery billyxs

View GitHub Profile
@seesleestak
seesleestak / clone-all-repos.sh
Created May 21, 2019 00:31
Bash script to clone all team repos from Bitbucket API
#!/bin/bash
USER="username"
PASS="password"
TEAM_NAME="teamName"
# Getting 10 pages of Bitbucket API response
for i in {1..10}; do
curl --user $USER:$PASS "https://api.bitbucket.org/2.0/repositories/$TEAM_NAME?page=$i" >> /tmp/repos
done
@seesleestak
seesleestak / seconds.md
Created February 17, 2018 16:37
Convert time in git log timestamp to seconds vim macro

Description

Vim macro to take something like this:

Sun Feb 11 13:37:58 2018 -0800

And append the time as seconds at the end

Sun Feb 11 13:37:58 2018 -0800 49078
@seesleestak
seesleestak / osx_brew_cask_installs.sh
Last active March 17, 2018 17:40 — forked from billyxs/osx_brew_cask_installs.sh
Install Homebrew, Cask, and necessary apps for Mac OSX
#!/bin/sh
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install exa
brew install wget
brew install orientdb
brew install mongo
brew install go
@paulirish
paulirish / what-forces-layout.md
Last active September 11, 2025 10:17
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@DarrenN
DarrenN / get-npm-package-version
Last active June 20, 2025 19:20 — forked from yvele/get-npm-package-version.sh
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION
@vratiu
vratiu / .bash_aliases
Last active September 15, 2025 23:49
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@t-io
t-io / osx_install.sh
Last active April 27, 2025 20:06
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@rxaviers
rxaviers / gist:7360908
Last active September 16, 2025 05:31
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: