Skip to content

Instantly share code, notes, and snippets.

Avatar

Luke Swart modulitos

View GitHub Profile
@modulitos
modulitos / userChrome.css
Created Apr 21, 2019
~/.mozilla/<user>.default/chrome/userChrome.css
View 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;
View beginner's org file
* 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
View reinit_multiscreen
#!/bin/bash
# Restarts Bumblebee for multi-screen functionality.
tee /proc/acpi/bbswitch <<<ON
modprobe bbswitch
optirun true
intel-virtual-output
xrandr
View term_multiscreen
#!/bin/bash
# Initializes Bumblebee for multi-screen functionality.
xorg_process=$(ps aux | grep 'Xorg' | awk '{print $2}')
kill -15 $xorg_process
rmmod nvidia
tee /proc/acpi/bbswitch <<<OFF
View init_multiscreen
#!/bin/bash
# Initializes Bumblebee for multi-screen functionality.
modprobe bbswitch
optirun true
intel-virtual-output
xrandr
View first.js
// var swarm = require('discovery-swarm')
// var sw = swarm({
// dns: {
// server: [
// 'discovery1.publicbits.org',
// 'discovery2.publicbits.org'
// ]
// },
// dht: true
// })
View emacs test init file
;; 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 Aug 13, 2015
data! from editdata.org!
View data.csv
asdf fes
yup! it works!
@modulitos
modulitos / forms2accounts.md
Last active Aug 29, 2015
Ideas for a module that automatically handles account generation/updates from forms
View forms2accounts.md

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

View wpa_supplicant.asciidoc

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

You can’t perform that action at this time.