Skip to content

Instantly share code, notes, and snippets.

@joseluisq
joseluisq / stash_dropped.md
Last active June 21, 2024 07:36
How to recover a dropped stash in Git?

How to recover a dropped stash in Git?

1. Find the stash commits

git log --graph --oneline --decorate ( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )

This will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag – every lost commit, including every stash commit you’ve ever created, will be somewhere in that graph.

@urklc
urklc / zshenv
Last active May 7, 2024 18:21
bash helpers
export PATH=/opt/homebrew/bin:$PATH
export PATH="~/.rbenv/shims:${PATH}"
export JAVA_HOME=$(/usr/libexec/java_home)
source $(brew --prefix nvm)/nvm.sh
alias python="python3"
# Load Git completion
zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash
@ricardopereira
ricardopereira / Fastfile-example
Last active March 29, 2020 09:00
Automate some iOS development processes with Fastlane
fastlane_version "1.99.0"
REQUIRED_XCODE_VERSION = "7.3.1"
default_platform :ios
platform :ios do
before_all do |lane, options|
ENV["SLACK_URL"] = "https://hooks.slack.com/services/???"
end
fastlane_version "1.33.0"
default_platform :ios
platform :ios do
before_all do
cocoapods
ENV['KEYCHAIN_NAME'] = "TempKeychain.keychain"
end
# credit: http://haacked.com/archive/2014/07/28/github-flow-aliases/
[user]
email = salim.kayabasi@gmail.com
name = Salim KAYABASI
[core]
autocrlf = input
# editor = 'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
editor = /Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl -n -w
eol = lf
[color]
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active June 29, 2024 03:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k