Skip to content

Instantly share code, notes, and snippets.

View tholu's full-sized avatar
🎯
Focusing

Thomas Lutz tholu

🎯
Focusing
View GitHub Profile
@tholu
tholu / utf8_patch.diff
Last active December 18, 2015 18:39
UTF8 patch for Subversion 1.8.0
--- subversion/libsvn_subr/path.c.original 2013-07-02 23:04:31.000000000 +0200
+++ subversion/libsvn_subr/path.c 2013-07-02 23:29:30.000000000 +0200
@@ -40,6 +40,9 @@
#include "dirent_uri.h"
+#if defined(DARWIN)
+#include <CoreFoundation/CoreFoundation.h>
+#endif /* DARWIN */
@tholu
tholu / gist:5912705
Created July 2, 2013 20:13
svn_diff_xp_utf8_patch
Index: subversion/libsvn_subr/path.c
===================================================================
--- subversion/libsvn_subr/path.c (revision 1499077)
+++ subversion/libsvn_subr/path.c (working copy)
@@ -40,6 +40,9 @@
#include "dirent_uri.h"
+#if defined(DARWIN)
+#include <CoreFoundation/CoreFoundation.h>
@tholu
tholu / utf8_patch_clemensmg.diff
Created July 2, 2013 22:37
utf8_patch_clemensmg.diff
--- subversion/libsvn_subr/path.c 2013-05-14 00:40:07.000000000 +0200
+++ subversion/libsvn_subr/path.c 2013-07-02 23:39:04.000000000 +0200
@@ -40,6 +40,10 @@
#include "dirent_uri.h"
+#ifdef DARWIN
+#include <CoreFoundation/CoreFoundation.h>
+#endif
+
@tholu
tholu / gist:7152623
Last active December 26, 2015 12:39
test 1234567890
@tholu
tholu / README.md
Created November 24, 2015 22:19 — forked from vitkin/README.md
Backport WebSocket to Apache 2.2 that doesn't modify the 'mod_utils.c' and the 'mod_proxy.h'. See the 'README.md' for details and instructions.

Backport WebSocket to Apache 2.2

This is my variation from the original patch and that also includes the suggested correction for the bug with secure websocket 'wss://'.

The difference is that I avoid modifying the mod_utils.c and the mod_proxy.h so that if the mod_proxy module has been embedded in the main httpd binary then it will work and you won't get the

@tholu
tholu / svn_1.8.x_darwin_unicode_precomp.patch
Created February 18, 2016 10:54
Unicode patch for subversion18 for homebrew tap
Index: subversion/libsvn_subr/io.c
===================================================================
--- subversion/libsvn_subr/io.c (revision 1527683)
+++ subversion/libsvn_subr/io.c (working copy)
@@ -154,7 +154,7 @@
const char *path_apr,
apr_pool_t *pool)
{
-#if defined(WIN32) || defined(DARWIN)
+#if defined(WIN32)
@tholu
tholu / keybase.md
Created July 14, 2016 08:32
Keybase proof

Keybase proof

I hereby claim:

  • I am tholu on github.
  • I am tholu (https://keybase.io/tholu) on keybase.
  • I have a public key ASDK23EvI4L0L5hBM0SP314PMKZTBFQi6aZpe6WcC9twqgo

To claim this, I am signing this object:

@tholu
tholu / fix-wordpress-permissions.sh
Created September 21, 2016 14:16 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@tholu
tholu / gitlab-registry.gc.sh
Created October 25, 2017 15:17 — forked from eedugon/gitlab-registry.gc.sh
Manual garbage collector for gitlab registry, it removes old revisions that are not referenced by any tag
#!/bin/bash
# This is a modification of gitlab-gc.sh script created by Peter Bábics (pbabics/gitlab-gc.sh)
# Improvements
# - Searching in all BASE_PATH, not fixing the search to a depth of 2
# - Directories without valid tags or revisions directories won't be processed (to avoid unexpected issues)
# - Logging in case there's nothing to delete
# - running registry-garbage-collect only when something has been deleted
@tholu
tholu / SConstruct
Created June 30, 2020 09:23
Python3 compatible SConstruct file for serf 1.3.9 (http://svn.apache.org/repos/asf/serf/branches/1.3.x/SConstruct)
# -*- python -*-
#
# ====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at