Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am wesrog on github.
  • I am wesrog (https://keybase.io/wesrog) on keybase.
  • I have a public key whose fingerprint is 5846 84FE 118C 2222 475A 5482 A16D 8980 9345 AE7E

To claim this, I am signing this object:

@wesrog
wesrog / arch_linux_dell_xps_L322X.md
Last active July 19, 2022 20:21
Arch Linux setup steps on a Dell XPS 13 (L322X)

Get product name/model

❯ cat /sys/class/dmi/id/product_name
XPS L322X

Auto-connect to network

set nocompatible
syntax on
filetype plugin indent on
set exrc " enable per-directory .vimrc files
set secure " disable unsafe commands in local .vimrc files
set expandtab shiftwidth=4 tabstop=4 colorcolumn=100
set smarttab ai nosmartindent
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="minimal"
smtpd() {python -m smtpd -n -c DebuggingServer localhost:25}
plugins=(git git-extras brew fabric osx pip redis-cli rbenv terminalapp)
source $ZSH/oh-my-zsh.sh
set-option -g default-command "reattach-to-user-namespace -l zsh"
set-option -g default-shell $SHELL
# remap prefix to Control + a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# force a reload of the config file
defscrollback 10000
#terminfo and termcap for nice 256 color terminal
## allow bold colors - necessary for some reason
attrcolor b ".I"
## tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm"
termcapinfo xterm-color "Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm"
## erase background with current bg color
defbce "on"
// collection (or Forum)
topic = {
id: 1
name: 'Don\'t you hate it when...',
message: 'People write posts like this?',
ts: '2013-06-14 12:33:00'
replies: [
{
author: 'nik',
message: 'Yeh! Really bothers me!',
// ==UserScript==
// @name Discogs Block Seller
// @description One of most requested features on discogs.com is to have the ability to block sellers. This script will hide items listed for sale from these blocked sellers.
// @include http://www.discogs.com/sell/mywants*
// @include http://www.discogs.com/sell/list?release_id=*
// V1.0 July 2010 by iamdek
// V1.1 June 2011 - skips blank pages
// ==/UserScript==
@wesrog
wesrog / .ackrc
Last active December 14, 2015 19:49
--ignore-dir=dst
--type-set=SQL=.sql
--noSQL
--type-set=css=.scss
--type-set=html=.mail