Skip to content

Instantly share code, notes, and snippets.

Avatar
✍️
Writing

Matthias Günther wikimatze

✍️
Writing
View GitHub Profile
@wikimatze
wikimatze / gist:9648491
Last active Aug 29, 2015
Deploy Padrino Apps On Anynines
View gist:9648491

Let's create a new application:

$ padrino g project hello-world-anynines-mysql -d activerecord -a mysql
    create
    create  .gitignore
    create  config.ru
    create  config/apps.rb
    create  config/boot.rb
@wikimatze
wikimatze / gist:9790374
Created Mar 26, 2014
Github Two-Factor Authentication Failed For HTTPS
View gist:9790374

I heard from GitHub Two-Factor Authentication](https://github.com/blog/1614-two-factor-authentication) nearly a couple of days ago when I was reading my RSS feed. I enabled it and couldn' push to any of my repositories anymore. Learn in this blog post how to fix it.

Two-Factor Authentication

"Is a process involving two stages to verify the identity of an entity trying to access services in a computer or in a network". Github solves this authentication with sending an SMS to a device which wants to push to their platform.

Enabling Two-Factor Authentication

@wikimatze
wikimatze / SassMeister-input.scss
Created Aug 18, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.1)
// ----
// Create a global map of users
$users: ();
// Add a new user to the global map
@mixin user($name, $availability, $infos) {
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.1)
// ----
// Create a global map of users
$users: ();
// Add a new user to the global map
@mixin user($name, $availability, $infos) {
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.0.rc.1)
// ----
// Create a global map of users
$users: ();
// Add a new user to the global map
@mixin user($name, $availability, $infos) {
@wikimatze
wikimatze / padrino_vs_the_rest.md
Created Aug 23, 2014
Draft of the chapter padrino vs the other frameworks
View padrino_vs_the_rest.md
  • Should care about making your decision about the Framework you want to use? There's a lot of folks who insist that people who don't know better should just use Rails for the amount of effort that goes into security in Rails, versus having to know about XSS, CSRF, SQL Injection, etc in Sinatra to add Rack Middleware etc to have those protections ...

  • Is Rails bad?

Many people nowadays say that Rails is bad. But why? The most told problem with is that it is bloated and not easy to learn in the beginning.

View gist:4a7d12cb130c4fbfce15
command -nargs=0 BookEnglisch call lexical#init({
\ 'spell': 1,
\ 'spelllang': ['en_us'],
\ 'dictionary': ['/usr/share/dict/words'],
\ })
command -nargs=0 BookGerman call lexical#init({
\ 'spell': 1,
\ 'spelllang': ['de_20'],
\ 'dictionary': ['~/.vim/spell/gerspchk.dict'],
@wikimatze
wikimatze / vim-book-writing
Created Sep 27, 2014
Notes of talk by wikimatze about "Plugins for writing a book with Vim"
View vim-book-writing
## What I need
- Highlight bad words
- fixing grammar
- move text around (folding)
- autocorrection during spelling
- check spelling
- detect repetition and bad grammar
- version control ...
@wikimatze
wikimatze / gist:3dc7a36d95eb1fcfa47e
Last active May 17, 2016
Draft of Deploying Padrino with Mina
View gist:3dc7a36d95eb1fcfa47e

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-*
View prompt_wikimatze_setup
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.