Layer export for OmniGraffle
If you have a Graffle document (doc.graffle) with a canvas named "mycanvas" holding the following layers ...
- Extra 3
- Extra 2
- Extra 1
- Base
... then these images will be generated:
#!/usr/bin/env python3 | |
''' | |
Two-pass re-run safe micro (85 LOC) patcher in python. | |
Sample patch config (yes, it's in YAML): | |
---->8---- | |
version: 0 | |
title: tribute to sublimetext_4126_crack_linux.py by dmknght @github | |
file: /tmp/sublime_text | |
# size: 8862888 # optional check for file size |
If you have a Graffle document (doc.graffle) with a canvas named "mycanvas" holding the following layers ...
... then these images will be generated:
set -e
set -u
# Create an empty
hdiutil create -o /tmp/empty -size 8400m -volname "Monterey" -layout SPUD -fs HFS+J
# Rename to .img since this isn't a compressed disk image
#!/usr/bin/env swift | |
import Foundation | |
struct TerminationStatus: Error { | |
let code: Int32 | |
} | |
func run(_ command: Command) throws { | |
print(command.rendered.joined(separator: " ")) |
defaults write com.apple.Dock appswitcher-all-displays -bool true | |
killall Dock |
brew install pandoc | |
brew tap homebrew/cask | |
brew install --cask basictex | |
eval "$(/usr/libexec/path_helper)" | |
# Update $PATH to include `/usr/local/texlive/2022basic/bin/universal-darwin` | |
sudo tlmgr update --self | |
sudo tlmgr install texliveonfly | |
sudo tlmgr install xelatex | |
sudo tlmgr install adjustbox | |
sudo tlmgr install tcolorbox |
bash shell
The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements
A copy/paste guide to getting a full working astro-imaging computer running on Ubuntu 20.04 LTS. Installs latest stable versions of gpsd, KStars, INDI, OACapture, SkyChart, ASTAP, and Astrometry.net.
It uses the lightweight XFCE4 desktop, and allows you to VNC in, running everything locally on the astro-imaging pc.
In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).
The key component we need to install is tigervnc-standalone-server
.
For this setup, I will use Ubuntu 20.04 LTS (Focal Fossa, unfortunately 22.04 does not work), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the Sample screenshots section for examples.
So let's go. First, we need a working WSL2 installation.
#!/bin/bash | |
# We can find the index of the item in the array by extracting the key, finding the lines with | |
# 'string' in them, and then finding the search string. | |
cd /System/Volumes/Data/.Spotlight-V100 | |
search_string=$1 | |
let index="`plutil -extract Exclusions xml1 -o - VolumeConfiguration.plist | grep string | grep -wn "${search_string}" | cut -d ':' -f 1` - 1" |