Skip to content

Instantly share code, notes, and snippets.

@StandardNerd
StandardNerd / gist:cf031919c6724c25ca82bad335e1ed92
Created December 16, 2022 08:05 — forked from jatcwang/gist:ae3b7019f219b8cdc6798329108c9aee
List of all setxkbmap configuration options (including models/layout/etc)
! model
pc101 Generic 101-key PC
pc102 Generic 102-key (Intl) PC
pc104 Generic 104-key PC
pc105 Generic 105-key (Intl) PC
dell101 Dell 101-key PC
latitude Dell Latitude series laptop
dellm65 Dell Precision M65
everex Everex STEPnote
flexpro Keytronic FlexPro
@StandardNerd
StandardNerd / gist:489b6f7928f27096c126cdd44a3c5434
Created December 16, 2022 08:05 — forked from jatcwang/gist:ae3b7019f219b8cdc6798329108c9aee
List of all setxkbmap configuration options (including models/layout/etc)
! model
pc101 Generic 101-key PC
pc102 Generic 102-key (Intl) PC
pc104 Generic 104-key PC
pc105 Generic 105-key (Intl) PC
dell101 Dell 101-key PC
latitude Dell Latitude series laptop
dellm65 Dell Precision M65
everex Everex STEPnote
flexpro Keytronic FlexPro
@StandardNerd
StandardNerd / vim_8_build
Last active September 3, 2022 07:44 — forked from Pompeu/vim_8_build
Building Vim 8 from source.
1.
sudo apt-get install libncurses5-dev libgtk2.0-dev libatk1.0-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python3-dev ruby-dev lua5.1 lua5.1-dev libperl-dev
2.
sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common vim-nox
3.
cd ~
git clone https://github.com/vim/vim.git
cd vim
@StandardNerd
StandardNerd / gist:70226c8857c829d4bca5fc1514c0f15b
Created November 17, 2021 09:13 — forked from coffeemug/gist:6168031
The fun of implementing date support
After spending the better part of the month implementing date support
in RethinkDB, Mike Lucy sent the team the following e-mail. It would
have been funny, if it didn't cause thousands of programmers so much
pain. Read it, laugh, and weep!
-----
So, it turns out that we're only going to support dates between the
year 1400 and the year 10000 (inclusive), because that's what boost
supports.
@StandardNerd
StandardNerd / gvim.md
Created December 13, 2018 13:09
gvim installation instructions

Vim Install/Compile

Debian/Ubuntu Machines

Tested on

  • Ubuntu v12.04 LTS
  • Ubuntu v12.10
  • Ubuntu v13.xx
  • Ubuntu v14.04 LTS
@StandardNerd
StandardNerd / capybara cheat sheet
Last active October 20, 2016 13:09 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@StandardNerd
StandardNerd / vhost.sh
Created November 1, 2009 18:25 — forked from trey/vhost.sh
#!/bin/sh
ME=your-username
DIR=/Users/$ME/Sites/$1
if [ ! -d $DIR ]
then
sudo -u $ME mkdir $DIR
sudo -u $ME touch $DIR/index.php
echo "<h1>$1</h1>" >> $DIR/index.php
fi