Skip to content

Instantly share code, notes, and snippets.

View mason-larobina's full-sized avatar

Mason Larobina mason-larobina

  • Western Australia
  • 00:44 (UTC +08:00)
View GitHub Profile
@mason-larobina
mason-larobina / steam-990080.log
Last active March 3, 2023 06:40
Hogwarts Legacy proton crash logs
This file has been truncated, but you can view the full file.
======================
Proton: 1677511134 experimental-7.0-20230227
SteamGameId: 990080
Command: ['/home/username/.local/share/Steam/steamapps/common/Hogwarts Legacy/HogwartsLegacy.exe', '-SaveToUserDir', '-UserDir=Hogwarts Legacy']
Options: {'forcelgadd'}
depot: 0.20230222.42118
pressure-vessel: 0.20230220.0 scout
scripts: 0.20230220.0
soldier: 0.20230222.42118 soldier 0.20230222.42118
Kernel: Linux 6.2.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 Feb 2023 03:39:23 +0000 x86_64
@mason-larobina
mason-larobina / Makefile
Last active October 13, 2015 06:28
Sudoku Solver using Depth-first search and Backtracking.
CC = clang
#CC = gcc
CFLAGS = -g -O4 -std=c99
CFLAGS += -Wall -Wextra -Wconversion -Wstrict-overflow=5 -Wno-div-by-zero
CFLAGS += -Wpointer-arith -Wtype-limits -Wsign-compare
all: sudoku
@mason-larobina
mason-larobina / gist:3898762
Created October 16, 2012 11:30
jj exit insert mode luakit
add_binds("insert", {
lousy.bind.key({}, "j", function (w)
local now = luakit.time()
if now - (w.last_j_press or 0) < 1 then
-- Success!
w:set_mode()
return true
end
w.last_j_press = now
return false
@mason-larobina
mason-larobina / gist:3721692
Created September 14, 2012 12:41
problem 184 partial
// (C) Mason Larobina <mason.larobina@gmail.com>
// http://projecteuler.net/problem=184
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <sys/param.h>
-- Add vimperator-like link hinting & following
require "follow"
follow.stylesheet = follow.stylesheet .. [===[
#luakit_follow_overlay .hint_overlay {
border: 1px solid #333;
background-color: #f00;
}
@mason-larobina
mason-larobina / rc.lua.patch
Created September 5, 2012 04:59
Patch to style luakit follow hints with CSS
diff --git a/config/rc.lua b/config/rc.lua
index c03a6bd..aa3a781 100644
--- a/config/rc.lua
+++ b/config/rc.lua
@@ -109,6 +109,20 @@ require "downloads_chrome"
-- Add vimperator-like link hinting & following
require "follow"
+follow.stylesheet = follow.stylesheet .. [===[
+
@mason-larobina
mason-larobina / new_bashrc.sh
Created August 11, 2012 13:46 — forked from josephwecker/new_bashrc.sh
Replace .bashrc, .bash_profile, .profile, etc. with something much more clean, consistent, and meaningful.
#!/bin/bash
# License: Public Domain.
# Author: Joseph Wecker, 2012
#
# Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile?
# Are you tired of trying to remember how darwin/mac-osx treat them differently from linux?
# Are you tired of not having your ~/.bash* stuff work the way you expect?
#
# Symlink all of the following to this file:
# * ~/.bashrc
@mason-larobina
mason-larobina / rc.lua
Created August 6, 2012 15:19 — forked from johntyree/webview.lua
Set jQuery animation speed for all luakit:// pages from your luakit rc.lua
function webview.init_funcs.set_jquery_speed(view, w)
view:add_signal("load-status", function (view, status)
if status == "finished" and string.match(view.uri, "^luakit://") then
view:eval_js [=[ if ($) $.fx.speeds._default = 70; ]=]
end
end)
end
@mason-larobina
mason-larobina / pgp-merge-drv
Created April 25, 2012 17:36 — forked from ewa/pgp-merge-drv
Git merge driver to decrypt (and re-encrypt) files before merging.
#!/bin/bash
# WARNING: This creates and manipulates clear text copies of the
# encrypted files. It tries to clean up afterwards, but lots can go
# wrong. If you are seriously worried about the secrecy of the files,
# don't trust this!
ANCESTOR=$1
MINE=$2
OTHER=$3