Skip to content

Instantly share code, notes, and snippets.

Xft.autohint: 0
Xft.dpi: 96
Xft.antialias: true
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
@jaysonrowe
jaysonrowe / .vimrc
Last active December 15, 2015 10:48
first attempt a .vimrc in a long time.
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)
set nocompatible
" use indentation of previous line
set autoindent
@jaysonrowe
jaysonrowe / trim
Created March 1, 2013 21:59
Trim script
#!/bin/sh
LOG=/var/log/trim.log
echo "*** $(date -R) ***" >> $LOG
fstrim -v / >> $LOG
fstrim -v /home >> $LOG
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# git commamands simplified
alias gst='git status'
alias gco='git checkout'
alias gci='git commit'
alias grb='git rebase'
alias gbr='git branch'
alias rot13='tr a-zA-Z n-za-mN-ZA-M'
export PS1='\[\033[1;34m\]\t\[\033[0m\] \[\033[1;35m\]\u\[\033[0m\]:\[\033[1;35m\]\W\[\033[0m\] \[\033[1;92m\]$(__git_ps1 "(%s)")\[\033[0m\]$ '
@jaysonrowe
jaysonrowe / output.txt
Created November 15, 2012 03:31
ruby output
Loaded suite gmail_test
Started
..
Finished in 10.522909003 seconds.
2 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
@jaysonrowe
jaysonrowe / gmail_test.rb
Created November 15, 2012 03:22
Checking Gmail with Selenium Webdriver in Ruby
require 'rubygems'
require 'selenium-webdriver'
require 'test-unit'
class GmailLoginTest < Test::Unit::TestCase
def setup
@driver = Selenium::WebDriver.for :firefox
@driver.get "http://www.gmail.com"
end
@jaysonrowe
jaysonrowe / output
Created November 12, 2012 03:25
output
testLogin (__main__.TestGmail) ... ok
----------------------------------------------------------------------
Ran 1 test in 5.115s
OK
@jaysonrowe
jaysonrowe / test_gmail.cs
Created November 12, 2012 03:19
Checking Gmail with Selenium Webdriver in C#
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
namespace TestingSeleniumGmail
{
[TestClass]
public class FillFormIntegrationTest
{