Skip to content

Instantly share code, notes, and snippets.

View ColsterJ's full-sized avatar

Colin Jones ColsterJ

View GitHub Profile
@ColsterJ
ColsterJ / mac-tweaks.md
Created April 23, 2022 22:37 — forked from koenbok/mac-tweaks.md
My Favorite Mac Tweaks

Skip verifying disk images

defaults write com.apple.frameworks.diskimages skip-verify true

Always hide the Desktop

defaults write com.apple.finder CreateDesktop false; killall Finder

Make terminal logins fast

touch ~/.hushlogin

Disable most animations

@ColsterJ
ColsterJ / lsappinfo.sh
Created April 23, 2022 18:58 — forked from andrewpetrochenkov/mac-frontmost-app.sh
macOS app frontmost
#!/usr/bin/env bash
{ set +x; } 2>/dev/null
lsappinfo info -only name `lsappinfo front` | awk -F'"' '{print $4}'
lsappinfo info -only pid `lsappinfo front` | awk -F'"=' '{print $2}'
lsappinfo info -only bundlepath `lsappinfo front` | awk -F'"' '{print $4}'
lsappinfo info -only bundleID `lsappinfo front` | awk -F'"' '{print $4}'
# The original roguelike code that John made for the class during Academy Pittsburgh Session 9
require 'io/console'
class Tile
# if something is there or not
attr_accessor :solid # true/false based on whether the character can stand there or not
attr_accessor :score # does this cell have any kind of value?
attr_accessor :damage # does this cell cause damage, and how much
attr_accessor :display # what does this look like on the map?
attr_accessor :message # what it should display when on this tile
encoder_bitrate=100
app_lan_quality=3
app_wan_quality=3
encoder_fps=0
encoder_min_qp=5
encoder_max_qp=25
encoder_quality=3
encoder_h265=1
encoder_vbv_max=1024
client_vsync=1
:: Launch Menu for "Master Levels for Doom 2" for GZDoom users
:: Barebones Windows batch script by Colin Jones
::
:: Before using this, consider the nicer alternatives described here:
:: https://www.gog.com/forum/doom_series/doom_2_master_levels_gog_version_in_gzdoom
::
:: -You will need GZDoom installed somewhere (zdoom.org)
:: -You will need Master Levels for Doom 2 and Doom 2 itself from Steam, GOG.com or disc
:: -This .BAT file should be placed wherever the Master Levels' .WAD files are located
:: -Change DOOMPATH and MLPATH to wherever you have GZDoom and MLD2 installed