画像サイズはthumbnail, medium, large, fullに加えアイキャッチが有効な場合はpost-thumbnailを指定できます。 (その他にも任意の幅、高さを配列で指定することも可)
- 画像サイズ(ダッシュボード > 設定 > メディア)
#!/bin/bash | |
# | |
# $ pararell-curl.sh --url=[url] | |
# $ pararell-curl.sh --url=[url] --thread=6 | |
# | |
LANG=C | |
LC_ALL=C | |
set -e |
// jQuery GC Helper - v0.9.5 | |
// | |
// Copyright (C) 2014 MURAOKA Taro | |
// Licensed under the MIT license. | |
(function(global, jQuery) { | |
var observer; | |
function callback(mutations) { |
#!/bin/bash | |
cd /usr/src | |
wget "http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Flame%2F&ts=1476009914&use_mirror=ufpr" -O lame-3.99.5.tar.gz | |
tar zxf lame-3.99.5.tar.gz | |
cd lame-3.99.5 | |
./configure --prefix=/usr/lame-3.99.5 --enable-static --disable-shared | |
make | |
make install |
#!/bin/bash -x | |
## https://github.com/major/MySQLTuner-perl | |
wget http://mysqltuner.pl/ -O mysqltuner.pl | |
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt | |
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv | |
chmod +x mysqltuner.pl |
## http://d-goo.hatenablog.com/entry/2013/07/30/124148 | |
for db in `find ~/ -name *.db`;do echo ${db};sqlite3 ${db} vacuum; sqlite3 ${db} reindex;done | |
// that is, navigate to the direct URL for an image hosted on the world wide web, then >>>INVOKE<<< | |
// i wanted the bookmarklet to redirect to the new direct image URL but that was out of scope! | |
javascript:void(window.location="http://api.imgur.com/2/upload.json?url="+encodeURIComponent(window.location.href)); |
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'cgi' | |
require 'open-uri' | |
require 'rubygems' | |
require 'zipruby' | |
require 'rmagick' | |
SUPPORT_FORMAT = /\.(png|jpg)$/ |
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'cgi' | |
require 'open-uri' | |
require 'rubygems' | |
require 'zipruby' | |
require 'RMagick' | |
require 'kconv' | |
require 'logger' | |
require 'amazon/aws' |
# Starting October 15, Dropbox has fucked all his CentOS 6 (and many other) users | |
# by changing OS requirements: | |
# ---- | |
# We are reaching out to let you know that device(s) which do not meet our new | |
# operating system requirements have been logged out of the Dropbox desktop | |
# application. Dropbox has ended support for Ubuntu 13.10 and below, and Fedora 20 | |
# and below. | |
# ... | |
# Your device(s) must now be on glibc 2.19 or higher to log back into the Dropbox | |
# desktop application |