Skip to content

Instantly share code, notes, and snippets.

Brian Smith Lytol

Block or report user

Report or block Lytol

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View domains.txt
http://facebook.com/
http://twitter.com/
http://google.com/
http://youtube.com/
http://wordpress.org/
http://adobe.com/
http://blogspot.com/
http://wikipedia.org/
http://linkedin.com/
http://wordpress.com/
@Lytol
Lytol / csgo.md
Last active Dec 28, 2015
Counter-Strike:GO Server
View csgo.md

Game Modes

  • Classic Casual - game_type 0 game_mode 0
  • Classic Competitive - game_type 0 game_mode 1
  • Arms Race - game_type 1 game_mode 0
  • Demolition - game_type 1 game_mode 1
  • Deathmatch - game_type 1 game_mode 2

General

@Lytol
Lytol / IRSSI Cheat Sheet.md
Last active Dec 29, 2017
IRSSI Cheat Sheet
View IRSSI Cheat Sheet.md

General

  • /quit – Quit IRSSI

Windows

  • option+# – Navigate to specified window
  • ctrl-n – Navigate to next window
  • ctrl-p – Navigate to previous window
@Lytol
Lytol / gist:5015688
Last active Dec 14, 2015
Beginner's Guide to Vim
View gist:5015688
View appconfig.rb
require 'yaml'
module MyRailsApp
module Config
extend self
def [](key)
hash[key.to_sym]
end
@Lytol
Lytol / gist:1065962
Created Jul 5, 2011
Body tag helper that sets class and id based on controller/action
View gist:1065962
def body_tag(&blk)
controller_name = controller.class.to_s.underscore.gsub(/_controller$/, '').gsub(/\//,'_')
action_name = controller.action_name.underscore.gsub(/_/,'-')
content_tag(:body, :id => "#{controller_name}-#{action_name}", :class => controller_name, &blk)
end
View gist:1047900
[core]
editor = /usr/bin/vim
[alias]
st = status
br = branch
d = diff
ci = commit -v
cia = commit -v -a
co = checkout
cp = cherry-pick
View .autotest
begin
require 'autotest/growl'
Autotest::Growl::image_dir = File.join(ENV['HOME'], '.autotest-growl')
Autotest::Growl::hide_label = true
Autotest::Growl::clear_terminal = false
rescue LoadError
puts "No Growl support -- gem install autotest-growl"
end
View gist:1002818
TARGET=pomodoro
MCU=attiny13
CC=/usr/bin/avr-gcc
CFLAGS=-g -Os -Wall -mcall-prologues -mmcu=$(MCU)
OBJ2HEX=/usr/bin/avr-objcopy
AVRDUDE=/usr/bin/avrdude
program : $(TARGET).hex
sudo $(AVRDUDE) -c usbtiny -p$(MCU) -U flash:w:$(TARGET).hex
View application_controller_spec.rb
require 'spec_helper'
describe ApplicationController do
controller do
def public; head :ok; end
end
it "should be successful" do
get :public
response.should be_ok
You can’t perform that action at this time.