Skip to content

Instantly share code, notes, and snippets.

View Jessidhia's full-sized avatar

Jessica Franco Jessidhia

  • @pixiv Inc, pixiv desktop
  • Tokyo, Japan
View GitHub Profile
13:38.33 cartman: sooooo
13:38.41 mru: hi cartman
13:38.48 cartman: mru: lo
13:39.03 cartman: michaelni: thanks for breaking fate & co.
13:41.33 lu_zero: ?
13:42.10 cartman: git.ffmpeg.org is not responding
13:42.15 cartman: didn't you get the memo?
13:43.20 michaelni: cartman, we have done no change to git.ffmpeg and fate.ffmpeg they point to where they always pointed to
13:43.36 michaelni: if mru chooses to shut servers down, thats out of our hands
13:43.50 mru: michaelni: stop telling lies
@Jessidhia
Jessidhia / fontconfig-2.8.0-win32.patch
Created March 23, 2011 10:31
give fontconfig some saner windows behavior and a saner caching behavior too
diff -ur fontconfig-2.8.0-orig/src/fcdir.c fontconfig-2.8.0/src/fcdir.c
--- fontconfig-2.8.0-orig/src/fcdir.c 2009-11-16 17:24:52.000000000 +0000
+++ fontconfig-2.8.0/src/fcdir.c 2011-03-23 10:28:31.000000000 +0000
@@ -203,8 +203,22 @@
/*
* Scan file files to build font patterns
*/
- for (i = 0; i < files->num; i++)
+ char buf1[512], buf2[512], pad[512], *str = &buf1[0], *prev = &buf2[0], *tmp;
+ int j, diff;
install development versions of gmp, mpfr, mpclib on the build system
(installing libmpc-dev on debian-based pulls all needed libraries)
alternatively also install ppl and cloog-ppl (libcloog-ppl-dev on debian-based)
sources for all of the above can be found in http://mirrors-us.seosue.com/gcc/infrastructure/
get binutils, gcc-core, gcc-g++, mingwrt, w32api
extract all
ln -s w32api-*/ w32api # "w32api" symlink to the extracted dir; needed by mingwrt's compilation
@Jessidhia
Jessidhia / Makefile
Created March 26, 2011 01:34
mingw maker
prefix = /usr
target = i686-mingw32
# where cross-compiled libraries go / cross compiler searches for lib / include
tprefix = $(prefix)/$(target)
# version of packages to install
binutils_version = 2.21
gcc_version = 4.5.2
mingwrt_version = 3.18
@Jessidhia
Jessidhia / gist:1176927
Created August 28, 2011 17:06
.profile snippet for making sure an ssh-agent is running
# Make sure we always have a running ssh-agent
# Try and reuse a running one if possible, otherwise start a new one
fail_agent_check () {
ssh-add -l >/dev/null 2>&1
[ "$?" = 2 ];
}
if [ -r "${HOME}/.ssh_agent" ]; then
# the .ssh_agent file already has an 'echo' so augment it
@Jessidhia
Jessidhia / msys.bat
Created September 28, 2011 14:49
msys.bat modified to try mintty before rxvt
@echo off
rem Copyright (C): 2001, 2002, 2003, 2004, 2005 Earnie Boyd
rem mailto:earnie@users.sf.net
rem This file is part of Minimal SYStem
rem http://www.mingw.org/msys.shtml
rem
rem File: msys.bat
rem Revision: 2.4
rem Revision Date: December 8th, 2005
@Jessidhia
Jessidhia / .gitignore
Created October 19, 2011 16:58
EE2 Exercises
*.o
main
main.exe
@Jessidhia
Jessidhia / gist:1346563
Created November 7, 2011 23:40
'eject'-like syntax wrapper for CDR as a profile snippet
#! /usr/bin/env bash
# Uses the CDR program from http://www.codeguru.com/cpp/w-p/system/cd-rom/article.php/c5775
# Just remove the "eject () {" and the "}" lines to turn this into a standalone script
eject () {
if [ "$1" = "-t" ]; then
shift;
CDR close "$@"
else
CDR open "$@"
@Jessidhia
Jessidhia / Makefile
Created November 17, 2011 02:13
EE2 test
CC=gcc
CFLAGS=-Wall -Wextra -Werror
LDFLAGS=-Wl,--as-needed
LDLIBS=-lm
all: q1 q2 q3 q4 q5
q%: q%.c
@Jessidhia
Jessidhia / gist:1382591
Created November 21, 2011 13:13
Compose Key hack for Autohotkey_L
;
; Autohotkey_L compose hack for Windows.
; Auto-generated from X Compose file by a script of <tuomov@iki.fi>.
;
; Modded with a few extra combinations
;
Endkeys={Esc}{Enter}
RAlt::