Skip to content

Instantly share code, notes, and snippets.

View jakoch's full-sized avatar
💭
😎 #include <Berlin.h> #include <C++>

Jens A. Koch jakoch

💭
😎 #include <Berlin.h> #include <C++>
View GitHub Profile
@jakoch
jakoch / installer.iss
Created March 20, 2016 23:39
InnoSetup Uninstall by deleting the application folder
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
// warn the user, that his working folder is going to be deleted and projects might get lost
if (CurUninstallStep = usUninstall) then begin
if MsgBox('***WARNING***'#13#10#13#10 +
'The installation folder is [ '+ ExpandConstant('{app}') +' ].'#13#10 +
'You are about to delete this folder and all its subfolders,'#13#10 +
'including [ '+ ExpandConstant('{app}') +'\important_projects_folder ], which may contain your projects.'#13#10#13#10 +
@jakoch
jakoch / unzip.iss
Created August 28, 2015 10:34
Unzip Helper for executing 7zip without blocking the InnoSetup GUI
{
Unzip Helper for executing 7zip without blocking the InnoSetup GUI
----
The main procedure is the non-blocking Unzip().
Your GUI will remain responsive during the unzip operation.
Written by Rik and Jens A. Koch (@jakoch) on StackOverflow:
http://stackoverflow.com/questions/32256432/how-to-execute-7zip-without-blocking-the-innosetup-ui
# Some good standards, which are not used if the user
# creates his/her own .bashrc/.bash_profile
export PATH="$PATH:/c/cerver/bin/nodejs/:/c/server/bin/nodejs/node_modules/npm/:/c/server/bin/ruby/bin/"
# --show-control-chars: help showing Korean or accented characters
alias ls='ls -F --color=auto --show-control-chars'
alias ll='ls -l'
alias www='cd /c/server/www/'
alias st='cmd //c /d/#portable/Total\ Commander/Plugins/exe/SublimeText3/subl.exe'
@jakoch
jakoch / gist:3a8cb01f6a991807c7dd
Created January 2, 2015 11:23
CLI tool - UTF-8 / BOM encoding check for directory tree
#!/bin/bash
#
# CLI Tool for checking the UTF-8 encoding of files in a directory tree.
#
function usage() {
echo -e "Usage: $0 <directory>"
}
@jakoch
jakoch / build-static-qt.ps1
Created October 29, 2014 13:36
Build static version of Qt (Windows)
#-----------------------------------------------------------------------------
#
# Copyright (c) 2013, Thierry Lelegard
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
@jakoch
jakoch / znc_debian_install.sh
Last active October 1, 2015 18:28
ZNC Installation Script for Debian
#!/bin/bash
#
# ZNC Installation Script for Debian
# ----------------------------------
# Author: Jens-Andre Koch
# Date: 14.03.2012
# --------------------------------<3
# fetch znc-version.tar.gz archive from github
wget --no-check-certificate https://github.com/znc/znc/archive/znc-1.2.tar.gz -O - | tar xz