Skip to content

Instantly share code, notes, and snippets.

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
@bartku
bartku / macos_tips.md
Created June 19, 2025 18:23 — forked from rofrol/macos_tips.md
tips for a lifetime windows user switching to mac
  1. To have switching with alt+tab and window previews, install https://formulae.brew.sh/cask/alt-tab. You may need to change in settings alt+tab to Show windows from applications: All apps.
  2. To have fast switching between fullscreen windows: don't fullscreen and just autohide top bar instead. You may also autohide dock. One downside if you move mouse to top bar and click to fast, you will show desktop instead. Threre is some possibility for fast switching with fullscreen windows with https://github.com/koekeishiya/yabai but is hacky.
  3. Install https://brew.sh. Disable qurantine with export HOMEBREW_CASK_OPTS=--no-quarantine in ~/.zshrc link. To upgrade packages without asking for root password many times https://github.com/rofrol/dotfiles/blob/master/bin/brew-update. To list brew packages https://github.com/rofrol/dotfiles/blob/master/bin/brew-packages.
  4. Learn Finder shortcuts: enter to rena
@bartku
bartku / linux-vms-on-apple-m1-with-networking.md
Created June 19, 2025 18:12 — forked from max-i-mil/linux-vms-on-apple-m1-with-networking.md
Short summary to run Linux VMs on an Apple M1 host using QEMU, libvirt and HVF with a working network setup

Linux Virtual Machines with Private Network on an Apple M1 Device

Background

The aim was to be able to:

  1. Run multiple Linux VMs on an Apple M1/ARM device
  2. Use Apple's HVF for native performance speeds
  3. Configure VMs to allow network access to each other
  4. Configure VMs to allow access to the internet
  5. Not rely on custom modifications of software
@bartku
bartku / Vagrantfile
Created November 26, 2022 19:54 — forked from jthurteau/Vagrantfile
Vagrant with MrRogers
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'resolv'
require_relative 'puppet/mr_rogers'
# project settings
app_name = 'APPLICATION_NAME_HERE'
org_name = 'ORG_NAME_HERE'
realm_mode = false
puppet_stack = "#{org_name}-apache-php-#{app_name}"
@bartku
bartku / RH342.md
Created November 26, 2022 19:53 — forked from luckylittle/RH342.md
Red Hat RH342 Notes

Red Hat Enterprise Linux Diagnostics & Troubleshooting (RH342)

Last update: Fri Jul 26 08:23:20 UTC 2019 by @luckylittle


1. Troubleshooting principles

2. Generic issues

@bartku
bartku / rpm test build.txt
Last active November 18, 2022 10:35
vbox7 rhel9 netif_rx patch
https://www.virtualbox.org/download/testcase/VirtualBox-7.0-7.0.3_154539_el9-1.x86_64.rpm
@bartku
bartku / portal-action-time.user.js
Created July 20, 2017 09:18
Tampermonkey plugin for IITC to show last action on selected portal
// ==UserScript==
// @id iitc-plugin-action-time@eumir
// @name IITC plugin: show action time on portal
// @category Info
// @version 0.5.7.@@DATETIMEVERSION@@
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @updateURL @@UPDATEURL@@
// @downloadURL @@DOWNLOADURL@@
// @description [@@BUILDNAME@@-@@BUILDDATE@@] Shows action time (recharged reso, captured portal, created link/field) on given portal
// @include https://*.ingress.com/intel*
@bartku
bartku / clan-cw-tanks.py
Created February 28, 2013 14:48
Print CW ready tanks owned by given clan. ./clan-cw-tanks.py ID
import json
import requests
import grequests
import sys
from prettytable import PrettyTable
if len(sys.argv) != 2:
print("Missing clan ID")
sys.exit
@bartku
bartku / gist:4271798
Last active November 25, 2024 15:08
Unofficial description of unofficial World of Tanks API

World of Tanks unofficial API

World of Tanks, popular MMO game about tanks from time around WWII, has some nice mobile application called Wot Assistant (available also at AppStore and MS Marketplace). With simple packet sniffing you can guess how it retrieves players' statistics.

Surprisingly, mobile application uses quite simple API over HTTP which serves data in JSON, which is great help for people interested in creating own applications handling statistical data in game.

At this moment here is list of API features that has been discovered:

  • searching players by names
  • searching clans by names
@bartku
bartku / wot-stats.gnuplot
Created November 14, 2012 12:02
GNUPlot script for WoT efficiency
# shows efficiency with max and min
# data in format:
# a,b,c
set term svg enhanced mouse size 900,600
set output "eff-2012-11-14.svg"
set title "Efficiency"
set ylabel "Eff"