author : Matthias Günther date : 2017/01/19
- 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" |
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.
$ padrino g project blog-update -t rspec -e haml -c scss -s jquery -d sequel -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 |
$ padrino g admin | |
force .components | |
create admin | |
exist admin | |
create admin/controllers/base.rb | |
create admin/controllers/sessions.rb | |
create public/admin | |
create public/admin/images/favicon.ico | |
create public/admin/images/font/FontAwesome.otf | |
create public/admin/images/font/fontawesome-webfont.eot |
# 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 |
Sweetie is a plugin for to get statistics for jekyll and
middleman projects. The statistics includes the unique number of all links,
images, pages, and the last build time of the given project. You can specify the location the generated files
(normally _site
for jekyll and build
for middleman apps) and of the config
file where the changes
will be written.
It can also grab the last changes of your bitbucket repositories. You can then use the information on various places in your project
require 'rspec' | |
require 'rake' | |
require 'sequel' | |
namespace :sql do | |
task :migrate do | |
Sequel::extension :migration | |
Sequel::Migrator.run Sequel::Model.db, 'db/migrate', :target => 0 | |
Sequel::Migrator.run Sequel::Model.db, 'db/migrate' | |
end |
require 'minitest' | |
require "minitest/autorun" | |
require "minitest/focus" | |
require 'rake' | |
require 'sequel' | |
require 'mocha/mini_test' | |
require 'padrino-core' | |
require 'pry' | |