Skip to content

Instantly share code, notes, and snippets.

@rossy
rossy / Makefile
Last active May 7, 2016 02:23
Makefile for ANGLE
CXX ?= g++
AR ?= ar
RANLIB ?= ranlib
DEFS := -DUNICODE -D_UNICODE -DANGLE_ENABLE_D3D9 -DANGLE_ENABLE_D3D11 \
-DANGLE_TRANSLATOR_STATIC -DANGLE_ENABLE_HLSL -DGL_GLEXT_PROTOTYPES \
-DEGL_EGLEXT_PROTOTYPES -DLIBANGLE_IMPLEMENTATION -DGL_APICALL= \
-DEGLAPI= $(DEFS)
LIBEGL_DEFS = -DLIBEGL_IMPLEMENTATION
LIBGLESv2_DEFS = -DLIBGLESV2_IMPLEMENTATION
CPPFLAGS := -Isrc -Iinclude -Isrc/third_party/khronos $(CPPFLAGS)
@haasn
haasn / about:config.md
Last active April 2, 2024 18:46
Firefox bullshit removal via about:config

Firefox bullshit removal

Updated: Just use qutebrowser (and disable javascript). The web is done for.

@xMunch
xMunch / WKU.user.js
Last active June 22, 2020 01:20
EXPERIMENTAL/BETA
// ==UserScript==
// @name Wanikani Reorder Ultimate 2
// @namespace https://www.wanikani.com
// @description Learn in the order you want to.
// @version 2.1.0
// @include *://www.wanikani.com/lesson/session*
// @include *://www.wanikani.com/review/session*
// @grant none
// ==/UserScript==
(function ($) {$.each(['hide', 'addClass'], function (i, ev) { var el = $.fn[ev]; $.fn[ev] = function () { this.trigger(ev); return el.apply(this, arguments); }; }); })(jQuery);/*
@wiiaboo
wiiaboo / gist:d7d03c2571f25f477537
Last active September 3, 2022 16:18
My format for twitter announces in Taiga

Basically, only announces when an anime has been started, completed, put on hold or dropped.

Raw format (w/o whitespace):

$if($and($equal(%status%,1),$equal(%episode%,1)),Started $ifequal(%rewatching%,1,rew,w)atching: %title% %animeurl%,$if($and($greater(%status%,1),$lequal(%status%,3)),$ifequal(%status%,2,Completed: )$ifequal(%status%,3,Put on hold: )%title%$if(%score%, (Score: %score%/10)) %animeurl%,$if($and($equal(%status%,4),$greater(%episode%,1)),Dropped: %title%$if(%score%, (Score: %score%/10)) %animeurl%)))

Pseudo-code(?):

@jeeb
jeeb / backup_files.sh
Created May 13, 2012 17:10
Random backup script for various files on a server.
#!/bin/bash
USER_OUTPUT_FOLDER="/home/hogehoge/backups/"
USER_WEBROOT="/var/www/"
USER_APACHE="/etc/apache2/"
USER_MUNIN="/etc/munin/"
USER_PHP="/etc/php5/"
DATE_PREFIX=`date +"%Y-%m-%d_%H-%M_"`