Skip to content

Instantly share code, notes, and snippets.

@modulitos
modulitos / userChrome.css
Created April 21, 2019 08:20
~/.mozilla/<user>.default/chrome/userChrome.css
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* to hide the native tabs */
#TabsToolbar {
visibility: collapse;
}
/* to hide the sidebar header */
#sidebar-header {
visibility: collapse;
// var swarm = require('discovery-swarm')
// var sw = swarm({
// dns: {
// server: [
// 'discovery1.publicbits.org',
// 'discovery2.publicbits.org'
// ]
// },
// dht: true
// })
* root topic - TAB and S-TAB to toggle folding
** child topic
child topic text
*** leaf topic:
some text blah
blah
blah
*** another leaf topic:
# test table - TAB to cycle through columns, M-e to move point to end of cell
;; Basic evil-mode and org-mode config to get started
;; Include this in your Emacs config file (ie ~/.emacs.d/init.el or ~/.emacs)
(require 'evil)
;; Enable Evil mode as defuault
(evil-mode 1)
;; Treat wrapped line scrolling as single lines
(define-key evil-normal-state-map (kbd "j") 'evil-next-visual-line)
(define-key evil-normal-state-map (kbd "k") 'evil-previous-visual-line)
;;; esc quits pretty much anything (like pending prompts in the minibuffer)
(define-key evil-normal-state-map [escape] 'keyboard-quit)
@modulitos
modulitos / data.csv
Created August 13, 2015 20:39
data! from editdata.org!
asdf fes
yup! it works!
@modulitos
modulitos / forms2accounts.md
Last active August 29, 2015 14:20
Ideas for a module that automatically handles account generation/updates from forms

forms2accounts

This is a set of ideas for how an forms2accounts module could work that uses accountdown and is meant to facilitate the creation and updates of accounts from a form. Primary usage would be on the server.

API

var forms2accounts = require('forms2accounts')

or some similar package name. forms2accounts is available, though

WPA Supplicant

wpa_supplicant is a cross-platform WPA Supplicant with support for WPA and WPA2 (IEEE 802.11i/RSN (Robust Secure Network)). It is suitable for desktops, laptops and embedded systems.

wpa_supplicant is the IEEE 802.1X/WPA component that is used in the client

@modulitos
modulitos / .gitconfig
Last active August 29, 2015 14:07
.gitconfig
[user]
name = Luke Swart
email = lukeswart@gmail.com
[core]
editor = vim
[merge]
tool = kdiff3
[alias]
st = status
cm = commit
@modulitos
modulitos / .bashrc
Created October 17, 2014 09:19
.bashrc (remote)
# Set colorful prompt
# export PS1='\[\e[1;32m\][\u@\h \W]\$\[\e[0m\] '
# export PROMPT_DIRTRIM=2
export MYPS='$(echo -n "${PWD/#$HOME/~}" | awk -F "/" '"'"'{if (length($0) > 20) { if (NF>4) print $1 "/" $2 "/.../" $(NF-1) "/" $NF; else if (NF>3) print $1 "/" $2 "/.../" $NF; else print $1 "/.../" $NF; } else print $0;}'"'"')'
case "$TERM" in
"dumb")
PS1="> "
;;
xterm*|rxvt*|eterm*|screen*)
PS1='\[\e[1;32m\][\u@\h]$(eval "echo ${MYPS}")$\[\e[0m\] '
@modulitos
modulitos / .tmux.conf
Created October 17, 2014 09:17
tmux.conf (remote)
unbind C-b
set -g prefix C-z
bind-key z send-prefix
set-option -g history-limit 1000
setw -g mode-keys vi
# unbind [
# bind Escape copy-mode
unbind p
bind p paste-buffer