Skip to content

Instantly share code, notes, and snippets.

View aristide-n's full-sized avatar

Aristide Niyungeko aristide-n

  • Software Engineer
  • San Francisco, CA
View GitHub Profile
@aristide-n
aristide-n / sed cheatsheet
Created February 2, 2019 02:07 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
#!/bin/bash
set -o errexit
readonly LOG_FILE="/tmp/script.log"
# Create the destination log file that we can
# inspect later if something goes wrong with the
# initialization.
touch $LOG_FILE
@aristide-n
aristide-n / gist:3972334
Created October 29, 2012 08:24 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt