Skip to content

Instantly share code, notes, and snippets.

View xarem's full-sized avatar

Ueli Banholzer xarem

View GitHub Profile
--- acinclude.m4 2019-04-30 12:12:22.000000000 +0200
+++ acinclude.m4 2019-05-16 16:10:03.000000000 +0200
@@ -9,7 +9,7 @@
# non-working versions, e.g. "3.0 3.2";
# remove "none" when introducing the first incompatible bison version an
# separate any following additions by spaces
- bison_version_exclude="3.0"
+ bison_version_exclude="3.0.0"
# for standalone build of Zend Engine
@xarem
xarem / remove-w3tc-update-notice.php
Last active March 17, 2016 13:21
Remove W3TC update notice
<?php
add_action('admin_init', function() {
global $wp_filter;
foreach ($wp_filter['admin_notices'] as $admin_notices) {
foreach ($admin_notices as $key => $admin_notice) {
if (preg_match('/[\w\d]+notify_edge_mode$/', $key)) {
remove_action('admin_notices', $key);
}
}
}

Keybase proof

I hereby claim:

  • I am xarem on github.
  • I am ubanholzer (https://keybase.io/ubanholzer) on keybase.
  • I have a public key whose fingerprint is 7AB7 3969 F439 6DF7 E63E B6B9 88B8 EC87 88D6 2020

To claim this, I am signing this object:

@xarem
xarem / id_rsa.pub
Created February 1, 2016 15:21
SSH Public Key von Ueli Banholzer (@xarem)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDEh8r6lGon6KDZ1ybAPr8+PtfxLg/bi+vFiiTash6Rdz94y9TeN5AlF2fzCuINF0gdm6FUuVKYGZ8hgioEzCzLkDaDBzl5mfQinDqxngdLf5fZ/m2ZZcO4oTFTFKDDjezVv5qOqF+k/ESHE+zwXme5XKzvPGhL6+FOnFhEppI5bfQLOAw+bpcLyGkgs9xcenhRyns1yMkq5x6Q3glrNqSzlwL778/VddKclWtjY12RGRYr1pmNm8AlanxPZ1Q+Yi4rSlY9+/36f+psPveBwal9BRGNh6t99H7/cUPktYMxVv75f9jaKZyt81pbjNS18uYoRLD3rrhKPxJvOfDewdvB ueli@whatwedo.ch
@xarem
xarem / docker-compose-updater.bash
Created January 14, 2016 15:34
Docker Compose Updater Bash Script
#!/bin/bash
lastReleasesUrl="https://github.com/docker/compose/releases.atom"
lastReleaseCache="/tmp/docker-compose-last-release"
if [ -f '/usr/local/bin/docker-compose' ]; then
currentDockerComposeVersion=$(docker-compose -v | egrep -o '([0-9]\.[0-9]\.[0-9])')
else
currentDockerComposeVersion="0.0.0"
fi
@xarem
xarem / 00-results
Last active December 10, 2020 15:11
Public Cloud Provider Performance Comparison (Geekbench)
nine.ch 8016 Pt.
CloudScale.ch 5708 Pt.
Vultr 4996 Pt.
Linode 4446 Pt.
ExoScale 3691 Pt.
DigitalOcean 3524 Pt.
Scaleway C2 3505 Pt.
Scaleway VC1 3477 Pt.
AWS 3248 Pt.
Cirrax 2530 Pt.
@xarem
xarem / README.md
Last active August 29, 2015 14:20
Install Yosemite OS X in VirtualBox
  • create machine from the Mac OS X (64 bit) template
  • I recommend the following configuration:
  • - at least 2 GB RAM
  • - at least 2 CPU's
  • - Chipset: PIIX3
  • - Video memory (recommended): 128 MB
  • Download OS X Yosemite from App Store
  • iesd -i /Applications/Install\ OS\ X\ Yosemite.app -o yosemite.dmg -t BaseSystem
  • hdiutil convert yosemite.dmg -format UDSP -o yosemite.sparseimage
  • hdiutil attach /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg
@xarem
xarem / README.md
Last active May 4, 2020 04:11
Upload files from context menu in OS X
  • Step 1, create Service in Automator:

Step 1

  • Step 2, set Service for files:

Step 2

  • Step 3: insert bash script (see below)
  • Step 4, save: