Skip to content

Instantly share code, notes, and snippets.


Dirk Postma dirkpostma

View GitHub Profile
dirkpostma / .inputrc
Created Feb 17, 2018
Use up/down arrows to search though bash command history
View .inputrc
# Key bindings, up/down arrow searches through history
"\e[A": history-search-backward
"\e[B": history-search-forward
"\eOA": history-search-backward
"\eOB": history-search-forward
# Don't source this file, that doesn't work.
# In stead, by default, C-x C-r is bound to re-read-init-file
dirkpostma / restful.js
Last active Jul 4, 2018
Restful DELETE request using <a>
View restful.js
$(document).ready(function() {
// Add click handler to hyperlinks to send restful DELETE requests
// Example:
// <a href="/delete/1" class="rest-delete">delete</a>
// <script>restful.init($('.rest-delete'));</script>
var restful = {
View test_gist.php
echo "Hello World!
You can’t perform that action at this time.