image-filters
This file contains hidden or 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
| xrandr --output HDMI-1 --mode 1920x1080 --same-as eDP-1 |
This file contains hidden or 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
| ffmpeg -i k00_d.avi -c:v libx265 -crf 28 -c:a aac -b:a 128k -vf bwdif=1:-1:0 output.mp4 |
This file contains hidden or 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
| (defconstant EARTH_RADIUS 6378137.0) | |
| (defconstant HALF_OF_EQUATOR (* PI EARTH_RADIUS)) | |
| (defun tile-size (zoom) (/ (* 2 HALF_OF_EQUATOR) (expt 2 zoom))) | |
| (defun tile-envelope (x y z) | |
| (let ((size (tile-size z))) | |
| (list | |
| (+ (- HALF_OF_EQUATOR) (* x size)) | |
| (- (+ HALF_OF_EQUATOR) (* (+ y 1) size)) |
This file contains hidden or 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
| git rev-list --abbrev-commit --max-count=1 HEAD -- plugins/input/csv/ |
This file contains hidden or 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
| #include <tiffio.h> | |
| #include <unistd.h> | |
| #include <iostream> | |
| #include <memory> | |
| int main() | |
| { | |
| const char * dem = "/home/tlj/sandbox/world_robin_611m_ocean_hss20.tif"; |
This file contains hidden or 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
| import mapnik | |
| m=mapnik.Map(256,256) | |
| mapnik.load_map(m, 'style.xml') | |
| t = mapnik.create_mvt_merc(m, 75528, 47928, 17, style_level_filter=True, threading_mode=mapnik.threading_mode.async) | |
| m.layers[-1].datasource.params()['max_size'] |
This file contains hidden or 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
| #include <memory> | |
| #include <iostream> | |
| #include <gdal/gdal_priv.h> | |
| main() | |
| { | |
| GDALAllRegister(); | |
| const char * dem = "/home/talaj/dev/gdal-leak/world_aster2_srtmgl1_gmerc_38m_dfs40a.tif"; |
This file contains hidden or 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
| inkscape -z -e zvonice.png -w 128 zvonice.svg |
All honour goes to http://www.blaicher.com/2013/01/accessing-an-encrypted-full-disc-image-lukslvm/
So I typically use a full disc encryption with LVM over LUKS. So assume you have got an image from your harddisk via
dd if=/dev/sda of=image.img
NewerOlder