Skip to content

Instantly share code, notes, and snippets.

View emilyst's full-sized avatar

Emily Strickland emilyst

View GitHub Profile
@emilyst
emilyst / # macvim - 2018-09-08_10-35-42.txt
Created September 8, 2018 17:43
macvim on macOS 10.14 - Homebrew build logs
Homebrew build logs for macvim on macOS 10.14
Build date: 2018-09-08 10:35:42
@emilyst
emilyst / .md
Last active February 13, 2023 19:17
How to rip a multiple-disc PlayStation game and add it to OpenEmu

Adding multi-disc PlayStation games to OpenEmu

It's necessary to find an optical drive capable of reading the CDs used as PlayStation games. It's also necessary to get OpenEmu (free) and set it up to play PlayStation games. This may require finding its appropriate BIOS files (check its settings). Otherwise, finding CD images for games which you own online is possible and left as a risk for the reader to take.

  1. For OpenEmu to read and use a PlayStation game, it must exist as a file on the computer. If you have a set of BIN/CUE files, skip to step two.
    1. The entirety of the CD's binary data must be ripped to a binary file. Use a command like "dd if=/dev/disk2 of='~/Downloads/Final Fantasy VII (USA) (Disc 1).bin' bs=2048 conv=sync,notrunc".
      • (Here, "/dev/disk2" refers to a specific device on my computer. Open the Disk Utility on yours, find your optical drive, and find out what it's called. If it's "disk3", use "/dev/disk3" instead. If you don't have an optical drive, this is a non-star
@emilyst
emilyst / fairyfloss.vim
Created May 13, 2016 05:47
A quick-and-dirty automatic conversion of the Fairyfloss Sublime Text theme (http://sailorhg.github.io/fairyfloss/) to a Vim colorscheme using the coloration script (https://github.com/sickill/coloration).
" Vim color file
" Converted from Textmate theme Monokai using Coloration v0.4.0 (http://github.com/sickill/coloration)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
@emilyst
emilyst / SMBDIS.ASM
Last active August 31, 2022 15:53 — forked from 1wErt3r/SMBDIS.ASM
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
⚡ l
total 32
-rwxrwxr-x 1 emilyst staff 8.3K Jun 1 16:17 hello*
-rw-r--r-- 1 emilyst staff 82B Jun 1 16:13 hello.c
⚡ cat hello.c
#include <stdio.h>
int main(void) {
printf("hello world\n");
return 0;
#!/usr/bin/env perl
use strict;
use warnings;
use Data::Dumper;
my $hash = {};
printf(Dumper($hash));
→ scala
Welcome to Scala version 2.11.5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_71).
Type in expressions to have them evaluated.
Type :help for more information.
scala> case object Nerd
defined object Nerd
scala> val nerds = Seq(Nerd, Nerd, Nerd)
nerds: Seq[Nerd.type] = List(Nerd, Nerd, Nerd)
$ mvn -q compile
[ERROR] /Users/emilyst/Development/serviceutil/src/main/scala/com/simple/serviceutil/servicewrappers/Jimmies.scala:122: type mismatch;
found : scala.Boolean(true)
required: java.lang.Boolean
[ERROR] case true => Option(UserAsset(userUuid,
[ERROR] ^
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int is_valid(const char* password) {
if (strcmp(password, "poop") == 0) {
return 1;
} else {
return 0;
}
carmel=# select bu.username, bach.* from bancorp_address_change_history bach inner join banksimple_user bu using (user_id);
username | event_id | created | reason | user_id | success
----------+----------+-------------------------------+-------------------------------+--------------------------------------+---------
mrballer | 100 | 2014-11-03 19:04:37.013804+00 | Life is like a hurricane | 4440c24a-1903-4851-8787-7f2592230dbe | f
mrballer | 101 | 2014-11-03 19:04:54.084334+00 | Here in Duckberg | 4440c24a-1903-4851-8787-7f2592230dbe | f
mrballer | 102 | 2014-11-03 19:05:13.743344+00 | Race cars, lasers, aeroplanes | 4440c24a-1903-4851-8787-7f2592230dbe | f
mrballer | 104 | 2014-11-03 19:06:41.821962+00 | It's a duck-blur | 4440c24a-1903-4851-8787-7f2592230dbe | t
msballer | 105 | 2014-11-03 19:07:16.141076+00 | Might solve a mystery | af6da608-f644-4df5-89ba-6f712971