Skip to content

Instantly share code, notes, and snippets.

@kreig303
kreig303 / git-fu.md
Last active June 21, 2019 15:09
GIT FU

REMOVE LAST COMMIT

$ git reset HEAD~1
$ git push origin +HEAD

FIX REMOTE BRANCH AFTER PUSH

10/31/2016

State of the Framework - hapi.js

react-text: 46 The hapi framework ecosystem has been pretty quiet lately. With all the community changes around other frameworks (express, restify) and the lack of splashy new hapi releases, I've been asked about the longevity and direction of hapi. This conversation will address these questions as well as answer any roadmap related questions you might have. /react-text react-text: 47 /react-text react-text: 48 I will also discuss how the framework is being maintained post-Walmart, what kind of contributions are needed, and look into the future as people and companies still rely on the framework for their critical infrastructure. /react-text

$ license-checker --exclude 'MIT, MIT OR X11, BSD, ISC, BSD-3-Clause, Unlicense, Apache-2.0, CC-BY-3.0'
@kreig303
kreig303 / .*sh_aliases
Last active May 11, 2020 16:09
.*sh_aliases
##
# FINDER SPECIFIC
##
alias show-files='defaults write com.apple.finder AppleShowAllFiles YES;
killall Finder /System/Library/CoreServices/Finder.app' # show hidden files in Finder
alias hide-files='defaults write com.apple.finder AppleShowAllFiles NO;
killall Finder /System/Library/CoreServices/Finder.app' # hide hidden files in Finder
##
# SHELL SPECIFIC
##
@kreig303
kreig303 / .gitconfig
Created May 21, 2019 15:14 — forked from Kovrinic/.gitconfig
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "git@github.com:"]
insteadOf = git://github
@kreig303
kreig303 / gitBash_windows.md
Created May 21, 2019 15:51 — forked from evanwill/gitBash_windows.md
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@kreig303
kreig303 / docker_kill.sh
Created May 21, 2019 16:53 — forked from evanscottgray/docker_kill.sh
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt

These are generic npm scripts that you can copy & paste into your package.json file as-is and get access to convinience scripts to manage your Docker images all in one place.

Looking for npm scripts for AWS ECS? Go here!

Watch the video: Do More With Less JavaScript

Docker Containers for Static or Angular/React/Vue/etc SPA Websites

@kreig303
kreig303 / git-tag-delete-local-and-remote.sh
Last active December 23, 2019 15:47 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag
git tag -d tagName
# delete remote tag
git push origin :refs/tags/tagName
# or
git push --delete origin tagName
@kreig303
kreig303 / shell-out.ps1
Last active April 26, 2024 03:05
Powershell aliases for git and npm
##
# POWERSHELL SPECIFIC
##
Set-Alias clr clear # slight contraction of clear command
function brc { Start notepad "C:\Users\kzimmerman012\Documents\PowerShell\profile.ps1" } # for editing this file
function Reload-PowerShell { Start-Process pwsh; exit } # reload PowerShell Core
Set-Alias relo Reload-PowerShell
function lw { dir | fw } # wide listing
function up { cd .. } # better back
function rmraf { Remove-Item -Recurse -Force $args[0] }