QEMU version: 2.2.0
HDD init: qemu-img create -f qcow debian8-arm64.img 10G
Netinstall initrd: http://ftp.ru.debian.org/debian/dists/jessie/main/installer-arm64/20150107/images/netboot/debian-installer/arm64/initrd.gz
Netinstall kernel: wget http://ftp.ru.debian.org/debian/dists/jessie/main/installer-arm64/20150107/images/netboot/debian-installer/arm64/linux
Netinstall start:
qemu-system-aarch64 -machine virt -cpu cortex-a57 -nographic -smp 1 -m 512 -kernel linux -initrd initrd.gz -append "root=/dev/ram console=ttyAMA0" -global virtio-blk-device.scsi=off -device virtio-scsi-device,id=scsi -drive file=debian8-arm64.img,id=rootimg,cache=unsafe,if=none -device scsi-hd,drive=rootimg -netdev user,id=unet -device virtio-net-device,netdev=unet -net user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "-fflags +genpts" - add this to regenerate packet timestamps (in case of error "Can't write packet with unknown timestamp") | |
./ffmpeg -fflags +genpts -i "/media/nfs/Nostromo/video/Japan Sinks (Nihon Chinbotsu) 1973 - WMV/NihonChinbotsu_1973.wmv" -acodec copy -vcodec copy ~/Desktop/NihonChinbotsu_1973.mkv |
Simply try below command after you have added your submodules.
for git v 1.8.x
git submodule update --init --recursive --remote
for v1.7.x:
git submodule update --init --recursive or git pull --recurse-submodules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu -o pipefail | |
# https://github.com/docker/libnetwork/issues/779#issuecomment-231727303 | |
# this fixes docker unable to start due to ip address conflict | |
echo "Adding default route to $route_vpn_gateway with /0 mask..." | |
ip route add default via $route_vpn_gateway |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -I -X OPTIONS \ | |
-H "Origin: http://EXAMPLE.COM" \ | |
-H 'Access-Control-Request-Method: GET' \ | |
http://EXAMPLE.COM/SOMETHING 2>&1 | grep -i 'Access-Control-Allow-Origin' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!#/usr/bin/env bash | |
# from https://stackoverflow.com/questions/36584122/docker-how-can-i-get-the-list-of-dependent-child-images | |
for i in $(docker images -q) | |
do | |
docker history $i | grep -q d69bc9d9b016 && echo $i | |
done | sort -u |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shortform git commands | |
alias g='git' | |
# get a list of all commit messages for a repo | |
git log --pretty=format:'%s' | |
# push changes to an empty git repository for the first time | |
git push --set-upstream origin master | |
# delete first 10 branches of remote excluding master |
I hereby claim:
- I am brotich on github.
- I am brotich (https://keybase.io/brotich) on keybase.
- I have a public key ASCxtmBLb7Heg-iJN9uQEt3EFi_xzQq_6me03WWyP9wUPQo
To claim this, I am signing this object:
takes '3 hours 10 minutes ago'
and convert to actual time