Skip to content

Instantly share code, notes, and snippets.

View tavurth's full-sized avatar

Will tavurth

  • Cebu, PH
View GitHub Profile
@aaronfranke
aaronfranke / convert-to-godot4.sh
Last active April 2, 2024 16:20
This script bulk-renames many things in Godot 3 projects to hopefully make it easier to convert them to Godot 4.
#!/usr/bin/env bash
# This script bulk-renames many things in Godot 3 projects to hopefully
# make it easier to convert them to Godot 4. The goal is to do as much
# replacing as possible here so that the diffs Godot produces are smaller.
set -uo pipefail
IFS=$'\n\t'
# Loops through all text files tracked by Git.
@tavurth
tavurth / FTD.ipynb
Last active February 17, 2021 09:04
Failure to deliver for GME and AMC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danlentz
danlentz / tree-shake.lisp
Created March 17, 2015 23:49
Tree Shaker
;;; -*- Mode:Common-Lisp; Package:System; Base:10 -*-
;; RESTRICTED RIGHTS LEGEND
;;
;; Use, duplication, or disclosure by the Government is subject to
;; restrictions as set forth in subdivision (c)(1)(ii) of the Rights in
;; Technical Data and Computer Software clause at 52.227-7013.
;;
;; TEXAS INSTRUMENTS INCORPORATED.
;; P.O. BOX 2909
@photex
photex / quick-glut.lisp
Created August 26, 2013 23:34
Template for quick and dirty OpenGL hacking with Common Lisp. Pan with the middle mouse button and zoom with the right mouse button.
(defclass viz-window (glut:window)
((zoom :initform 0.0025)
(offset :initform #(0.0 0.0))
(last-mouse :initform ())
(pan-throttle :initform 5)
(zoom-throttle :initform 0.00025)
(update-mode :initform nil))
(:default-initargs :pos-x 100 :pos-y 100
:width 800 :height 800
:mode '(:double :rgba)
@marianposaceanu
marianposaceanu / linux_performance.md
Last active May 25, 2024 11:30
Linux simple performance tweaks

Linux simple performance tweaks

Change the I/O Scheduler

Open $ vim /etc/default/grub then add elevator=noop next to GRUB_CMDLINE_LINUX_DEFAULT. Run $ update-grub and $ cat /sys/block/sda/queue/scheduler to be sure that noop is being used:

$ vim /etc/default/grub
$ update-grub
$ cat /sys/block/sda/queue/scheduler

[noop] deadline cfq