Skip to content

Instantly share code, notes, and snippets.

View b-ggs's full-sized avatar

boggs 🌊 b-ggs

View GitHub Profile
@b-ggs
b-ggs / rails-export-csv.rb
Created September 25, 2015 03:07 — forked from bcalloway/rails-export-csv.rb
Use FasterCSV to export an ActiveRecord object in Rails
### /config/environment.rb
config.gem 'fastercsv'
### /config/routes.rb
map.connect '/users/export', :controller => 'users', :action => 'export'
### /app/models/user.rb
# find all students and pass to controller export action for export to csv
def self.find_students
find_by_sql("select students.firstname, students.lastname, students.grade, students.homeroom, students.phone, students.email, students.relationship, users.firstname, users.lastname, accounts.school from students, users, accounts where students.user_id = users.id and accounts.id = users.account_id")
Atom config.
putangina gist-vim test
ag.vim l9 tcomment_vim vim-easymotion vim-jst webapi-vim
bufexplorer lightline.vim unite.vim vim-fugitive vim-pathogen YankRing.vim
ctrlp.vim mru vim-closer vim-hyperstyle vimproc.vim
gist-vim nerdtree vim-coffee-script vim-javascript vim-startify
Get window class or window role:
xprop | grep CLASS
xprop | grep ROLE
Plug values into i3 config:
for_window [class="#{CLASS_NAME}"] move container to workspace #{WORKSPACE}
for_window [window_role="#{WINDOW_ROLE}"] move container to workspace #{WORKSPACE}
https://discussions.apple.com/thread/6808549?start=0&tstart=0
Parameter settings:
LeftEdge = 117
RightEdge = 2827
TopEdge = 89
BottomEdge = 1575
FingerLow = 25
FingerHigh = 30
MaxTapTime = 180
MaxTapMove = 148
MaxDoubleTapTime = 100
gnome-tweak-tool
- Hinting: slight
- Antialiasing: rgba
freetype-freeworld from rpmfusion
@b-ggs
b-ggs / .fonts.conf
Created December 7, 2015 15:14 — forked from silv3rm00n/.fonts.conf
Tweak .fonts.conf for better looking fonts http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@b-ggs
b-ggs / .tmux.conf
Created December 8, 2015 06:46 — forked from jikkujose/.tmux.conf
Change prefix key in tmux to back-tick and still type back-ticks
unbind C-b
set-option -g prefix `
bind ` send-prefix