Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
| Action | Windows/Linux | macOS |
|---|---|---|
| New window | Ctrl+Shift+N | Cmd+N |
| Close window | Alt+F4 | Cmd+Shift+W |
Since I couldn't find documentation on how a Mac machine gets its name, I thought I'd write up these notes for my own reference later.
A macOS machine has a few different names, which might or might not be equal.
Every machine has a pretty user-facing name. This is the ComputerName.
| class TarSnap < FPM::Cookery::Recipe | |
| source 'https://www.tarsnap.com/download/tarsnap-autoconf-1.0.36.1.tgz' | |
| homepage 'https://www.tarsnap.com/' | |
| # Verify the signed SHA256 hash file from | |
| # https://www.tarsnap.com/download/tarsnap-sigs-1.0.36.1.asc | |
| sha256 'a2909e01e2f983179d63ef2094c42102c92c716032864e66ef25ae341ea28690' | |
| name 'tarsnap' | |
| version '1.0.36.1' | |
| license 'Tarsnap License' | |
| section 'tools' |
A collection of Splunk recipes for Heroku logs. Instructions for setting up Splunk Storm with Heroku can be found here. For the vast majority of these recipes you'll need to have enabled the Heroku labs feature, log-runtime-metrics, for your application.
| #! /usr/bin/python | |
| # -*- coding: UTF-8 -*- | |
| import facebook | |
| import urllib2 | |
| import codecs | |
| print "You need API token: get one here: https://developers.facebook.com/tools/explorer" | |
| USER_ACCESS_TOKEN= raw_input("Your API key: ") |
| source "http://rubygems.org" | |
| gem "janky", "~>0.9" | |
| gem "pg" | |
| gem "thin" |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/hex" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" |
| // A crazy dotjs hack | |
| // https://twitter.com/johnbender/status/131123843812179968 | |
| // You need to generate an OAuth token: http://developer.github.com/v3/oauth/#oauth-authorizations-api | |
| var functionToLocation = function (fn) { | |
| $(function () { | |
| var js = fn.toString().replace(/\n/g, " "); | |
| console.log(js); | |
| window.location = "javascript: (" + js + ")()"; | |
| }); |
| require 'formula' | |
| class Screen <Formula | |
| homepage 'http://www.gnu.org/software/screen/' | |
| url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz' | |
| md5 '8506fd205028a96c741e4037de6e3c42' | |
| # brew install --HEAD to get the latests, includes vertical split, mapped | |
| # to C-a | | |
| head 'git://git.savannah.gnu.org/screen.git', :branch => 'master' |