Install prerequisites
brew install pkg-config autoconf automake libtool nasm
Download latest source from https://github.com/mozilla/mozjpeg/releases/latest
cd
#!/usr/bin/env bash | |
set -uo pipefail | |
# Usage: ./patience [max_attempts] <command> [args...] | |
# Example: ./patience 5 ./run-flaky-test.sh | |
# This script retries a command up to a specified number of times if it fails. | |
# If the first argument is a number, treat it as max attempts | |
if [[ $# -gt 0 && "$1" =~ ^[0-9]+$ ]]; then |
#!/usr/bin/env ruby | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'json', require: false | |
gem 'nap', require: 'rest' | |
gem 'cocoapods', '~> 0.34.1' | |
end |
Year | MSCI World | Inflation Germany | Net Growth | |
---|---|---|---|---|
1970 | -1.98% | 3.1% | -5.08% | |
1971 | 19.56% | 4.7% | 14.86% | |
1972 | 23.55% | 4.6% | 18.95% | |
1973 | -14.51% | 6.6% | -21.11% | |
1974 | -24.48% | 7.2% | -31.68% | |
1975 | 34.50% | 5.4% | 29.10% | |
1976 | 14.71% | 3.2% | 11.51% | |
1977 | 5.00% | 3.9% | 1.10% | |
1978 | 18.22% | 2.4% | 15.82% |
# https://github.com/rakyll/hey | |
./hey https://google.com | |
Summary: | |
Total: 0.8679 secs | |
Slowest: 0.5881 secs | |
Fastest: 0.0710 secs | |
Average: 0.1778 secs | |
Requests/sec: 230.4501 |
Install prerequisites
brew install pkg-config autoconf automake libtool nasm
Download latest source from https://github.com/mozilla/mozjpeg/releases/latest
cd
TimeMachine using cron and rsync ;-) | |
Backs up in two intervals: 10 and 60 minutes | |
$ crontab -l | |
*/10 * * * * rsync -a -q --delete ~/projects/ ~/Desktop/projects10/ | |
0 * * * * rsync -a -q --delete ~/projects/ ~/Desktop/projects60/ |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# This script reproduces the issue with artifacts when | |
# handling (semi)transparent PNG files: | |
# https://github.com/python-pillow/Pillow/issues/1449 | |
# Version used: | |
# |
One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {
require 'benchmark' | |
class Guesstimator | |
@@instances={} | |
attr_accessor :total_operations | |
attr_accessor :remaining_operations | |
attr_reader :exp_moving_average |
# | |
# Generate curl command from a Typhoeus request. | |
# | |
# Example: | |
# | |
# > request = Typhoeus::Request.post("http://example.com", {body: "fine stuff"}).request | |
# > TyphoeusToCurl.new.to_curl(request) | |
# | |
# => "curl 'http://example.com' -X POST -H \"User-Agent: Typhoeus" -d 'fine stuff' --compressed" | |
# |