Skip to content

Instantly share code, notes, and snippets.

View axe312ger's full-sized avatar
🏝️
Enjoying life

Benedikt Rötsch axe312ger

🏝️
Enjoying life
  • Remote / Berlin / Germany
View GitHub Profile
@axe312ger
axe312ger / gist:9369401
Created March 5, 2014 15:25
Display the time a command needs to be completed. For example to test the dd performance.
sudo time dd if=/dev/disk2s1 of=test.deleteme bs=1m
@axe312ger
axe312ger / gist:6939762
Last active December 25, 2015 07:29
Clean up drupal standard install profile and install some very useful modules.
# Create contrib & custom folders
mkdir sites/all/modules/contrib
mkdir sites/all/modules/custom
# Disable useless core modules
drush dis overlay color shortcut toolbar dashboard comment rdf -y
drush pm-uninstall overlay color shortcut toolbar dashboard comment rdf -y
# Install some very useful contrib modules
drush dl ds coffee devel admin_menu search_krumo features views module_filter -y
@axe312ger
axe312ger / gist:7084544
Created October 21, 2013 14:12
Add iOS/iPhone/iPad Simulator to your OSX applications.
cd /Applications
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app iPhone\ Simulator.app
@axe312ger
axe312ger / gist:7200243
Created October 28, 2013 16:39
Get all sql tables who contain a specific column.
SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE COLUMN_NAME IN ('COLUMN_NAME')
AND TABLE_SCHEMA = 'TABLE_NAME';
@axe312ger
axe312ger / gist:7230485
Last active December 26, 2015 23:29
Useful regex expressions

Useful regex expressions

Find empty lines

^(?:[\t ]*(?:\r?\n|\r))+

@axe312ger
axe312ger / gist:7784737
Created December 4, 2013 09:26
Fix vagrant error: Error: Failed to set group to '0': Operation not permitted - [shared folder] Error: /Stage[main]//Apache::Vhost[ZvdLK5xWSmjX]/File[shared folder]/group: change from dialout to root failed: Failed to set group to '0': Operation not permitted - [shared folder] Warning: /Stage[main]//Apache::Vhost[ZvdLK5xWSmjX]/File[25-ZvdLK5xWSm…
sudo chgrp 0 [shared folder on host]
@axe312ger
axe312ger / gist:7908347
Created December 11, 2013 10:43
Country term list by continent. Based on http://countrylist.net/ @ 10.12.2013 Rows: Name, Parent, ISO-2 Country Code
Asia;;;
Africa;;;
Europe;;;
Australia;;;
South America;;;
North America;;;
Antarctica;;;
Afghanistan;Asia;AF;
Egypt;Africa;EG;
Åland Islands;Europe;AX;
@axe312ger
axe312ger / .svgo.yml
Last active June 16, 2016 15:07
Created optimized svg sprite which allows coloring via css by using currentColor. Uses svgo and svgSprite.
multipass: true
js2svg:
pretty: true
indent: 2
plugins:
- convertColors:
currentColor: true
- collapseGroups: true

Keybase proof

I hereby claim:

  • I am axe312ger on github.
  • I am axe312 (https://keybase.io/axe312) on keybase.
  • I have a public key ASAj7L_SgUss0rrC-wMRLYmyQRLGp9W55rw862reuiitGwo

To claim this, I am signing this object: