Skip to content

Instantly share code, notes, and snippets.

View atahrijouti's full-sized avatar

Abderrahmane TAHRI JOUTI atahrijouti

View GitHub Profile
@Kungsgeten
Kungsgeten / kungsgeten_ryo.el
Created January 9, 2017 08:47
My ryo-mode config
;;* Helper functions
;; Taken from http://endlessparentheses.com/emacs-narrow-or-widen-dwim.html
(defun narrow-or-widen-dwim (p)
"Widen if buffer is narrowed, narrow-dwim otherwise.
Dwim means: region, org-src-block, org-subtree, or
defun, whichever applies first. Narrowing to
org-src-block actually calls `org-edit-src-code'.
With prefix P, don't widen, just narrow even if buffer
@chergaoui
chergaoui / Extract frame from video
Created February 19, 2014 16:38
Quick script I recently used to extract a frame from a .webm file. The frame is saved as a .png file.
#!/bin/bash
# NB: the script file must be in the same directory as media files
FILES=./*.webm
for f in $FILES
do
echo "Processing $f file..."
ffmpeg -i "$f" -ss 10 -vframes 1 "$f.png"
done
@bentruyman
bentruyman / Custom.css
Created August 17, 2011 00:30
IR_Black Theme for Chrome Developer Tools
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*