Skip to content

Instantly share code, notes, and snippets.

@altercation
altercation / archdual.sh
Last active October 4, 2021 15:38
arch-dual drive config
#!/bin/sh
#----------------------------------------------------------------------
# Arch Linux Installation Script
#
# This installs, with no intervention (other than initial edit to change
# RAID array drive values), Arch Linux on an encrypted btrfs raid1 array.
#----------------------------------------------------------------------
set -eu
@altercation
altercation / ImportVariables.jsx
Created June 30, 2021 05:50 — forked from circleb/ImportVariables.jsx
Bulk Import Text Variables into InDesign
/* ***************************************************************** */
/* Compiled: 09.16.2020 by Ben Owen for 1torial.com
/* Tested in InDesign 2020 (15.1.1)
/* ben@benowen.net
/* Most of the code came from the InDesign script FindChangeByList.jsx
/* and the function setCustomTextVariable() by Jon S. Winters.
/*
/* DESCRIPTION
/* This script allows you to import a simple text file containing a
/* text variable list and registers them as "Custom Text Variables,"
@altercation
altercation / ImportVariables.jsx
Created June 30, 2021 05:50 — forked from circleb/ImportVariables.jsx
Bulk Import Text Variables into InDesign
/* ***************************************************************** */
/* Compiled: 09.16.2020 by Ben Owen for 1torial.com
/* Tested in InDesign 2020 (15.1.1)
/* ben@benowen.net
/* Most of the code came from the InDesign script FindChangeByList.jsx
/* and the function setCustomTextVariable() by Jon S. Winters.
/*
/* DESCRIPTION
/* This script allows you to import a simple text file containing a
/* text variable list and registers them as "Custom Text Variables,"
@altercation
altercation / xmonad.hs
Created December 28, 2016 01:09
Dirty XMonad config WIP
---------------------------------------------------------------------------
-- --
-- _| _| _| _| _| --
-- _| _| _|_| _|_| _|_| _|_|_| _|_|_| _|_|_| --
-- _| _| _| _| _| _| _| _| _| _| _| _| --
-- _| _| _| _| _| _| _| _| _| _| _| _| --
-- _| _| _| _| _|_| _| _| _|_|_| _|_|_| --
-- --
---------------------------------------------------------------------------
-- Ethan Schoonover <es@ethanschoonover.com> @ethanschoonover --
@altercation
altercation / base.ni
Created April 8, 2019 17:33
Inform7 Base School File
"School Spirit" by LWGMS 6th Grade coding
Section 1 - Setup
Release along with an interpreter.
Release along with a website.
Use American dialect and full-length room descriptions.
Use scoring.
Use American dialect, the serial comma, and full-length room descriptions.
Delivered-To: es@ethanschoonover.com
Received: by 2002:ac9:2b2a:0:0:0:0:0 with SMTP id q42csp5186363oca;
Mon, 4 Feb 2019 15:12:50 -0800 (PST)
X-Received: by 2002:a37:57c5:: with SMTP id l188mr1344206qkb.54.1549321940131;
Mon, 04 Feb 2019 15:12:20 -0800 (PST)
X-Received: by 2002:a37:57c5:: with SMTP id l188mr1344135qkb.54.1549321938262;
Mon, 04 Feb 2019 15:12:18 -0800 (PST)
ARC-Seal: i=3; a=rsa-sha256; t=1549321938; cv=pass;
d=google.com; s=arc-20160816;
b=eJpK9y2wyk3VWL3PV2CSmV6smslLV4vq196qy2GDF+Zmid1dKCKfho3IuFM9Wg25fE
@altercation
altercation / browser.sh
Created November 1, 2016 19:17
Per workspace browser launcher
#!/usr/bin/env zsh
setopt EXTENDED_GLOB NO_UNSET
unsetopt NO_MATCH
# launch different browser profiles automatically on any named i3 workspace
# plain numbered workspaces (or those listed in DEFAULT_WS) launch the normal
# browser profile
# expected names for chromium/google-chrome executable
#browsers=(chromium google-chrome google-chrome-${^=:-stable unstable beta dev})
@altercation
altercation / init-keyboard
Created March 25, 2017 03:51
Keyboard initialization
#!/bin/sh
# ----------------------------------------------------------------------
# reference
# ----------------------------------------------------------------------
# compose key in this setup is shift+ralt, release, then hit dead key and live key
# e.g. shift+ralt, ', e = é
# both shifts simultaneously switches between first and second group (en and gr)
@altercation
altercation / urlhandler
Last active March 8, 2017 19:42
URL Hander
#!/bin/sh
# return to original window (true) or stay in browser after opening url
RETURN_TO_ORIGIN=true
# for google chrome beta
#PROCESS_NAME=chrome
#CLASS_NAME=Google-chrome-beta
#BROWSERCMD=google-chrome-beta
#SUFFIX=" - Google Chrome"
@altercation
altercation / xmonad.hs
Created January 10, 2017 03:02
XMonad Config for video bug report re: screenlock obscured by windows after switching displays
{-# LANGUAGE AllowAmbiguousTypes, DeriveDataTypeable, TypeSynonymInstances, MultiParamTypeClasses #-}
-- a little messy, I know, but it's WIP
---------------------------------------------------------------------------
-- Ethan Schoonover <es@ethanschoonover.com> @ethanschoonover --
-- https://github.com/altercation --
---------------------------------------------------------------------------
-- current as of XMonad 0.12