Skip to content

Instantly share code, notes, and snippets.

View Olical's full-sized avatar
🧙‍♂️
(magic)

Oliver Caldwell Olical

🧙‍♂️
(magic)
View GitHub Profile
@Olical
Olical / rvm.fish
Last active February 6, 2017 13:18
Changes to rvm.fish so it doesn't make spacemacs error.
function rvm --description='Ruby enVironment Manager'
# run RVM and capture the resulting environment
set --local env_file (mktemp -t rvm.fish.XXXXXXXXXX)
bash -c 'source ~/.rvm/scripts/rvm; rvm "$@"; status=$?; env > "$0"; exit $status' $env_file $argv > /dev/null 2>&1
# apply rvm_* and *PATH variables from the captured environment
and grep '^rvm\|^[^=]*PATH\|^GEM_HOME' $env_file | grep -v '_clr=' | sed '/^[^=]*PATH/s/:/" "/g; s/^/set -xg /; s/=/ "/; s/$/" ;/; s/(//; s/)//' | source
# needed under fish >= 2.2.0
and set -xg GEM_PATH (echo $GEM_PATH | sed 's/ /:/g')
@Olical
Olical / fib.rkt
Last active June 30, 2024 15:43
A fast, recursive, typed fibonacci program written in Racket.
#lang typed/racket
(: fib (-> Number Number))
(define (fib n)
(fib-iter 0 1 n))
(: fib-iter (-> Number Number Number Number))
(define (fib-iter a b n)
(if (= n 0) a
(fib-iter b (+ a b) (- n 1))))
@Olical
Olical / autoexec.cfg
Created September 7, 2016 12:25
My CS:GO settings
// optimised map
cl_radar_always_centered "0"
cl_radar_scale "0.3"
cl_hud_radar_scale "1.15"
cl_radar_icon_scale_min "1"
cl_radar_rotate "1"
cl_radar_square_with_scoreboard "1"
// 128 tick optimisation commands
@Olical
Olical / keybase.md
Created July 18, 2016 10:13
Keybase verification

Keybase proof

I hereby claim:

  • I am Olical on github.
  • I am olical (https://keybase.io/olical) on keybase.
  • I have a public key whose fingerprint is 49C8 0268 B0BB 6A31 68D0 0A6A 4C91 B3E1 0582 F410

To claim this, I am signing this object:

@Olical
Olical / flow-plus-babel.js
Last active April 25, 2016 13:13
Flow + Babel = <3 or at least a slight improvement
// @flow
type Person = {
name: string,
age: number
}
function getPeople (): Promise<Array<Person>> {
const people: Array<Person> = [
{name: 'Foo', age: 21},
@Olical
Olical / config.hs
Created March 10, 2016 20:24
Counter-Strike: Global Offensive config from Absent (backup of http://hastebin.com/udahojevop.hs)
// a few commands and binds that might help your gameplay
// radar size commands
cl_radar_scale 3.5 // allows visibility of entire minimap
cl_radar_always_centered 0 // allows visibility when stood to one side of map
cl_radar_rotate 0 // freezes map orientation
cl_radar_icon_scale_min 0.6 // changes size of icons relative to map
// 128 tick optimisation commands
@Olical
Olical / olical-gists.json
Created February 9, 2016 00:33
My public gists
[
{
"url": "https://api.github.com/gists/00d4a0b67e6ed50e3212",
"forks_url": "https://api.github.com/gists/00d4a0b67e6ed50e3212/forks",
"commits_url": "https://api.github.com/gists/00d4a0b67e6ed50e3212/commits",
"id": "00d4a0b67e6ed50e3212",
"git_pull_url": "https://gist.github.com/00d4a0b67e6ed50e3212.git",
"git_push_url": "https://gist.github.com/00d4a0b67e6ed50e3212.git",
"html_url": "https://gist.github.com/00d4a0b67e6ed50e3212",
"files": {
@Olical
Olical / twitter-search.json
Created February 9, 2016 00:21
An example twitter search result, from the documentation
{
"statuses": [
{
"coordinates": null,
"favorited": false,
"truncated": false,
"created_at": "Mon Sep 24 03:35:21 +0000 2012",
"id_str": "250075927172759552",
"entities": {
"urls": [
@Olical
Olical / anorher-steam-stack-trace.txt
Last active December 25, 2015 18:44
A Steam stack trace?
Stats for default/
Tracked requests: 55,086
Average Time: 2.32
Average PHP Time: 0.57
Average WG Time: 1.75
Average WG Bytes: 16,934.59
Average WG Calls: 2.25
(View All Controller Stats)
Performance Data
@Olical
Olical / 20-synaptics.conf
Last active February 9, 2026 04:21
Some configuration for Arch Linux on a Dell XPS 13 9350
Section "InputClass"
Identifier "touchpad"
Driver "synaptics"
MatchIsTouchpad "on"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "VertEdgeScroll" "on"
Option "VertTwoFingerScroll" "on"
Option "HorizEdgeScroll" "on"