Skip to content

Instantly share code, notes, and snippets.

View smellman's full-sized avatar

Taro Matsuzawa aka. btm smellman

View GitHub Profile
smellman / gist:3803a106b2acec2b69015066981a32a5
Created April 13, 2024 12:12
linux benchmark 2024/04/13-2
❯ ./diskspd -Zr -b1M -d5 -o8 -t1 -W0 -Sd -w100 -L ./SEQ1M_Q8T1.dat
Command Line: ./diskspd -Zr -b1M -d5 -o8 -t1 -W0 -Sd -w100 -L ./SEQ1M_Q8T1.dat
System info:
processor count: 16
caching options: fua=0
Input parameters:
smellman / gist:0f96989282317086afcea8b428cb3943
Created April 13, 2024 12:10
linux benchmark 2024/04/13-1
❯ ./diskspd -c1G -Zr -b1M -d5 -o8 -t1 -W0 -Sd -w0 -L ./SEQ1M_Q8T1.dat
Command Line: ./diskspd -c1G -Zr -b1M -d5 -o8 -t1 -W0 -Sd -w0 -L ./SEQ1M_Q8T1.dat
System info:
processor count: 16
caching options: fua=0
Input parameters:
smellman / geojson_to_epsg3857.rb
Created August 8, 2023 10:54
GeoJSON (FeatureCollection) to EPSG:3857
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'rgeo'
require 'rgeo/geo_json'
require 'rgeo/proj4'
require 'optparse' do |opts|
opts.banner = 'Usage: geojson_to_epsg3857.rb [options]'
<!DOCTYPE html>
<link href='' rel='stylesheet' />
<script src=''></script>

SRTM Contour to vector tile

Download SRTM Contour from OpenDEM Project


for y in `seq -w 0 85`;
wget -O $ALL_TEXT $URL
records=(`cat $ALL_TEXT | tr -s '?' ' '`)
for record in "${records[@]}"; do
smellman / .env
Created July 20, 2021 12:07
openmaptiles .env file
# This file defines default environment variables for all images
# Layers definition and meta data
# Use 3-part patch version to ignore patch updates, e.g. 5.0.0
# Make sure these values are in sync with the ones in .env-postgres file
ffmpeg -thread_queue_size 512 -f alsa -i hw:2,0 -f v4l2 -s 1280x720 -i /dev/video1 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -g 20 -b:v 2000k -acodec aac -b:a 128k -threads 0 -f flv rtmp://
smellman / Dockerfile
Created July 1, 2021 23:53
pandoc/latex + eisvogel template
FROM pandoc/latex:
ARG eisvogel_version=2.0.0
RUN tlmgr install luatexja
RUN tlmgr install haranoaji haranoaji-extra
RUN tlmgr install adjustbox babel-german background bidi collectbox csquotes everypage filehook footmisc footnotebackref framed fvextra letltxmacro ly1 mdframed mweights needspace pagecolor sourcecodepro sourcesanspro titling ucharcat ulem unicode-math upquote xecjk xurl zref || exit 1
RUN tlmgr install selnolig || exit 1
RUN mkdir -p /templates/eisvogel \
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.