Skip to content

Instantly share code, notes, and snippets.

View alusiani's full-sized avatar

Alberto Lusiani alusiani

  • Italy
View GitHub Profile
@lvegro
lvegro / cfr-epicentro.csv
Last active April 30, 2021 10:23
CFR Epicentro
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 21 columns, instead of 13 in line 8.
data,d_0_9,d_10_19,d_20_29,d_30_39,d_40_49,d_50_59,d_60_69,d_70_79,d_80_89,d_90,c_0_9,c_10_19,c_20_29,c_30_39,c_40_49,c_50_59,c_60_69,c_70_79,c_80_89,c_90
30 Settembre 2020,4,0,15,70,318,1255,3602,9378,14695,6590,5898,11471,29286,30086,41486,52207,34327,28419,29232,13328
01 Ottobre 2020,4,0,15,70,318,1257,3604,9384,14705,6602,6062,11723,29653,30463,41847,52610,34546,28556,29291,13343
02 ottobre 2020,4,0,15,70,318,1258,3606,9391,14711,6605,6212,11936,30002,30820,42209,52970,34754,28696,29380,13388
03 ottobre 2020,4,0,15,70,318,1261,3606,9394,14717,6606,6316,12106,30282,31075,42461,53241,34942,28799,29420,13410
04 ottobre 2020,4,0,15,70,318,1261,3606,9397,14724,6612,6460,12419,30649,31417,42832,53614,35144,28931,29513,13451
05 ottobre 2020,4,0,15,70,318,1262,3608,9401,14729,6618,6610,12724,30974,31703,43155,53952,35355,29061,29620,13471
06 ottobre 2020,4,0,15,70,319,1263,3613,9409,14736,6621,6920,13209,31719,32314,43842,54715,35816,29377,29857,13535
07 Ottobre 2020,4,0,15,70,319,1263,3616,9416,14744,6625,7067,1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
anonymous
anonymous / rec.sh
Created October 21, 2012 14:06
record using ffmpeg
#!/bin/sh
INFO=$(xwininfo -frame)
WIN_GEO=$(echo $INFO | grep -oEe 'geometry [0-9]+x[0-9]+' |\
grep -oEe '[0-9]+x[0-9]+')
WIN_XY=$(echo $INFO | grep -oEe 'Corners:\s+\+[0-9]+\+[0-9]+' |\
grep -oEe '[0-9]+\+[0-9]+' | sed -e 's/+/,/' )
ffmpeg -f x11grab -y -r 15 -s $WIN_GEO -i :0.0+$WIN_XY -vcodec ffv1 -sameq -f alsa -ac 2\