https://blog.othree.net/log/2016/02/06/how-to-reduce-pdf-size/
Small size of PDF file generated from PSD, with real text(for accessibility) and good image quality.
var z = new Promise(); | |
z.catch( () => {} ).then(alwaysHandler); | |
// Empty function is required |
#!/bin/bash | |
# Stops accidental commits to master and develop. https://gist.github.com/stefansundin/9059706 | |
# Install: | |
# cd path/to/git/repo | |
# curl -fL -o https://gist.githubusercontent.com/othree/a5ad2dd81a5957a06867/raw/3abf8b2fbc9ce614af83e2522f23c163c78c97c6/Not%2520commit%2520to%2520master | |
# chmod +x .git/hooks/pre-commit | |
BRANCH=`git rev-parse --abbrev-ref HEAD` | |
if [[ "$BRANCH" == "master" ]]; then |
<?php | |
if ($_SERVER['HTTPS'] == on) { | |
$protocol = 'https'; | |
} else { | |
$protocol = 'http'; | |
} | |
header('Location: ' . $protocol . '://' . preg_replace('/g0b.tw$/', 'g0v.tw', $_SERVER['HTTP_HOST']) . $_GET['q'] , true, 301); |
#!/bin/bash | |
Q=85 | |
while [[ $# > 1 ]] | |
do | |
key="$1" | |
if [ $2 ] | |
then |
https://blog.othree.net/log/2016/02/06/how-to-reduce-pdf-size/
Small size of PDF file generated from PSD, with real text(for accessibility) and good image quality.
git log --oneline --graph --ancestry-path 3023de4...green |
sudo pacman -Syu | |
sudo pacman -S mercurial ncurses mariadb mariadb-clients fcgiwrap zsh git tig autoconf libtool pcre openssl neovim | |
# perl | |
sudo pacman -S clang base-devel | |
# clang | |
# https://wiki.archlinux.org/index.php/Clang |
{ | |
"@context":"http://schema.org", | |
"@type":"Event", | |
"name":"g0v Summit 2016 Conference", | |
"url":"http://summit.g0v.tw/2016/", | |
"startDate":"2016-05-14T09:00:00.000+08:00", | |
"endDate":"2016-05-15T17:40:00.000+08:00", | |
"location":{ | |
"@type":"EventVenue", | |
"name":"中研院人文社會科學館 / Social Sciences Building, Academia Sinica, Taipei, Taiwan", |
class Libbrotli < Formula | |
desc "Brotli library for decode and encode" | |
homepage "https://github.com/bagder/libbrotli" | |
url "https://github.com/bagder/libbrotli/archive/libbrotli-1.0.tar.gz" | |
sha256 "5b7c02eb87017e7b3886c07eca685db95fa21f9c8afbb442469370c251a54dc1" | |
option :universal | |
depends_on "libtool" => :build | |
depends_on "automake" => :build |
error_page 404 /about/404/; | |
location / { | |
root /var/www/blog; | |
index index.php; | |
location ~* \.(js|css|jpg|jpeg|gif|png|ico|xsl)$ { | |
location ~* \.(js|css|xsl)$ { | |
expires 1d; | |
} |