start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# | |
# SCRIPT: do-smartmachine-dataset.sh | |
# AUTHOR: Mark Slatem | |
# DATE: 16 January 2013 | |
# REV: 1.0 | |
# | |
# PLATFORM: SmartOS | |
# REQUIREMENTS: SmartOS | |
# |
var r = R.player, oVol = r.volume(), tf = r._onTrackFinished, ar = r._onAudioReady, n = r._next; | |
r._onTrackFinished = function() { | |
return .001 !== r.volume() && (oVol = r.volume()), r.volume(.001), tf.apply(this, arguments); | |
}; | |
r._onAudioReady = function() { | |
return r.playingAd() || r.volume(oVol), ar.apply(this, arguments); | |
}; |
#!/bin/sh | |
# freebsd-update makes assumptions that don't match the world I live | |
# in. My local mirror has a 20ms rtt, can probably saturate my 130mbps | |
# line speed and takes about 2 minutes to fetch all of FreeBSD 10's | |
# dists; freebsd-update's mirrors are at least 140ms away, and take | |
# about 4 hours to fetch the changes from 9.1-RELEASE-p10 to | |
# 10.0-RELEASE. | |
# | |
# freebsd-update is a clever script that downloads a lot of bsdiff |
# -*- encoding: UTF-8 -*- | |
import os | |
import httplib2 | |
# pip install --upgrade google-api-python-client | |
from oauth2client.file import Storage | |
from googleapiclient.discovery import build | |
from oauth2client.client import OAuth2WebServerFlow |
How to export (backup), reset to defaults and import (restore) the configuration of a gnome extension. | |
// prints the whole config to a file | |
dconf dump /org/gnome/shell/extensions/<extension-name>/ > ~/<backupfile> | |
// Resets the config to defaults (might wanna check first if the dump was a succes by opening the file) | |
dconf reset -f /org/gnome/shell/extensions/<extension-name>/ | |
// Loads configuration from a file into your gnome-shell | |
dconf load /org/gnome/shell/extensions/<extension-name>/ < ~/<backupfile> | |
From what I can tell a good way to determine <extension-name> is from its url at https://extensions.gnome.org | |
However its better to be safe and launch dconf editor , browse to /org/gnome/shell/extensions/ and check the name. |
Based on the excellent Solarized (Dark) created by Ethan Schoonover. For source code, check the main Solarized repository on GitHub.
Open and save Solarized Dark.terminal.
Import from the “Profiles” tab in the settings of Terminal.app or just double-click the file after downloading.
# | |
# This script is depricated go to this repo to get the latest version: | |
# https://github.com/shokinn/emby-updater | |
# | |
# | |
# | |
# If you still need the old (bash) version, you can find it in the older Versions of this gist. | |
# |