Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am salimhb on github.
  • I am salim (https://keybase.io/salim) on keybase.
  • I have a public key ASBmk9C5eN4OP2f-wcmX_yuDr59AzSNFd6JaV1Ydn0FvUAo

To claim this, I am signing this object:

@salimhb
salimhb / gist:8f1b1c5a2e7c35f09dc2
Created December 11, 2014 14:36
Error calling cache method with readthis_store
NoMethodError - undefined method `[]' for nil:NilClass:
readthis (0.3.0) lib/readthis/cache.rb:148:in `merged_options'
readthis (0.3.0) lib/readthis/cache.rb:37:in `block in read'
connection_pool (2.1.0) lib/connection_pool.rb:58:in `with'
readthis (0.3.0) lib/readthis/cache.rb:139:in `block in invoke'
readthis (0.3.0) lib/readthis/cache.rb:134:in `block in instrument'
activesupport (4.1.8) lib/active_support/notifications.rb:161:in `instrument'
readthis (0.3.0) lib/readthis/cache.rb:134:in `instrument'
readthis (0.3.0) lib/readthis/cache.rb:138:in `invoke'
readthis (0.3.0) lib/readthis/cache.rb:36:in `read'
@salimhb
salimhb / whatsapp_abid.scpt
Last active December 25, 2015 13:29
Add Whatsapp Social Profile Link to Addressbook looking up Whatsapp ABID
# This applescript adds whatsapp social profile link to your address book
# 1. Backup whatsapp's chat to your iCloud account
# 2. Make sure that you are using the same iCloud account on your mac and that "Contacts" and "Documents & Data" are enabled
# 3. IMPORTANT: Backup your address book before running this script!
# 4. RUN IT
set originalDelimiter to AppleScript's text item delimiters
set db_path to (do shell script "find ~/Library/Mobile\\ Documents/*WhatsApp/Accounts/*/* -maxdepth 1 -type f | grep ChatStorage.sqlite")
@salimhb
salimhb / showoff-content-classes-to-slide.js
Created February 27, 2012 11:46
showoff copy classes from .content to its parent .slide
$(document).bind("showoff:loaded", function (event) {
$('.content').each( function(index){
$(this).parents('.slide').addClass($(this)[0].className).removeClass('content');
});
});