Skip to content

Instantly share code, notes, and snippets.

@jonforums
jonforums / uru_pathmunge.go
Last active December 19, 2015 16:54
new uru PATH handling
package main
import (
"errors"
"fmt"
"os"
"runtime"
"strings"
)
@jonforums
jonforums / uru_dirwalkup.go
Last active December 17, 2015 17:19
toying with uru's .ruby-version searching impl
package main
import (
"fmt"
"os"
"path/filepath"
"runtime"
"strings"
)
@jonforums
jonforums / cl-winsdk-results
Last active December 17, 2015 07:08
mingw.org, mingw-w64, and winsdk handling of NET_LUID struct
C:\Users\Jon\Documents\CDev\sandbox>cl -W3 -Fenetluid.exe net_luid_test.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
net_luid_test.c
net_luid_test.c(22) : warning C4101: 'luid' : unreferenced local variable
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:netluid.exe
@jonforums
jonforums / caca_de_jekyll.txt
Last active December 16, 2015 15:29
jekyll's wasting my time
I run a patched 0.11.2 jekyll environment (patched posix-spawn) on my local win7 box because of
breaking changes the devs made in the past that impact windows users. Hard to tell if they even
tested on windows boxes before pushing. Perhaps things are different with the recent commit activity.
And no time to confirm whether they're doing the right things for jekyll-on-windows users, or just
hoping all the recent commits for all the dependencies Just Work.
After a long hiatus, I just pushed a post (worked on my local 0.11.2 jekyll setup) about Go's
fantastic cross-build capabilities and was rewarded with this exciting email from GH:
@jonforums
jonforums / build_minised.ps1
Last active December 14, 2015 23:39
Automate building minised on Windows with mingw/mingw-w64
#requires -version 2.0
# Author: Jon Maken
# License: 3-clause BSD
# Revision: 2013-03-14 23:17:01 -0600
#
# TODO:
# - extract generics into a downloadable utils helper module
# - add proper try-catch-finally error handling
@jonforums
jonforums / build_zlib.ps1
Last active December 14, 2015 13:48
Automate building zlib on Windows with mingw/mingw-w64
#requires -version 2.0
# Author: Jon Maken
# License: 3-clause BSD
# Revision: 2013-03-11 01:39:59 -0600
#
# TODO:
# - extract generics into a downloadable utils helper module
# - add proper try-catch-finally error handling
# - support x86 and x64 builds
@jonforums
jonforums / build_libffi.ps1
Last active December 14, 2015 12:38
Automate building libffi on Windows with mingw/mingw-w64
#requires -version 2.0
# Author: Jon Maken
# License: 3-clause BSD
# Revision: 2013-03-11 00:37:25 -0600
#
# TODO:
# - extract generics into a downloadable utils helper module
# - add proper try-catch-finally error handling
# - support x86 and x64 builds
@jonforums
jonforums / build_tcltk.ps1
Last active December 14, 2015 11:38
Automate building TclTk on Windows with mingw/mingw-w64
#requires -version 2.0
# Author: Jon Maken
# License: 3-clause BSD
# Revision: 2013-03-04 18:48:14 -0600
#
# TODO:
# - extract generics into a downloadable utils helper module
# - add try-catch-finally error handling
# - add checkpoint support
@jonforums
jonforums / scriptblock_tricks.ps1
Last active December 13, 2015 18:38
toying with powershell scriptblocks
#require -version 2.0
function invoker($data, $fcn) { $fcn.Invoke($data) }
$sport = 'ski'
$lambda = { param ($who) write-host "Hello $who, do you $sport" }
# direct call with mixed array of mixed values
& $lambda 'Foo', 7
@jonforums
jonforums / Preferences.sublime-settings
Last active December 10, 2015 21:18
My SublimeText2 user preferences
{
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"highlight_line": true,
"caret_style": "wide",
"fade_fold_buttons": false,
"default_line_ending": "unix",
"fallback_encoding": "UTF-8",