Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #!/bin/bash | |
| # | |
| # Convert an SVG file to a PDF file by using headless Chrome. | |
| # | |
| if [ $# -ne 2 ]; then | |
| echo "Usage: ./svg2pdf.bash input.svg output.pdf" 1>&2 | |
| exit 1 | |
| fi |
| WAYLAND_PROTOCOLS=/usr/share/wayland-protocols | |
| # wayland-scanner is a tool which generates C headers and rigging for Wayland | |
| # protocols, which are specified in XML. wlroots requires you to rig these up | |
| # to your build system yourself and provide them in the include path. | |
| xdg-shell-protocol.h: | |
| wayland-scanner server-header \ | |
| $(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@ | |
| xdg-shell-protocol.c: xdg-shell-protocol.h |
| // Creating Google’s “Material Design” in SCSS | |
| // (specifically Material Shadow, uses compass) | |
| // see: http://www.google.com/design/spec/layout/layout-principles.html#layout-principles-paper-craft | |
| // Demo: http://codepen.io/stoikerty/full/Glwxi/ | |
| // Animating Box-Shadow is EXPENSIVE: | |
| // http://www.html5rocks.com/en/tutorials/speed/high-performance-animations/#toc- | |
| // Moving between z-index-depths is done via opacity & multiple |
| require "active_record" | |
| namespace :db do | |
| db_config = YAML::load(File.open('config/database.yml')) | |
| db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'}) | |
| desc "Create the database" | |
| task :create do | |
| ActiveRecord::Base.establish_connection(db_config_admin) |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #!/bin/bash | |
| # This script will make a best-effort attempt at showing modifications | |
| # to package-provided config files on a Debian system. | |
| # | |
| # It's subject to some pretty significant limitations: most notably, | |
| # there's no way to identify all such config files. We approximate the | |
| # answer by looking first at dpkg-managed conffiles, and then hoping | |
| # that most of the time, if maintainer scripts are managing files | |
| # themselves, they're using ucf. So, DO NOT TRUST THIS SCRIPT to find |
| # unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D | |
| rails_env = ENV['RAILS_ENV'] || 'production' | |
| # 16 workers and 1 master | |
| worker_processes (rails_env == 'production' ? 16 : 4) | |
| # Load rails+github.git into the master before forking workers | |
| # for super-fast worker spawn times | |
| preload_app true |
| ActionView::Helpers::AssetTagHelper.register_javascript_expansion({ | |
| html5shiv: "http://html5shiv.googlecode.com/svn/trunk/html5.js", | |
| ie7js: "http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js", | |
| ie8js: "http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js", | |
| jquery: "http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" | |
| }) |