Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Thomas Lutz tholu

🎯
Focusing
Block or report user

Report or block tholu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tholu
tholu / gitlab-registry.gc.sh
Created Oct 25, 2017 — forked from eedugon/gitlab-registry.gc.sh
Manual garbage collector for gitlab registry, it removes old revisions that are not referenced by any tag
View gitlab-registry.gc.sh
#!/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
View fix-wordpress-permissions.sh
#!/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 / keybase.md
Created Jul 14, 2016
Keybase proof
View keybase.md

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 / svn_1.8.x_darwin_unicode_precomp.patch
Created Feb 18, 2016
Unicode patch for subversion18 for homebrew tap
View svn_1.8.x_darwin_unicode_precomp.patch
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 / README.md
Created Nov 24, 2015 — 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.
View README.md

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 / utf8_patch_clemensmg.diff
Created Jul 2, 2013
utf8_patch_clemensmg.diff
View 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:5912705
Created Jul 2, 2013
svn_diff_xp_utf8_patch
View gist:5912705
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.diff
Last active Dec 18, 2015
UTF8 patch for Subversion 1.8.0
View utf8_patch.diff
--- 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 */
You can’t perform that action at this time.