Skip to content

Instantly share code, notes, and snippets.

View wikimatze's full-sized avatar
💭
Writing

Matthias Günther wikimatze

💭
Writing
View GitHub Profile
@wikimatze
wikimatze / csv
Created March 13, 2016 16:25
CSV for mapping old padrinorb entries to new website
http://padrinorb.com/blog/addressing-concerns-about-padrino/,http://padrinorb.com/blog/addressing-concerns-about-padrino/
http://padrinorb.com/blog/fikus-cms/,http://padrinorb.com/blog/fikus-cms/
http://padrinorb.com/blog/hosting-our-first-padrino-meetup-in-san-francisco/,http://padrinorb.com/blog/hosting-our-first-padrino-meetup-in-san-francisco/
http://padrinorb.com/blog/json-gem-vulnerability/,http://padrinorb.com/blog/json-gem-vulnerability/
http://padrinorb.com/blog/looking-at-projects-using-padrino/,http://padrinorb.com/blog/looking-at-projects-using-padrino/
http://padrinorb.com/blog/new-website/,http://padrinorb.com/blog/new-website/
http://padrinorb.com/blog/o-reilly-sinatra-up-and-running-book/,http://padrinorb.com/blog/o-reilly-sinatra-up-and-running-book/
http://padrinorb.com/blog/padrino-0-10-0-routing-upgrades-rbx-and-jruby-support-and-minor-breaking-changes/,http://padrinorb.com/blog/padrino-0-10-0-routing-upgrades-rbx-and-jruby-support-and-minor-breaking-changes/
http://padrinorb.com/blog/padr
project :test => :shoulda, :renderer => :haml, :stylesheet => :sass, :script => :jquery, :orm => :activerecord
#default routes
APP_INIT = <<-APP
get "/" do
"Hello World!"
end
get :about, :map => '/about_us' do
render :haml, "%p This is a sample blog created to demonstrate the power of Padrino!"
$ padrino g admin
WARN: Unresolved specs during Gem::Specification.reset:
activesupport (>= 3.1)
sinatra (~> 1.4.6)
mustermann19 (>= 0)
thor (~> 0.18)
rack (>= 0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
force .components
$ padrino-gen project sample_blog -t shoulda -e haml -c sass -s jquery -d activerecord -b
create
create .gitignore
create config.ru
create config/apps.rb
create config/boot.rb
create public/favicon.ico
create public/images
create public/javascripts
create public/stylesheets
@wikimatze
wikimatze / gist:3dc7a36d95eb1fcfa47e
Last active May 17, 2016 16:32
Draft of Deploying Padrino with Mina

Tools and installation

Virtualbox for managing virtual machines:

$ wget http://download.virtualbox.org/virtualbox/4.3.18/virtualbox-4.3_4.3.18-96516~Ubuntu~raring_amd64.deb && sudo dpkg -i virtualbox-*
@wikimatze
wikimatze / cmus.md
Created January 5, 2017 20:10
Vimberlin talk

cmus and vim

author : Matthias Günther date : 2017/01/19

cmus

  • small, fast and powerful console music player for Unix-like operating systems
ALBUM_PATH=/$(cmus-remote -Q | grep file | cut -d'/' --complement -s -f1 | rev | cut -d'/' --complement -s -f1 | rev | sed -e 's/\s/\\ /g' | sed -e 's/(/\\(/g' | sed -e 's/)/\\)/g')/cover.jpg
ALBUM_NAME=$(cmus-remote -Q | grep 'tag album' | cut -d'~' --complement -f1)
echo "$ALBUM_PATH"
notify-send -i "$ALBUM_PATH" summary "$ALBUM_NAME"
@wikimatze
wikimatze / why_padrino.md
Last active March 27, 2017 16:02
Why Padrino

Before you dig into a new framework you ask yourself: "Why should I invest time in learning a new framework?". I will not answer this with "it depends" (of course it depends on your situation) but rather provide you with all the information so that you can decide.

First let's have a brief look at Rack, Sinatra, Padrino, Rails.

What is Rack?

# About your project
Your project name: padrino
Your project blurb:
Links to places we can find out more about your project:
- http://padrinorb.com/
- https://github.com/padrino
# About you and your staff
Your nick: wikimatze