Skip to content

Instantly share code, notes, and snippets.

View roadhouse's full-sized avatar

Jean Uchôa roadhouse

View GitHub Profile
@fnando
fnando / controller_made_by_unicorns.rb
Created September 2, 2012 14:25
Just a refactored controller that uses a custom responder instead of those nasty respond_to blocks.
class NotesController < ApplicationController
self.responder = NotesResponder
def create
@page = Page.find(params[:page_id])
@note = page.notes.create(params[:note])
respond_with(@note, :location => page_path(@page))
end
end
@rogerleite
rogerleite / gemfile_inline.rb
Created July 3, 2015 14:21
Template for ruby script with Gemfile inline and thor to map actions and arguments
#!/usr/bin/env ruby
begin
require "bundler/inline"
rescue LoadError => e
puts "You should install bundler with >= 1.10.3 version."
puts "* Current Ruby: #{`ruby -v`}"
puts "* Current Bundler: #{`gem list bundler`}"
puts "* Original Exception: \"#{e.message}\""
exit 1
@matthewjberger
matthewjberger / instructions.md
Last active November 7, 2024 17:51
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

##################################################
# Packages
# $ sudo apt install -y xclip grc gobuster rlwrap evil-winrm powercat seclists peass raven
# Install flatpak
# -> https://www.kali.org/docs/tools/flatpak/
# urlencode:
# $ sudo apt install gridsite-clients
# Python2 pip
# $ sudo sh -c "curl https://bootstrap.pypa.io./pip/2.7/get-pip.py | python2"
# Cool Hollywood screensaver ❤️