Skip to content

Instantly share code, notes, and snippets.

View bardware's full-sized avatar

Bernhard Döbler bardware

View GitHub Profile
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 / 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
"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 / 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.
@bardware
bardware / .eslintrc
Created June 4, 2016 22:50 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
@bardware
bardware / stacktrace.log
Created June 24, 2016 09:57
An internal error occurred during: "Requesting JavaScript AST from selection".
java.lang.ClassCastException: org.eclipse.wst.jsdt.internal.core.dom.binding.FunctionBinding cannot be cast to org.eclipse.wst.jsdt.core.dom.IVariableBinding
at org.eclipse.wst.jsdt.core.dom.BindingResolverDom.resolveVariable(BindingResolverDom.java:245)
at org.eclipse.wst.jsdt.core.dom.VariableDeclaration.resolveBinding(VariableDeclaration.java:198)
at org.eclipse.wst.jsdt.internal.ui.search.OccurrencesFinder.visit(OccurrencesFinder.java:228)
at org.eclipse.wst.jsdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:224)
at org.eclipse.wst.jsdt.core.dom.ASTNode.accept(ASTNode.java:2426)
at org.eclipse.wst.jsdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2499)
at org.eclipse.wst.jsdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:320)
at org.eclipse.wst.jsdt.core.dom.ASTNode.accept(ASTNode.java:2426)
at org.eclipse.wst.jsdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2499)
LFLAGS="-static-libstdc++ -static-libgcc" CXXFLAGS="-static-libgcc -static-libstdc++" CC="gcc -Wall" make clean all V=1
# Inspired by https://wiki.filezilla-project.org/wiki/index.php?title=Compiling_FileZilla_3_under_Windows&redirect=no
# pthread tendy to link dynamically, I prefer it statically linked
# Fix missing platform prefix for windres
[ -f /mingw64/bin/x86_64-w64-mingw32-windres.exe ] || ln -s /mingw64/bin/windres.exe /mingw64/bin/x86_64-w64-mingw32-windres.exe
[ -f /mingw32/bin/i686-w64-mingw32-windres.exe ] || ln -s /mingw32/bin/windres.exe /mingw32/bin/i686-w64-mingw32-windres.exe
# Even when statically linking to libstdc++, it still tries to dynamically link to lib(win)pthread. On top of it, libtool is too
# stupid to recognize the semantics of -Wl,-Bstatic. This leaves one option: Removing the dynamic import libraries.
rm /mingw32/i686-w64-mingw32/lib/libpthread.dll.a
rm /mingw32/i686-w64-mingw32/lib/libwinpthread.dll.a
@bardware
bardware / Exception Stack Trace
Last active March 16, 2017 16:56
Unhandled event loop exception
org.eclipse.swt.SWTException: Failed to execute runnable (java.util.ConcurrentModificationException)
at org.eclipse.swt.SWT.error(SWT.java:4533)
at org.eclipse.swt.SWT.error(SWT.java:4448)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4211)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3827)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
component accessors="true" {
property name="privateVarOne" default="privateVarOne default";
function init() {
return this;
}
public void function newMethod() {
var myVar = variables.privateVarOne;