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 November 20, 2024 09:27
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 October 25, 2024 17:37 — 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 November 20, 2024 15:15
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 October 9, 2024 17:36
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 November 20, 2024 12:51
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: