Skip to content

Instantly share code, notes, and snippets.

@tfwio
tfwio / pi
Last active August 29, 2015 14:10
mingw's postinstall (bash) shell scripts --- create a directory: `[msys-directory]/postinstall` and place these files here.
# Copyright (C) Earnie Boyd <[email protected]>
# This file is a part of msysDVLPR.
# http://www.mingw.org/msysdvlpr.shmtl
# THIS IS A HACK OF pi.sh WHICH ACCEPTS A SINGLE MINGW DIRECTORY AS AN INPUT VARIABLE
# -tfw
mingwinstall=$1
#echo
#echo "This is a post install process that will try to normalize between"
#echo "your MinGW install if any as well as your previous MSYS installs "
#echo "if any. I don't have any traps as aborts will not hurt anything."
@tfwio
tfwio / brotli-94000f649-w32.patch
Last active August 29, 2015 14:10
an update to https://gist.github.com/tfwio/83b2b499d5827f0d83bc since woff2 compress/decompress migrated to github.com/google/woff2
enc/block_splitter.h | 4 +++-
enc/write_bits.h | 6 +++++-
shared.mk | 4 ++--
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/enc/block_splitter.h b/enc/block_splitter.h
index 6e4682e..0b2c7d9 100644
--- a/enc/block_splitter.h
+++ b/enc/block_splitter.h
@@ -22,7 +22,9 @@
@tfwio
tfwio / b64.sh
Last active August 29, 2015 14:10
¡ TESTING ! webfont-tools
#!/bin/sh
##############################################################
# ¡¡¡DO NOT RUN ME!!!
# THIS SCRIPT IS TO BE CALLED BY ITS OWNER
##############################################################
if [[ ! -z $DIR_ROOT ]] ; then cd $DIR_ROOT ; fi
# ------------------------------------------
# git clone git://git.code.sf.net/p/libb64/git libb64-git
# base64
# ------------------------------------------
@tfwio
tfwio / readme.md
Last active August 29, 2015 14:07
a simple download script w/patches where useful for custom mingw-w64 builds using a "/mingw/x64_86-w64-mingw32" or "/mingw/i686-w64-mingw32" (symbolic link) junctioned as "/mingw/mingw32"

This is just a collection of notes and bash (or sh) scripting dedicated to setting up a custom build environment around a mingw-w32 or few. This would probably not be of any interest to any particular individual as compared to other much better team driven scripts and/or projects out there like github.com/Alexpux/MINGW-packages—which I encountered a short time after writing much of this script.

  • First we would do a git checkout ...
  • download the patch
  • apply the patch
  • make ; make install

After patching, a bash process might look something like:

Author-meta:Thomas F Wroble Author:Thomas F Wroble Title: UbuntuServer in VirtualBox Subtitle: UbuntuServer Date:20140909 encoding:utf8 version:from the desk of TFWroble mainfont: Roboto Slab documentclass: book dh:8.5in

brotli/enc/write_bits.h | 1 -
shared.mk | 8 ++++----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/brotli/enc/write_bits.h b/brotli/enc/write_bits.h
index cf6f53e..95b29db 100644
--- a/brotli/enc/write_bits.h
+++ b/brotli/enc/write_bits.h
@@ -21,7 +21,6 @@
#if defined(OS_MACOSX)
@tfwio
tfwio / jquery.mbox.js
Created September 2, 2014 13:52
Force a menu to the top of the page when scrolling past the particular item; (seed, working prototype)
'use strict';
/*
* (C) tfwroble 201408231822
*/
(function(w){
/*
what I'm trying to do:

SVN Berkley DB Upgrade

This concept is also known as SVN repository upgrade from v1.6.x to v1.7.

The note is written for an archive I created and have up on my drive.google.com, with some ammendments to this readme for the passer-byer...

Requirements

@tfwio
tfwio / formatter-prototypes.js
Last active August 29, 2015 14:05
needs consolidation, cleanup ... more
function __formatter(){
//console.log("Formatter prototype initialized.");
return this;
}
/**
* Believe it or not, this is of huge help to our table-sorting algo.
* What it is still doing here is beyond me.
* ---ahh, I was rendering tables in ASPNET/MVC and validating content?
@tfwio
tfwio / FirstFloor.MUI-net40.xpt
Last active September 25, 2015 21:58
For me, C:\Program Files (x86)\SharpDevelop\5.1\data\templates\project\CSharp\FirstFloor.MUI.xpt; Once you use this template, check out the LocalMuiSettings and feel free to change things around. Here we use HKLM or HKCU (I'm not remembering)/Software/tfwio/... in the windows registry to remember the color theme being used for the MUI app. 20140…
<?xml version="1.0"?>
<Template originator="tfw" created="07/07/2014">
<!-- Template Header -->
<TemplateConfiguration>
<Name>FirstFloor MUI</Name>
<Category>C#</Category>
<Subcategory>WPF</Subcategory>
<Icon>C#.Project.WPFProject</Icon>
<Description>Framework v4.0 --- FirstFloor.ModernUI application (With Icons)</Description>
<Description>FirstFloor.ModernUI application (With Icons)</Description>