https://github.com/tylertreat/comcast
Name | Latency | Bandwidth | Packet-loss |
---|---|---|---|
Offline | 0 | 0 | 100% |
3G | 250 | 750 | 15% |
2G | 300 | 250 | 15% |
2021/01/15 17:57:27 [INFO] Terraform version: 0.14.2 | |
2021/01/15 17:57:27 [INFO] Go runtime version: go1.15.2 | |
2021/01/15 17:57:27 [INFO] CLI args: []string{"/Users/sample-user/usr/local/Cellar/tfenv/2.0.0/versions/0.14.2/terraform", "providers", "lock", "-platform=darwin_amd64", "-platform=linux_amd64"} | |
2021/01/15 17:57:27 [DEBUG] Attempting to open CLI config file: /Users/sample-user/.terraformrc | |
2021/01/15 17:57:27 Loading CLI configuration from /Users/sample-user/.terraformrc | |
2021/01/15 17:57:27 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2021/01/15 17:57:27 [DEBUG] ignoring non-existing provider search directory /Users/sample-user/.terraform.d/plugins | |
2021/01/15 17:57:27 [DEBUG] ignoring non-existing provider search directory /Users/sample-user/Library/Application Support/io.terraform/plugins | |
2021/01/15 17:57:27 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins | |
2021/01/15 17:57:27 [INFO] CLI command args: []string{"pr |
#!/usr/bin/env python | |
import objc | |
import sys | |
import os.path | |
import ctypes.util | |
import collections | |
from AppKit import NSPasteboard, NSImage, NSBitmapImageRep, NSPasteboardTypeTIFF | |
from Quartz.CoreGraphics import CGRectMake |
https://github.com/tylertreat/comcast
Name | Latency | Bandwidth | Packet-loss |
---|---|---|---|
Offline | 0 | 0 | 100% |
3G | 250 | 750 | 15% |
2G | 300 | 250 | 15% |
var e = document.createElement('script'); | |
e.type = 'text/javascript'; | |
e.charset='UTF-8'; | |
e.src = 'https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js'; | |
document.body.appendChild(e); | |
function repFun() { | |
if (typeof html2canvas !== 'function') { | |
setTimeout(repFun); | |
} else { | |
html2canvas(document.body, { |
#!/bin/bash | |
HOMEBREW_PREFIX="$(brew --prefix)" | |
cp $HOMEBREW_PREFIX/local/opt/dnsmasq/dnsmasq.conf.example $HOMEBREW_PREFIX/local/etc/dnsmasq.conf | |
cp $HOMEBREW_PREFIX/local/opt/dnsmasq/homebrew.mxcl.dnsmasq.plist $HOME/Library/LaunchAgents/. | |
launchctl bootstrap gui/$(id -u) $HOME/Library/LaunchAgents/homebrew.mxcl.dnsmasq.plist > /dev/null 2>&1 |
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby | |
# SET YOUR_HOME TO THE ABSOLUTE PATH OF YOUR HOME DIRECTORY | |
# chmod +x install.rb | |
# ./install.rb | |
YOUR_HOME = ENV['HOME'] | |
HOMEBREW_PREFIX = ENV['HOMEBREW_PREFIX'] || "#{YOUR_HOME}/usr/local" | |
HOMEBREW_CACHE = "#{YOUR_HOME}/Library/Caches/Homebrew" | |
HOMEBREW_REPO = 'https://github.com/Homebrew/homebrew' |
class Integer | |
N_BYTES = [42].pack('i').size | |
N_BITS = N_BYTES * 16 | |
MAX = 2 ** (N_BITS - 2) - 1 | |
MIN = -MAX - 1 | |
UNSINED_MAX = -MIN + MAX | |
UNSINED_MIN = 0 | |
end | |
p Integer::MAX #=> 4611686018427387903 |
" 行番号の表示 | |
set nu | |
" 右下に表示される行・列の番号を表示 | |
set ruler | |
" 自動インデントを有効にする | |
set autoindent | |
" タブを表示する時の幅 |
iOS系の便利ライブラリ
そろそろiOSで開発本腰入れようと思って、便利なライブラリたちを色々挙げてみました。
##フィルタライブラリ:GPUImage 爆速のフィルターライブラリ
##画像選択:ELCImagePickerController UIImagePickerでかつ複数の画像を選択できるライブラリ