Skip to content

Instantly share code, notes, and snippets.

@florianpircher
florianpircher / pwdf
Created July 8, 2017 13:45 — forked from scriptingosx/pwdf
pwdf - prints the path to the frontmost Finder window
#!/usr/bin/osascript
on run arguments
tell application "Finder"
-- no argument: get frontmost window or desktop
if (count of arguments) is 0 then
if (count of windows) is 0 then
set dir to (desktop as alias)
else
set dir to ((target of Finder window 1) as alias)

This is all based on the [alpha release][1].

Properties

From the built-in help system:

For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).

These are simple setting = value listings where the value is a format string in which other variables can be referenced.

@florianpircher
florianpircher / README.md
Created March 5, 2022 23:21 — forked from IsaacXen/README.md
(Almost) Every WWDC videos download links for aria2c.
@florianpircher
florianpircher / README.md
Created October 27, 2022 23:11 — forked from technic/README.md
change font linespacing for dummy editor #linux #ttf #qtcreator

How to change font linespacing

Manual

You need to manipulate a ttf file. I found such a script that comes with Input font at http://input.fontbureau.com. So we copy DejaVuSansMono ttf files to ~/.fonts/ and create a new font DejaVuSansMonoH. I changed line 147, to match this font name, and run