Skip to content

Instantly share code, notes, and snippets.

View MauricioKruijer's full-sized avatar
🚀
To Infinity and Beyond!

Mauricio MauricioKruijer

🚀
To Infinity and Beyond!
  • LeadSocial
  • Amsterdam
View GitHub Profile
@MauricioKruijer
MauricioKruijer / brew install php54-imagick
Created February 14, 2013 14:48
Trying to install imagick
brew: superenv removed: -I/private/tmp/php54-imagick-mhqD/imagick-3.1.0RC2 -I/private/tmp/php54-imagick-mhqD/imagick-3.1.0RC2 -g -O2
brew: superenv removed: -I/private/tmp/php54-imagick-mhqD/imagick-3.1.0RC2 -I/private/tmp/php54-imagick-mhqD/imagick-3.1.0RC2 -g -O2
brew: superenv removed: -I/private/tmp/php54-imagick-mhqD/imagick-3.1.0RC2 -I/private/tmp/php54-imagick-mhqD/imagick-3.1.0RC2 -g -O2
brew: superenv removed: -I/private/tmp/php54-imagick-mhqD/imagick-3.1.0RC2 -I/private/tmp/php54-imagick-mhqD/imagick-3.1.0RC2 -g -O2
In file included from /private/tmp/php54-imagick-mhqD/imagick-3.1.0RC2/imagick_file.c:21:
./php_imagick.h:49:12: fatal error: 'wand/MagickWand.h' file not found
# include <wand/MagickWand.h>
^
In file included from /private/tmp/php54-imagick-mhqD/imagick-3.1.0RC2/imagickdraw_class.c:21:
./php_imagick.h:49:12: fatal error: 'wand/MagickWand.h' file not found
;(function($, window, document, undefined){
var defaults = {
label: 'yeahhhhh'
};
var methods = {
"init": function (options) {
options = $.extend({}, defaults, options);
// Do whatever
},
@MauricioKruijer
MauricioKruijer / Sublime-Shortcuts.md
Last active December 17, 2015 21:39
Soms vergeet ik deze shit ook.

Always forgetting shortcuts.

  • ALT+SHIFT+W To wrap your selected content with a html tag, just selected your text, then press Alt-Shift-W. You'll then have the option to fill in the front and back tag simultaneously. https://coderwall.com/p/d1qphg
  • CMD+L Select current line.
  • CMD+X Delete line.
  • CMD+R Go to method
  • CMD+P ":121" go to specific line number
  • CMD+P file:n go to specific line number in file
  • CMD+P file@method go to specific method in file
  • CMD+SHIFT+D Duplicate current line
@MauricioKruijer
MauricioKruijer / force console.log.js
Created May 30, 2013 08:33
Dit is ook wel handig
window.console = window.console || {log:function(){}};
@MauricioKruijer
MauricioKruijer / gist:7663113
Created November 26, 2013 18:11
facebook error_subcode list
456 The session is malformed.
457 The session has an invalid origin.
458 The session is invalid, because the app is no longer installed.
459 The user has been checkpointed. The error_data will contain the URL the user needs to go to to clear the checkpoint.
460 The session is invalid likely because the user changed the password.
461 The session is invalid, because the user has reinstalled the app.
462 The session has a stale version.
463 The session has expired.
464 The session user is not confirmed.
465 The session user is invalid.
@MauricioKruijer
MauricioKruijer / podcast.xml
Last active August 29, 2015 14:09
podcasttest
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
<title>Audiotour over dingen we niet kunnen zien</title>
<link>http://www.evdp.nl/</link>
<language>nl</language>
<copyright>&#xA9; 2014 Eline van der Ploeg</copyright>
<itunes:subtitle>Korte audiotour over allerlei dingen</itunes:subtitle>
<itunes:author>Eline van der Ploeg</itunes:author>
<itunes:keywords>talk,technology,radio,mix</itunes:keywords>
@MauricioKruijer
MauricioKruijer / keybase.md
Created August 18, 2016 13:24
Keybase shit

Keybase proof

I hereby claim:

  • I am MauricioKruijer on github.
  • I am hackermau (https://keybase.io/hackermau) on keybase.
  • I have a public key whose fingerprint is 4511 FE9B 0EE9 9302 7CF4 BDA5 66E0 ED43 62F9 5CD2

To claim this, I am signing this object:

Mac OSX Sierra : Brew Apache + Mysql + PHP Switcher + DNSMasq + SSL 👍

Things I had to do using Homebrew to get my local web dev environment back up and running after migration to OSX Sierra + Xcode 8.1.

Note: I used brew reinstall because I had already installed most of this previously under Yosemite. Probably better ways to do this, but this is what worked for me.

brew doctor

brew tap homebrew/dupes
brew tap homebrew/versions
#!/bin/sh
# Thanks dropbox, this db is read-only. You need to disable SIP to do this stuff now... `csrutil disable `
# sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT INTO access VALUES('kTCCServiceAccessibility','com.apple.Terminal',0,1,1,NULL,NULL);"
check=$(xcode-select --install 2>&1)
echo $check
str="xcode-select: note: install requested for command line developer tools"
while [[ "$check" == "$str" ]];
do
@MauricioKruijer
MauricioKruijer / README.md
Created November 24, 2017 09:57
Unmount volumes with macOS installed

Unmount volumes that contain a macOS installation

For testint purposes I have a few partitions with a clean install of macOS, these partitions contain applications I use daily. Somtimes spotlight starts applications from that volume.. that is just super annoying I use this script to unmount them after start up.

Installation

You just have to move these files

mv nl.mauriciokruijer.unmountvolumes.plist ~/Library/LaunchDeamons/
sudo mv unmountVolumes.sh /usr/local/bin/