Skip to content

Instantly share code, notes, and snippets.

View bardware's full-sized avatar

Bernhard Döbler bardware

View GitHub Profile
@bardware
bardware / SortableBindingList.vb
Created March 18, 2016 23:33 — forked from wcabus/SortableBindingList.vb
SortableBindingList is a list that supports sorting its items and filtering them.
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Reflection
Imports System.Linq
Imports System.Linq.Dynamic
''' <summary>
''' SortableBindingList is a list that supports sorting its items and filtering them.
''' When binding a <see cref="System.Collections.Generic.List(Of T)"/> to a <see cref="System.Windows.Forms.DataGridView"/>, you can not sort by clicking on the columns
''' or filter the list. With this list, you can.
"C:\Program Files\Java\jdk1.8.0_65\bin\java.exe" -cp "D:\Coldfusion11\cfusion\runtime\lib\servlet-api.jar;D:\Coldfusion11\cfusion\runtime\lib\jsp-api.jar;D:\Coldfusion11\cfusion\runtime\lib\el-api.jar;D:\Coldfusion11\cfusion\wwwroot\WEB-INF\lib\cfmx_bootstrap.jar;D:\Coldfusion11\cfusion\wwwroot\WEB-INF\lib\cfx.jar" -Dcoldfusion.classPath=D:\Coldfusion11\cfusion/lib/updates,D:\Coldfusion11\cfusion/lib -Dcoldfusion.libPath=D:\Coldfusion11\cfusion/lib coldfusion.tools.CommandLineInvoker Compiler -webinf D:\Coldfusion11\cfusion\wwwroot\WEB-INF -webroot d:\webs\cf001 -cfroot D:\Coldfusion11\cfusion -d -srcdir d:\webs\cf001\src -deploydir d:\webs\cf001\compiled
@bardware
bardware / git-cvsimport-lame.sh
Last active October 2, 2015 10:33
Import LAME (Lame Aint an MP3 Encoder) from Sourceforge.net into git repository
#required tools
sudo apt-get -y install git-cvs
sudo apt-get -y install cvsps
# lame directory under current folder will be created
git cvsimport -v -a -C lame -k -m -d :pserver:anonymous@lame.cvs.sourceforge.net:/cvsroot/lame lame
LoadModule fcgid_module "C:/Program Files (x86)/mod_fcgid-2.3.9/mod_fcgid.so"
<IfModule fcgid_module>
FcgidInitialEnv PATH "C:/Program Files (x86)/PHP/5_6-nts;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"
FcgidInitialEnv SystemRoot "C:/Windows"
FcgidInitialEnv SystemDrive "C:"
FcgidInitialEnv TEMP "C:/WINDOWS/TEMP"
FcgidInitialEnv TMP "C:/WINDOWS/TEMP"
FcgidInitialEnv windir "C:/WINDOWS"
FcgidIOTimeout 120
FcgidConnectTimeout 16
@bardware
bardware / webservice.cfc
Last active September 6, 2015 12:02
SOAP web service with optional arguments
<!--- http://stackoverflow.com/questions/32385955/soap-web-service-with-optional-arguments?noredirect=1#comment52650901_32385955 --->
<cfcomponent output="false">
<cffunction name="myFunc" returntype="struct" access="remote">
<cfargument name="mParam" type="numeric" required="true">
<cfargument name="oParam" type="string" required="false" default="strDefault">
<cfreturn Arguments>
</cffunction>
@bardware
bardware / update_msys2.sh
Last active September 10, 2016 20:15
update msys2
#!/bin/bash
# https://msys2.github.io/
# pacman --needed -Sy bash pacman pacman-mirrors msys2-runtime-devel msys2-runtime
# pacman -Syu
# https://sourceforge.net/p/msys2/wiki/MSYS2%20installation/
# Since pacman 5.0.1.6403, you can just
# Run **`pacman -Syuu`**. Follow the instructions. Repeat this step until it says there are no packages to update.
pacman -Syuu
@bardware
bardware / Makefile.mingw32.dlltool.diff
Created January 20, 2015 21:04
dlltool as variable to allow cross compilation
Index: Dll/Makefile.mingw32
===================================================================
RCS file: /cvsroot/lame/lame/Dll/Makefile.mingw32,v
retrieving revision 1.3
diff -u -r1.3 Makefile.mingw32
--- Dll/Makefile.mingw32 7 Feb 2009 11:18:46 -0000 1.3
+++ Dll/Makefile.mingw32 20 Jan 2015 20:42:12 -0000
@@ -15,7 +15,8 @@
CFLAGS = -I$(LAME_SRC_ROOT)/include -I$(LAME_SRC_ROOT)/libmp3lame
CC = g++
@bardware
bardware / setup_mingw
Created January 6, 2015 23:59
install cygwin as regular windows user
setup-x86.exe -B -q -n -N -d -g -a x86 -R d:\cygwin -s ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/sources.redhat.com/cygwin/ -l D:/down/cygwin/ -P binutils,patch,libtool,make,flex,bison,patch,texinfo,gettext,perl,ruby,gawk,python,unzip,intltool,openssh-server,build-essential,automake,autoconf,libtool,pkg-config,m4,subversion,gcc-core,gcc-g++,bzip2,wget,tar,vim,ruby,xorg-server,xinit,xorg-docs,openssh,inetutils,procps,mc,ping,screen,mercurial,bash-completion,git-completion,git-cvs,git-gui,git-svn,gitk,sqlite3,docbook-utils,doxygen,mingw64-i686-gcc-core,mingw64-i686-gcc-g++,mingw64-x86_64-gcc-core,mingw64-x86_64-gcc-g++,nasm,mingw64-i686-pkg-config,mingw64-x86_64-pkg-config,mingw64-x86_64-winpthreads,mingw64-i686-winpthreads,libiconv
@bardware
bardware / configure_zlib
Created January 6, 2015 23:57
configure zlib before cross compiling
CROSS_PREFIX=x86_64-w64-mingw32- ./configure --prefix=/usr/local/x86_64-w64-mingw32 --static
@bardware
bardware / updnpm.sh
Created October 17, 2014 15:41
update node modules
npm update npm -g
npm update -g