Skip to content

Instantly share code, notes, and snippets.

View rfelix's full-sized avatar

Raoul Felix rfelix

View GitHub Profile
@rfelix
rfelix / drestivo-org-download-method.el
Created December 21, 2018 00:33 — forked from daviderestivo/drestivo-org-download-method.el
This is an helper function for org-download. It creates an \"./image\" folder within the same directory of the org file. Images are separated inside that image folder by additional folders one per org file.
(defun drestivo/org-download-method (link)
"This is an helper function for org-download.
It creates an \"./image\" folder within the same directory of the org file.
Images are separated inside that image folder by additional folders one per
org file.
More info can be found here: https://github.com/abo-abo/org-download/issues/40.
See the commit message for an example:
https://github.com/abo-abo/org-download/commit/137c3d2aa083283a3fc853f9ecbbc03039bf397b"
(let ((filename
(file-name-nondirectory
@rfelix
rfelix / Redis_Pubsub_Client.rb
Created January 14, 2012 00:55 — forked from gautamrege/Redis_Pubsub_Client.rb
Redis Pubsub Client with event persistence
require 'redis'
require 'multi_json'
class PubSubRedis < Redis
def initialize(options = {})
@timestamp = options[:timestamp].to_i || 0 # 0 means -- no backlog needed
super
end
@rfelix
rfelix / jekyll
Created April 26, 2010 15:56 — forked from albanpeignier/jekyll
#!/usr/bin/env ruby
# ./script/jekyll to load jekyll extensions
require 'rubygems'
require 'jekyll'
module Jekyll
class << self
@rfelix
rfelix / Jabber-SH
Created March 29, 2010 10:19 — forked from pcreux/Jabber-SH
#!/usr/bin/env ruby
# Jabber-SH — SH console via XMPP/Jabber (GTalk)
#
# Jabber-SH allows you to administrate a remote computer via a command line
# through a Jabber client. It’s like SSH via GoogleTalk! :)
# This is just a hack but it might be usefull sometime to run basic commands
# on a machine that is not accessible via ssh.
#
# Philippe Creux. pcreux/AT/gmail/DOT/com