start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env bash | |
| hostname=`hostname` | |
| emaildomain='' | |
| alertemail='' | |
| mailgunapikey='' | |
| # max capacity % before getting capacity alert | |
| maxCapacity=80 |
| # Gemfile | |
| group :development do | |
| gem "better_errors" | |
| gem "binding_of_caller" | |
| end | |
| # config/boot.rb, after Bundler.require(:default, RACK_ENV) | |
| if Padrino.env == :development | |
| require 'better_errors' | |
| Padrino::Application.use BetterErrors::Middleware |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <% sitemap_resources.each do |r| %> | |
| <url> | |
| <loc><%= sitemap_path(r) %></loc> | |
| <priority><%= sitemap_priority(r) %></priority> | |
| </url> | |
| <% end %> | |
| </urlset> |
| #! /bin/bash | |
| TIMESTAMP=$(date +"%F") | |
| BACKUP_DIR="./$TIMESTAMP" | |
| MYSQL_USER="backup" | |
| MYSQL_PASSWORD="" | |
| mkdir $BACKUP_DIR | |
| databases=`mysql --user=$MYSQL_USER -p$MYSQL_PASSWORD -e "SHOW DATABASES;" | grep -Ev "(Database|information_schema|performance_schema)"` |
| var http = require('http') | |
| , sys = require('sys') | |
| , server | |
| ; | |
| server = http.createServer(function(req, res) { | |
| var echo = {} | |
| ; | |
| echo.headers = JSON.stringify(req.headers, true, 2); |
| doctype html | |
| html.no-js | |
| head | |
| meta charset="utf-8" | |
| meta content="IE=edge" http-equiv="X-UA-Compatible" | |
| title Title | |
| meta content="width=device-width,initial-scale=1" name="viewport" | |
This is a Jekyll plugin for creating YouTube or Vimeo embed codes.
Put the plugin file video-embeds.rb in your _plugins directory. Create a tag specifying the type
of video you want to embed with the first required argument, the video id.
{% youtube ab1234ab1 %}| http_path = '/' | |
| css_dir = 'assets/stylesheets' | |
| sass_dir = 'assets/sass' | |
| images_dir = 'assets/images' | |
| javascripts_dir = 'assets/javascripts' | |
| relative_assets = true | |
| preferred_syntax = :sass |