Skip to content

Instantly share code, notes, and snippets.

View leob's full-sized avatar

leob leob

View GitHub Profile
### Keybase proof
I hereby claim:
* I am leob on github.
* I am leo_b (https://keybase.io/leo_b) on keybase.
* I have a public key ASDv3ScTYIcSDjQwEbO44QHsY_OlUKMo05McmROrs1f0HQo
To claim this, I am signing this object:
@leob
leob / My favo "most useful" git commands
Last active January 12, 2019 09:18
Git commands that I find personally useful and use often
#!/bin/bash
# GIT create branches local/remote:
git checkout -b my-new-branch
git push -u origin my-new-branch
git checkout --track origin/my-new-branch
# GIT delete branches local/remote:
#!/bin/bash
# A script which can be useful if you have a large collection of Ubuntu Linux "desktop" files pointing to web links (URLs),
# and you want to convert these to "webloc" files which can be used on Apple OSX.
#
# How to use:
#
# - open a terminal on your Ubuntu Linux machine, navigate to your ~/desktop folder (or wherever you have your ".desktop"
# files stored), and make a copy of the files/directories/directory tree. I do it with "tar", for instance:
#
@leob
leob / osx-shortcuts.md
Last active July 30, 2016 08:33
Useful keyboard shortcuts that increase my efficiency on OSX

Notes: "Cmd" is the Apple key.

General

  • Cmd-W --- close application window
  • Cmd-Q --- quit application
  • Cmd-Tab --- switch between open applications
  • Cmd-` --- switch between application windows
  • Cmd, --- open preferences (any app)

Finder