Skip to content

Instantly share code, notes, and snippets.

View mateusrevoredo's full-sized avatar

Mateus Revoredo mateusrevoredo

View GitHub Profile
@jbgo
jbgo / git-recover-branch.md
Last active December 19, 2023 02:49
How to recover a git branch you accidentally deleted

UPDATE: A better way! (August 2015)

As pointed out by @johntyree in the comments, using git reflog is easier and more reliable. Thanks for the suggestion!

 $ git reflog
1ed7510 HEAD@{1}: checkout: moving from develop to 1ed7510
3970d09 HEAD@{2}: checkout: moving from b-fix-build to develop
1ed7510 HEAD@{3}: commit: got everything working the way I want
70b3696 HEAD@{4}: commit: upgrade rails, do some refactoring
@SimonSimCity
SimonSimCity / brew-update-notifier.sh
Last active November 5, 2023 09:30 — forked from stephennancekivell/brew-update-notifier.sh
Extended the script, written by @streeter to exclude the pinned formulae in the list of formulas to update.
#!/bin/bash
#
# Notify of Homebrew updates via Notification Center on Mac OS X
#
# Author: Chris Streeter http://www.chrisstreeter.com
# Requires: terminal-notifier. Install with:
# brew install terminal-notifier
TERM_APP='/Applications/Terminal.app'
BREW_EXEC='/usr/local/bin/brew'
@DrummerHead
DrummerHead / frontend-programming-design-resources.md
Last active August 11, 2020 19:05
List of Front-end, programming & design resources
@thebookins
thebookins / G5.png
Last active February 29, 2020 01:36
Loop for offline OpenAPS
G5.png
@mewebstudio
mewebstudio / after.sh
Created April 8, 2015 10:30
~/.homestead/after.sh
#!/usr/bin/env bash
# Populate this array with each of your dev site hostnames.
sites_hosts=( homestead.app ) # array, e.g., www.example.dev
# Config for SSL.
SSL_DIR="/etc/nginx/ssl"
PASSPHRASE="secret"
SUBJ="
C=BE