Skip to content

Instantly share code, notes, and snippets.

@Thermionix
Thermionix / svn-to-git.ps1
Created June 1, 2014 23:25
apply an svn revision onto a git repo (including binary files)
$rev=40469 ; $url="svn://svn/test/branches/1.0.3" ; $clonedir="C:\source\test" ; $gitbin="${env:ProgramFiles(x86)}\Git\bin" ; cmd /c "svn diff --force --patch-compatible --diff-cmd `"$gitbin\diff.exe`" -x `"--text --unified`" -c $rev $url | git apply --directory=`"$clonedir`" -p0 --reject --verbose -"
@Thermionix
Thermionix / flyspray-comment.groovy
Last active August 29, 2015 14:04
Gitblit Post-Receive Hook: flyspray-comment
import com.gitblit.GitBlit
import com.gitblit.utils.JGitUtils
import org.eclipse.jgit.lib.Repository
import org.slf4j.Logger
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.2' )
import groovyx.net.http.HTTPBuilder
import groovyx.net.http.ContentType
import groovyx.net.http.HttpResponseException
@Thermionix
Thermionix / wine-1.7.24-d3dadapter.patch
Created August 11, 2014 23:56
wine-1.7.24 d3dadapter patch
diff --git a/configure b/configure
index 40cadd2..6f563de 100755
--- a/configure
+++ b/configure
@@ -821,6 +821,7 @@ with_netapi
with_openal
with_opencl
with_opengl
+with_d3dadapter
with_osmesa
#!/bin/bash
zip_date=`date +%Y-%m-%d`
rom_zip="apps-$zip_date.zip"
wget --timestamping https://gitlab.com/fdroid/fdroiddata/raw/master/stats/known_apks.txt
apk_ids=(
org.fdroid.fdroid # FDroid
com.zegoggles.smssync # SMSBackup+
@Thermionix
Thermionix / setup.netfx3.ps1
Last active August 29, 2015 14:27
setup.netfx3.ps1 - choose and ISO file to use as the source for enabling NetFx3 in DISM
#Requires -Version 4.0
#Requires -RunAsAdministrator
Trap { Write-Host $_ -Fore Red ; pause ; exit 1 }
$ErrorActionPreference = "Stop"
function Mount-Iso([string] $isoPath)
{
if ( -not (Test-Path $isoPath)) { throw "$isoPath does not exist" }
@Thermionix
Thermionix / gist:2715702
Created May 17, 2012 02:14
Virtualhost for Couchpotato, Sickbeard, Headphones, Deluge and SABnzbd
<ifmodule mod_ssl.c>
<virtualhost *:443>
DocumentRoot /var/www
<directory " var www>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
@Thermionix
Thermionix / gen_md5.sh
Created May 30, 2012 06:52
recursively check or generate md5 checksums for a folder
#!/bin/bash
cd ../iso/
for f in `find . -type f -not -name "*.md5" -printf "%f\n"`
do
if [ -f ${f}.md5 ]
then
md5sum -c $f.md5
#| grep FAILED$ > failed_hashes
#!/bin/bash
echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install dkms
sudo apt-get install virtualbox-4.2 --no-install-recommends
vbox_version=`wget -q -O - http://download.virtualbox.org/virtualbox/LATEST.TXT`
wget http://download.virtualbox.org/virtualbox/$vbox_version/Oracle_VM_VirtualBox_Extension_Pack-$vbox_version.vbox-extpack
@Thermionix
Thermionix / owncloud.conf
Created August 2, 2013 03:15
nginx conf for owncloud 5.0 in subdir
location /owncloud {
client_max_body_size 1024M;
location ~ ^/owncloud/(data|config|\.ht|db_structure\.xml|README) {
deny all;
}
rewrite ^/owncloud/.well-known/host-meta /public.php?service=host-meta last;
rewrite ^/owncloud/.well-known/host-meta.json /public.php?service=host-meta-json last;
rewrite ^/owncloud/.well-known/carddav /remote.php/carddav/ redirect;
@Thermionix
Thermionix / stream.jblive.sh
Created August 26, 2013 00:31
jblive stream rtsp audio only
#!/bin/bash
ffplay -vn -rtsp_transport tcp -allowed_media_types audio -nodisp rtsp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream