I hereby claim:
- I am kfei on github.
- I am kfei (https://keybase.io/kfei) on keybase.
- I have a public key ASBqABPMn4hnjXBn2PWO0agEIH4aBQoD7rqrykOtLG576go
To claim this, I am signing this object:
#!/bin/bash | |
docker run -it --rm --privileged --net host \ | |
-v /tmp/.X11-unix:/tmp/.X11-unix \ | |
-v $PWD:$HOME/workspace \ | |
-v $HOME/.Xauthority:$HOME/.Xauthority \ | |
-e HOME=$HOME \ | |
-e DISPLAY=$DISPLAY \ | |
--entrypoint /usr/sbin/ffmpeg \ | |
kfei/ffmpeg $* |
# Resolve all dependencies for packages that are going to be installed | |
for pkg in "virt-top cifs-utils redhat-lsb"; do repoquery --requires --resolve --recursive $pkg | grep -vE "i686" > dep-for-$pkg.log | |
# For a .rpm file, resolving dependencies can be `rpm -qpR mediawiki-1.4rc1-4.i586.rpm` | |
# Remove duplicates | |
awk '!x[$0]++' `cat dep-for-$pkg.log` > all-deps.log | |
# Extract package name from .deb file name | |
awk -F ":" '{print $1}' all-deps.log | sed -e 's/-[[:digit:]]\+$//g' > deps.log |
(pprof) top10 | |
130ms of 130ms total ( 100%) | |
Showing top 10 nodes out of 11 (cum >= 80ms) | |
flat flat% sum% cum cum% | |
60ms 46.15% 46.15% 60ms 46.15% math.Sqrt | |
20ms 15.38% 61.54% 80ms 61.54% github.com/kfei/sshcam/img2xterm.cie94 | |
20ms 15.38% 76.92% 20ms 15.38% runtime.usleep | |
10ms 7.69% 84.62% 10ms 7.69% retake | |
10ms 7.69% 92.31% 10ms 7.69% runtime.cas64 | |
10ms 7.69% 100% 10ms 7.69% runtime.nanotime |
# -*- coding: utf-8 -*- | |
# Define here the models for your scraped items | |
# | |
# See documentation in: | |
# http://doc.scrapy.org/en/latest/topics/items.html | |
import scrapy | |
# Create new array | |
mdadm --zero-superblock /dev/sd{a,b} | |
mdadm -C --level 1 /dev/md1 -n 2 /dev/sda2 /dev/sdb2 | |
# Save to mdadm.conf since it will be used in initramfs for assembling arrays | |
mdadm --detail --scan >> /etc/mdadm.conf | |
# Make new file system and then migrate data | |
rsync -avxHAXS -P / /mnt/md1 |
// With naturalWidth, naturalHeight | |
myImage.addEventListener('onload', function() { | |
console.log('My width is: ', this.naturalWidth); | |
console.log('My height is: ', this.naturalHeight); | |
}); | |
// Without naturalWidth, naturalHeight | |
function realImgDimension(img) { | |
var i = new Image(); | |
i.src = img.src; |
I hereby claim:
To claim this, I am signing this object: