For your Ruby, you'll must install this gems:
sudo gem install passenger
sudo passenger-install-apache2-module
At this moment, you'll asked to install some Apache2's deps (three deps):
sudo apt-get install apache2-prefork-dev
#!/usr/bin/env python | |
# | |
# author: syl20bnr (2013) | |
# goal: Focus the nth window in the current workspace (limited to 10 firsts) | |
# | |
# Example of usage in i3 config: | |
# | |
# bindsym $mod+0 exec focus_win.py -n 0 | |
# bindsym $mod+1 exec focus_win.py -n 1 | |
# ... ... |
;; inspired from: | |
;; https://github.com/roman/emacs.d/blob/master/zoo/zoo-evil.el | |
(evil-define-command fd-trigger (callback) | |
"Allows to execute the passed function using 'fd'." | |
:repeat change | |
(let ((modified (buffer-modified-p))) | |
(insert "f") | |
(let ((evt (read-event | |
(format "Insert %c to exit insert state" ?d) | |
nil 0.2))) |
#!/bin/sh | |
make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}' |
For your Ruby, you'll must install this gems:
sudo gem install passenger
sudo passenger-install-apache2-module
At this moment, you'll asked to install some Apache2's deps (three deps):
sudo apt-get install apache2-prefork-dev
while rmdir **/*(/N^F); do :; done |
(require 'popwin) | |
(setq display-buffer-function 'popwin:display-buffer) | |
(push '("^\*helm .+\*$" :regexp t) popwin:special-display-config) | |
(push '("^\*helm-.+\*$" :regexp t) popwin:special-display-config) |
# Always launch a ranger session | |
if [[ $RANGER == "" ]]; then | |
export RANGER=1 | |
ranger | |
fi |
;; insert one or several line below without changing current evil state | |
(defun evil-insert-line-below (count) | |
"Insert one of several lines below the current point's line without changing | |
the current state and point position." | |
(interactive "p") | |
(save-excursion | |
(evil-save-state (evil-open-below count)))) | |
;; insert one or several line above without changing current evil state | |
(defun evil-insert-line-above (count) |
;; adapted from https://groups.google.com/d/topic/mu-discuss/ZXB72TR5GL0/discussion | |
(defun mu4e-msgv-action-view-in-browser (msg) | |
"View the body of the message in a web browser." | |
(interactive) | |
(let ((html (mu4e-msg-field (mu4e-message-at-point t) :body-html)) | |
(tmpfile (format "%s/%d.html" temporary-file-directory (random)))) | |
(unless html (error "No html part for this message")) | |
(with-temp-file tmpfile | |
(insert | |
"<html>" |
;; evil-emacs-state is annoying, the following function and hook automatically | |
;; switch back to evil-normal-state whenever the evil-emacs-state is entered. | |
;; It allows a more consistent navigation experience among all mode maps. | |
;; To enter special commands of custom mode maps, just enter the insert mode :-) | |
(defun evil-emacs-state-2-evil-normal-state () | |
(evil-normal-state) | |
(remove-hook 'post-command-hook 'evil-emacs-state-2-evil-normal-state)) | |
(add-hook 'evil-emacs-state-entry-hook | |
(lambda () | |
(add-hook 'post-command-hook 'evil-emacs-state-2-evil-normal-state))) |