Skip to content

Instantly share code, notes, and snippets.

View richardkalehoff's full-sized avatar

Richard Kalehoff richardkalehoff

View GitHub Profile
@richardkalehoff
richardkalehoff / delete_node_modules.sh
Created July 24, 2020 14:39
Find and delete node_modules directories.
# List all node_modules in a directory and all descendant directories
$ find . -name "node_modules" -type d -prune | xargs du -chs
# Delete all node_modules in a directory and all descendant directories
$ find . -name "node_modules" -type d -prune -exec rm -rf '{}' +

Keybase proof

I hereby claim:

  • I am richardkalehoff on github.
  • I am richardkalehoff (https://keybase.io/richardkalehoff) on keybase.
  • I have a public key ASB8f_KLgrj-IlYSoYYjadLym_7nVwzx_QIJ4CtpqbuTGwo

To claim this, I am signing this object:

@richardkalehoff
richardkalehoff / markdown-rocks.md
Last active August 29, 2015 14:20
Sample Markdown

EE Logo

EE Website

This is my paragraph of text!

  • one
  • two
  • three
  • four
# Initial setup
git clone -o framework -b develop https://github.com/laravel/laravel.git project-name
cd project-name
git checkout --orphan master
git commit -m "Initial commit"
# Pulling changes
git fetch framework
git merge --squash -m "Upgrade Laravel" framework/develop
# Fix merge conflicts if any and commit
<snippet>
<content><![CDATA[
// ${1} Resource
Route::get('${1}s', array('as' => '${1}s', 'uses' => '${1}s@index'));
Route::get('${1}s/(:any)', array('as' => '${1}', 'uses' => '${1}s@show'));
Route::get('${1}s/new', array('as' => 'new_${1}', 'uses' => '${1}s@new'));
Route::get('${1}s/(:any)/edit', array('as' => 'edit_${1}', 'uses' => '${1}s@edit'));
Route::post('${1}s', '${1}s@create');
Route::put('${1}s/(:any)', '${1}s@update');
Route::delete('${1}s/(:any)', '${1}s@destroy');
@richardkalehoff
richardkalehoff / gist:3242191
Created August 2, 2012 23:49 — forked from JeffreyWay/gist:3185773
PHP Installation Options
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
--with-openssl=/usr \