most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| # ===================================================== | |
| # Installation instructions for a clean Mac OS X system | |
| # ===================================================== | |
| # | |
| # <https://gist.github.com/747336> | |
| # | |
| # Keep only `.ssh` and `.profile.local` files from backup | |
| # + Clean up Apple Ruby |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| #!/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)" |
| 'use strict'; | |
| module.exports = function CustomError(message, extra) { | |
| Error.captureStackTrace(this, this.constructor); | |
| this.name = this.constructor.name; | |
| this.message = message; | |
| this.extra = extra; | |
| }; | |
| require('util').inherits(module.exports, Error); |
| tap "caskroom/cask" | |
| tap "caskroom/fonts" | |
| tap "caskroom/versions" | |
| tap "homebrew/bundle" | |
| tap "homebrew/core" | |
| tap "homebrew/dupes" | |
| tap 'caskroom/cask' | |
| tap 'caskroom/fonts' | |
| tap 'caskroom/versions' | |
| tap 'homebrew/bundle' |
| #!/usr/bin/env sh | |
| # AWS cli delete empty cloudwatch log groups | |
| aws logs describe-log-groups \ | |
| --query 'logGroups[?storedBytes == `0`].logGroupName' --output text | \ | |
| xargs -r -n1 aws logs delete-log-group --log-group-name |
| const csvStringToArray = (strData, header=true) => | |
| { | |
| //const objPattern = new RegExp(("(\\,|\\r?\\n|\\r|^)(?:\"([^\"]*(?:\"\"[^\"]*)*)\"|([^\\,\\r\\n]*))"),"gi"); | |
| const objPattern = new RegExp(("(\\,|\\r?\\n|\\r|^)(?:\"((?:\\\\.|\"\"|[^\\\\\"])*)\"|([^\\,\"\\r\\n]*))"),"gi"); | |
| let arrMatches = null, arrData = [[]]; | |
| while (arrMatches = objPattern.exec(strData)){ | |
| if (arrMatches[1].length && arrMatches[1] !== ",") arrData.push([]); | |
| arrData[arrData.length - 1].push(arrMatches[2] ? | |
| arrMatches[2].replace(new RegExp( "[\\\\\"](.)", "g" ), '$1') : | |
| arrMatches[3]); |
Here's a little walkthrough of how I use feature branches and pull requests to develop new features and adding them to the project. Below are the steps I take when working on a new feature. Hopefully this, along with watching the process on Github, will serve as a starting point to having everyone use a similar workflow.
Questions, comments, and suggestions for improvements welcome!
When starting a new feature, I make sure to start with the latest and greatest codebase:
git checkout main