Skip to content

Instantly share code, notes, and snippets.

View fasterthanlime's full-sized avatar
🌌
4 oreos from heaven

Amos Wenger fasterthanlime

🌌
4 oreos from heaven
View GitHub Profile
@nddrylliog
nddrylliog / minimal-cairo.md
Last active May 29, 2024 16:26
Minimal cairo build - for the humanoid who already has everything and just needs vector graphics

You need both pixman and cairo, which you can find here: http://cairographics.org/releases/

Pixman configure:

../pixman-0.32.4/configure --prefix=/root/prefix --disable-libpng --disable-gtk

Cairo configure:

PKG_CONFIG_PATH=/root/prefix/lib/pkgconfig ../cairo-1.12.16/configure --prefix=/root/prefix --enable-xlib=no --enable-xcb=no --enable-xcb-shm=no --enable-win32=no --enable-quartz=no --enable-script=no --enable-ft=no --enable-fc=no --enable-ps=no --enable-pdf=no --enable-svg=no --enable-gobject=no --enable-trace=no --enable-interpreter=no --enable-png=no

#!/bin/bash
#
# llamize
# Stub a llama-standard ooc library/binding.
#
# Based on a script by wandernauta:
# http://oocgaming.org/forum/index.php?topic=31
# https://gist.github.com/4144797
@fasterthanlime
fasterthanlime / csview.sh
Last active November 14, 2015 19:45
If you need a quick CSV viewer
#!/bin/sh
sed 's/,,/, ,/g;s/,,/, ,/g' | column -s, -t | vim +"set nowrap" -

Getting illegal instructions? Build OpenAL with:

cmake .. -DALSOFT_CPUEXT_SSE=OFF -DALSOFT_CPUEXT_SSE2=OFF -DALSOFT_CPUEXT_SSE4_1=OFF
@fasterthanlime
fasterthanlime / taleoftales_sunset_farewell.md
Last active August 29, 2015 14:23
Mirror of taleoftales' farewell article

And the sun sets…

After the barrage of sad tales about depression caused by indies turning into millionaires overnight, allow us to raise your spirits with a story about the liberating and energizing effects of complete commercial failure.

Having a sale is fun. Many people get to play your games who normally wouldn’t and you receive a lot of positive feedback. But of course that’s not the reason for having a sale. The reason is always a need for money. And in our current economy, money tends to be collected from large amounts of tiny sources. It was a desperate move for us. An attempt to pay the debts caused by the production of Sunset and stay afloat while we figure out what to do with the rest of our lives.

Reaching out

@fasterthanlime
fasterthanlime / itchio-browse.md
Last active August 29, 2015 14:24
unofficial itch.io browse url cheat sheet
@fasterthanlime
fasterthanlime / keymap.cson
Created March 16, 2016 12:14
My Atom keymap
'atom-text-editor':
'f4': 'change-case:camel'
'atom-text-editor.vim-mode:not(.insert-mode)':
't j': 'pane:show-next-item'
't k': 'pane:show-previous-item'
't w': 'core:close'
't o': 'fuzzy-finder:toggle-file-finder'
#!/usr/bin/env ruby
layouts = %w(us ch(fr))
current = `setxkbmap -query`.split("\n")[-1].split(':')[-1].strip
next_layout = layouts[(layouts.index(current) + 1) % layouts.size]
`setxkbmap '#{next_layout}'`
`notify-send '#{next_layout}'`
@fasterthanlime
fasterthanlime / cron.daily
Created August 2, 2016 19:13
(BSD-licensed)
#!/bin/sh
#
# Copyright (c) 2015 Slack Technologies. Original version from Google Chrome,
# license is below.
#
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# It creates the repository configuration file for package updates, and it
  • first-class transpiler support (pick your syntax sugar of choice, have it be sourcemapped easily in debuggers/stack traces/etc.)
  • easy & accurate code coverage tools (with sourcemaps too)
  • integrated console, debugger, memory, CPU profiler, network inspector (a key shortcut away, even in the production version of the app)
  • remote debugging too (renderer and main process - with the UI showing remotely in a way you can interact with)
  • great support for integration tests (aka webdriver - you basically send mouse/keyboard events and inspect the DOM to make sure what you expect to happen on screen happens)