Skip to content

Instantly share code, notes, and snippets.

@vonHabsi
vonHabsi / sidebar_userChrome.js
Created Feb 14, 2019
JS for Hotkey Driven Sidebar Display (thepante)
View sidebar_userChrome.js
// ==UserScript==
// @name userChrome.js
// @include main
// @version 0.8.1.vH
// @note u/thepante
// ==/UserScript==
document.getElementById("sidebar").src='chrome://browser/content/webext-panels.xul';
document.getElementById("sidebar-button").checked=false;
var alfs = document.getElementById("sidebar-box");
@vonHabsi
vonHabsi / sidebar_userChrome.css
Created Feb 14, 2019
CSS for Hotkey Driven Sidebar Display (thepante)
View sidebar_userChrome.css
@namespace html url("http://www.w3.org/1999/xhtml");
@namespace svg url("http://www.w3.org/2000/svg");
@-moz-document url(chrome://browser/content/browser.xul),
url(chrome://browser/content/places/bookmarksSidebar.xul),
url(chrome://browser/content/places/historySidebar.xul) {
#alltabs-button {
-moz-binding: url(data:text/xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8IS0tIENvcHlyaWdodCAoYykgMjAxNyBIYWdnYWkgTnVjaGkNCkF2YWlsYWJsZSBmb3IgdXNlIHVuZGVyIHRoZSBNSVQgTGljZW5zZToNCmh0dHBzOi8vb3BlbnNvdXJjZS5vcmcvbGljZW5zZXMvTUlUDQogLS0+DQoNCjwhLS0gUnVuIHVzZXJDaHJvbWUuanMvdXNlckNocm9tZS54dWwgYW5kIC51Yy5qcy8udWMueHVsLy5jc3MgZmlsZXMgIC0tPg0KPGJpbmRpbmdzIHhtbG5zPSJodHRwOi8vd3d3Lm1vemlsbGEub3JnL3hibCI+DQogICAgPGJpbmRpbmcgaWQ9ImpzIiBleHRlbmRzPSJjaHJvbWU6Ly9nbG9iYWwvY29udGVudC9iaW5kaW5ncy90b29sYmFyYnV0dG9uLnhtbCNtZW51Ij4NCiAgICAgICAgPGltcGxlbWVudGF0aW9uPg0KICAgICAgICAgICAgPGNvbnN0cnVjdG9yPjwhW0NEQVRBWw0KICAgICAgICAgICAgICAgIGlmKHdpbmRvdy51c2VyQ2hyb21lSnNNb2QpIHJldHVybjsNCiAgICAgICAgICAgICAgIC
@vonHabsi
vonHabsi / dl_ff_nightly.compact.sh
Created Aug 23, 2017
Download firefox nightly compact version.
View dl_ff_nightly.compact.sh
#!/bin/bash
set -e
set -x
# firefox version
FFVER=57
STRIPDASHES=1
MAKEDEFAULT=1
while getopts b:d:s:v: OPTION
do
@vonHabsi
vonHabsi / dl_ff_nightly.sh
Created Aug 23, 2017
download firefox nightly
View dl_ff_nightly.sh
#!/bin/bash
set -e
set -x
usage()
{
cat << EOF
dl_ff_nightly - download and install a firefox nightly version
View gottabeme-helm-find-files.el
(defun ap/helm-find-files ()
;; from gottabeme https://www.reddit.com/r/emacs/comments/6ogkp3/how_to_add_more_source_to_helmfindfiles_or/
;; https://stackoverflow.com/questions/11403862/how-to-have-emacs-helm-list-offer-files-in-current-directory-as-options
(interactive)
;; From helm-buffers-list in helm-buffers.el This wasn't necessary
;; until I updated helm...then suddenly helm-source-buffers-list
;; stopped working. And this is why I am reluctant to update
;; things. SIGH.
(unless helm-source-buffers-list
View Devblog.adoc

2017-06-18

More emacs tips

Whats the best way to package my Emacs installation (packages and config) so that it can quickly be installed anywhere?

2017-06-17

Systemd Running Services As A User