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 / gist:9648491
Last active August 29, 2015 13:57
Deploy Padrino Apps On Anynines

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 March 26, 2014 18:43
Github Two-Factor Authentication Failed For HTTPS

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 August 18, 2014 05:40
Generated by SassMeister.com.
// ----
// 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) {
// ----
// 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) {
// ----
// 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 August 23, 2014 07:22
Draft of the chapter padrino vs the other frameworks
  • 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.

@wikimatze
wikimatze / gist:4a7d12cb130c4fbfce15
Created September 24, 2014 20:51
vim-lexical profiles
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 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 ...
@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-*
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.