Skip to content

Instantly share code, notes, and snippets.

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@821760408-sp
821760408-sp / gist:60c786cd8beabffc72e17627be180be2
Last active January 6, 2019 05:37 — forked from pazdera/gist:1098129
Singleton example in Python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Example of Singleton design pattern
# Copyright (C) 2011 Radek Pazdera
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@821760408-sp
821760408-sp / updates.sh
Created November 19, 2016 22:27
Updates
#!/bin/bash
apt-get update &&
apt-get check &&
apt-get upgrade -f &&
apt-get dist-upgrade -f &&
dpkg --configure -a &&
apt-get autoclean &&
apt-get autoremove -f &&
aptitude purge '~c'
@821760408-sp
821760408-sp / digits.md
Last active September 6, 2016 18:08 — forked from joyofdata/digits.md
Installing CUDA, cuDNN, caffe and DIGITS on EC2
@821760408-sp
821760408-sp / openInChrome.AppleScript
Last active June 23, 2016 06:30 — forked from anonymous/gist:5575774
Open any link in Safari in Chrome
--
-- open currently active Chrome tab with Safari
-- forked from https://gist.github.com/3151932 and https://gist.github.com/3153606
--
property theURL : ""
tell application "Safari"
set theURL to URL of front document
end tell
if appIsRunning("Google Chrome") then