Skip to content

Instantly share code, notes, and snippets.

View fidel's full-sized avatar

Szymon Fiedler fidel

View GitHub Profile
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'nokogiri'
gem 'playlist'
end
require 'open-uri'
require 'uri'

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@fidel
fidel / .zshrc
Created February 17, 2013 09:09
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
class ToHaml
def initialize(path)
@path = path
end
def convert!
Dir["#{@path}/**/*.erb"].each do |file|
`html2haml -rx #{file} #{file.gsub(/\.erb$/, '.haml')}`
puts "#{file}"
File.delete(file)
@fidel
fidel / gist:4970659
Created February 17, 2013 08:27
zsh
https://github.com/sorin-ionescu/prezto
<% if notice %>
<p id="notice"><%= notice %></p>
<% end %>
<h1><%= t('.title_html') %></h1>
<%= form_tag search_path, method: :get do %>
<p>
<%= text_field_tag :search, params[:search] %>
<%= submit_tag "Search", :name => nil %>
</p>
@fidel
fidel / link
Created February 10, 2013 17:06
Dla moich kursantów, zrobiłem to w ~ 45 na czystym systemie, z instalacją Ruby i reszty stuffu :)
@fidel
fidel / config
Last active December 15, 2017 07:10
.ssh/config
# .ssh/config
# ... other stuff
Host *
Compression yes
ForwardAgent yes
TCPKeepAlive yes
Protocol 2
CREATE DATABASE depot_production DEFAULT CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON depot_production.* TO 'yoursqluser'@'localhost' IDENTIFIED BY 'password';
EXIT;
@fidel
fidel / deploy.rb
Last active December 12, 2015 09:09
# config/deploy.rb
require 'bundler/capistrano'
# be sure to change these
set :user, 'rubys'
set :domain, 'depot.pragprog.com'
set :application, 'depot'
# adjust if you are using RVM, remove if you are not
require "rvm/capistrano"
set :rvm_ruby_string, '1.9.3'