This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun elmord-block-comment-auto-prefix () | |
| (when (eq last-command-event ?\n) | |
| (let* ((last-comment-start | |
| (save-excursion (search-backward "/*" nil t))) | |
| (last-comment-end | |
| (save-excursion (search-backward "*/" last-comment-start t)))) | |
| (when (and last-comment-start (not last-comment-end)) | |
| (insert "* ") | |
| (indent-for-tab-command))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Unfix all toolbars! | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| function unfix(el) { | |
| if (["fixed", "sticky"].indexOf(window.getComputedStyle(el).position) >= 0) { | |
| if (el.offsetWidth >= document.documentElement.clientWidth) { | |
| console.log("Unfix element:", el); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # vpnsetup.sh - Set up a L2TP VPN on Debian/Ubuntu systems. | |
| # Written by Vítor De Araújo <https://elmord.org/>. | |
| # Version 1.2, 2018-08-23. | |
| # Location where the VPN control script will be installed. | |
| VPNCTL_SCRIPT=/usr/local/bin/vpn | |
| # Am I bash? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SmallLisp: a simple Lisp-like language shell implemented in C++. | |
| #include <iostream> | |
| #include <sstream> | |
| #include <memory> | |
| #include <map> | |
| #include <list> | |
| #include <cctype> | |
| #include <exception> |
OlderNewer