Skip to content

Instantly share code, notes, and snippets.

View wikimatze's full-sized avatar
💭
Writing

Matthias Günther wikimatze

💭
Writing
View GitHub Profile
$ 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
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!"
@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
hello_world_get:
request:
path: /hello/world
methods: ['GET']
headers:
Content-Type: text/html
Cookie: @[email protected]()
response:
content: |
Hello4080837 {{ request.query.get('name') }}!
hello_world_get:
request:
path: /hello/world
methods: ['GET']
headers:
Content-Type: text/html
Cookie: userId: 4080837
response:
content: |
Hello4080837 {{ request.query.get('name') }}!
@wikimatze
wikimatze / recap.md
Last active February 21, 2016 16:51
Recap of vimberlin meetup February 2016 (http://vimberlin.de/february-2016-meetup)
  • wikimatze has adapted "mucks" in his fork and make it possible to run several tmux session at ones without using the sockets option
  • lervag/vimtex: A vim plugin that provides support for writing LaTeX. Nice toggling, nice support for various PDF viewer and continous building
  • clever-f.vim: Extended f, F, t, and T mappings - results will be highlighted and press the buttons again to repeat the search clever-f plugin neoyank
  • Shougo/neoyank.vim: add documentation for the action-append option
  • teamviewer.com/: is great when Mac machines forget their MiniDisplay-Port so that they can display their screen on the machine, which is connected to the beamer
date author email categories tags title
2016-01-13
Matthias Guenther
ruby update
padrino sinatra ruby website
History of Padrinos website redesign

History of Padrinos website redesign

function prompt_wikimatze_precmd {
git-info
}
function prompt_wikimatze_setup {
setopt LOCAL_OPTIONS
unsetopt XTRACE KSH_ARRAYS
prompt_opts=(cr percent subst)
# Load required functions.
@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 / vim-book-writing
Created September 27, 2014 12:52
Notes of talk by wikimatze about "Plugins for writing a book with Vim"
## What I need
- Highlight bad words
- fixing grammar
- move text around (folding)
- autocorrection during spelling
- check spelling
- detect repetition and bad grammar
- version control ...