Skip to content

Instantly share code, notes, and snippets.

View Kirill888's full-sized avatar

Kirill Kouzoubov Kirill888

  • Canberra Australia
View GitHub Profile
@Kirill888
Kirill888 / get_cert.sh
Created March 1, 2015 01:28
prints server certificate
#!/bin/sh
exit_with_error () {
rr=$1; shift
>&2 echo "$@"
exit $rr
}
is_installed () {
cmd="$1"
@Kirill888
Kirill888 / ssl_generate.sh
Created March 6, 2015 12:23
Script to generate self-signed certificate with optional alt names
#!/bin/sh
crt_print_conf() {
CN="$1"
ALT_NAMES="$2"
cat <<EOF
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
#!/bin/sh
set -e
write_to () {
echo $2 | sudo tee $1 > /dev/null
}
set_rate () {
c=fclk$1
@Kirill888
Kirill888 / rasterio-reproject-failure.ipynb
Created May 24, 2017 00:56
rasterio reproject failure example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Kirill888
Kirill888 / cv2-test-remap.ipynb
Created November 22, 2017 04:32
Sub-pixel coordinates in CV2 remap function
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Kirill888
Kirill888 / rasterio-reproject-problems.ipynb
Created May 22, 2018 06:51
Reproject problems when loading multi-band geotiff with rasterio 1.0a12
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
---------------------------------------------------------------------------------------------------------
Tile: 8_7#1 | Tile: 8_7#1
- blocks : 512x512@uint16 | - blocks : 512x512@uint16
- nthreads: 1 | - nthreads: 49
- One Thread | - Highest Throughput
---------------------------------------------------------------------------------------------------------
3841b1595346c5529181962af8077098..4a0422bb | 3841b1595346c5529181962af8077098..4a0422bb
|
Files read : 1,278 | Files read : 1,278
Total data bytes : 493,405,576 | Total data bytes : 493,405,576
-------------------------------------------------------------
Tile: 8_7#1
- blocks : 512x512@uint16
- nthreads: 1
-------------------------------------------------------------
3841b1595346c5529181962af8077098..4a0422bb
Files read : 1,278
Total data bytes : 493,405,576
(excluding headers)