Skip to content

Instantly share code, notes, and snippets.

View janveverka's full-sized avatar

Jan Veverka janveverka

  • Prague
  • 06:21 (UTC +01:00)
View GitHub Profile
@janveverka
janveverka / log.sh
Last active July 31, 2022 01:14
Simple logging in Bash
#/bin/bash
# Simple logging function that adds a timestamp, the script name and the script PID to
# the message and writes the output to both STDOUT and to a log file.
#
# Usage:
# 1. Either source this file in your script or copy-paste the log function in it.
# 2. Invoke the log function:
#
# log "message"
#
@janveverka
janveverka / gist:35c41530eefef11fd9ea68243e93ce86
Created October 24, 2016 12:39 — 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