Skip to content

Instantly share code, notes, and snippets.

Caching Password: Overcomming the need for reentering password on GitHub.

git config --global credential.helper cache
git config --global credential.helper "cache --timeout=3600"
git config --global credential.helper osxkeychain

For Windows, there is a helper called git-credential-winstore.exe. For Linux, you can use gnome-keyring.

@existme
existme / fix.sh
Last active August 29, 2015 14:27
Find and fix files that a user doesn't have access
find \! -user UNAME -ls
find \! -user UNAME -print0 |xargs -0 sudo chown UNAME:GROUP
@existme
existme / gist:c27c1a66a8e9dad47983
Created February 25, 2016 12:11 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@existme
existme / Generate Markdown.groovy
Created September 29, 2017 13:14
This script will copy the selected table schemas as markdown tables into the clipboard. #IntelliJ #db #database #extractors #schema
import com.intellij.database.model.DasTable
import com.intellij.database.model.ObjectKind
import com.intellij.database.util.Case
import com.intellij.database.util.DasUtil
SEPARATOR = ","
QUOTE = "\""
NEWLINE = System.getProperty("line.separator")
SEPARATOR = File.separator
SPACING = " "

Keybase proof

I hereby claim:

  • I am existme on github.
  • I am existme (https://keybase.io/existme) on keybase.
  • I have a public key ASC2Hk0cHdJkuNcM85CAs2iz1Xb7QDHVSE1IX5vbl8W3Dgo

To claim this, I am signing this object: