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.
setfacl -m u:http:rw $SSH_AUTH_SOCK | |
setfacl -m u:http:x $(dirname $SSH_AUTH_SOCK) | |
sudo -u http -s /bin/sh -c "env SSH_AUTH_SOCK=$SSH_AUTH_SOCK git pull" |
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; | |
} |
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 |
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 |
{ | |
"@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", |
git log --oneline --graph --ancestry-path 3023de4...green |
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.
#!/bin/bash | |
Q=85 | |
while [[ $# > 1 ]] | |
do | |
key="$1" | |
if [ $2 ] | |
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); |
defaults write com.apple.screencapture disable-shadow -bool true | |
killall SystemUIServer |