Skip to content

Instantly share code, notes, and snippets.

-------------------------------------------------------------------------
USEFUL ONE-LINE SCRIPTS FOR SED (Unix stream editor) Dec. 29, 2005
Compiled by Eric Pement - pemente[at]northpark[dot]edu version 5.5
Latest version of this file (in English) is usually at:
http://sed.sourceforge.net/sed1line.txt
http://www.pement.org/sed/sed1line.txt
This file will also available in other languages:
Chinese - http://sed.sourceforge.net/sed1line_zh-CN.html
@JeremyOttley
JeremyOttley / program.fsproj
Created October 10, 2022 13:35
OSX F# single binary
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
<PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup>
@JeremyOttley
JeremyOttley / base.css
Last active September 26, 2022 08:20
100 bytes
/* **max-width:** `70ch`
> the "readable range" is usually 60-80 character widths, and CSS lets you express that directly with the `ch` unit.
**padding:** `3em 1em`
> If the display's width goes under the max-width set above, then this padding prevents edge-to-edge text on mobile. We use `3em` to provide top/bottom whitespace.
**margin:** `auto`
> This is really all that is needed to center the page - applied on html, because Dan's site doesnt have a semantic <main> tag and <html> is more likely to exist in most sites. That the top tag centers itself relative to nothing is unintuitive, but thats how browsers do.
**line-height:** `1.75`
-d:release
-d:strip
--opt:size
--gc:arc
hint[XDeclaredButNotUsed]=off
#!/usr/bin/env joker
(ns script
(:require [joker.tools.cli :as cli]
[joker.os :as os]))
(def opts
[["-c" "--channel VALUE" "Choose Twitch Channel"]
["-v" "--version" "Show version information"]
["-h" "--help" "Show this summary"]])
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{zapf}[2020/07/28]
\LoadClass{scrreprt}
\RequirePackage[scaled=0.88]{beraserif}
\RequirePackage[scaled=0.85]{berasans}
\RequirePackage[scaled=0.84]{beramono}
\RequirePackage{classicthesis}
\RequirePackage[T1]{fontenc}
\RequirePackage{mathpazo}
@JeremyOttley
JeremyOttley / premiere-layout.txt
Created July 7, 2020 13:33
Davinci Resolve "Adobe Premiere Keyboard Layout" [NOTE: These presets were made on a Mac] https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=91687
editAutoSelectToggleAudio6 := Alt+6
editAutoSelectToggleAudio7 := Alt+7
markMarkerClear := Ctrl+Shift+0
editAutoSelectToggleAudio8 := Alt+8
editBlade :=
editLinkedSelection := Ctrl+Shift+L
editNudgeTrimStepTrimMultiFrameRight := Shift+. | Ctrl+Shift+Right
editM2SplitClip := Ctrl+Shift+J
sessionPrinterLightsYelQuarterPlus := Ctrl+Num+3
controlClipPrev := PgUp
@JeremyOttley
JeremyOttley / SETUP.md
Last active June 24, 2020 22:29
~/.gimp-2.8/
  1. Make “Snap to Canvas Edge” the default behavior

Another thing that I find frustrating with GIMP is that it does not activate “Snap to canvas edges” by default even though the option is turned off by default. Unfortunately, you cannot turn this on by toggling in a setting. To make this change, we go back to the gimp folder (~/.gimp-2.8). Open the “gimprc” file and add the following at the end and then save it.

(default-snap-to-canvas yes)

(default-snap-to-grid yes)

  1. Disable the default “Show Layer Boundary”
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
% File: cheatsheet.tex -- cheatsheet for various XeTeX typesetting features
% Author: Tim van Werkhoven (t.i.m.vanwerkhoven@gmail.com, 2011)
%
% I keep this file as a scrap book of various tricks in LaTeX/XeTeX that I
% picked up from various places. I try to refer to places where I found the
% TeX code when possible, and refer to documentation as much as possible as
% well. Feel free to use this cheatsheet for your own purposes.
@JeremyOttley
JeremyOttley / runvm
Created May 24, 2020 02:49
log in to vm (virtualbox)
VBoxManage startvm "Windows10"
sleep 1
while pgrep VirtualBox > /dev/null; do sleep 1; done
kill -9 -1
# echo "nohup $HOME/runvm &" >> .profile