Skip to content

Instantly share code, notes, and snippets.

View fewaltix's full-sized avatar

Felix Walther fewaltix

View GitHub Profile
@fewaltix
fewaltix / GWcodes.py
Last active May 18, 2022 18:36
Python dict for Gleditsch & Ward (G&W) country codes & ISO3166-3 (ISO3) codes - missing values are countries that did not exist in 1974 or after and thus have no ISO3 code
GWcodes = {
711: np.nan,
511: np.nan,
817: 'VNM',
680: 'YEM',
265: 'DDR',
315: 'CZE',
345: 'YUG',
396: np.nan,
700: 'AFG',
@fewaltix
fewaltix / FakePDFScanCreator.desktop
Last active July 8, 2022 09:45 — forked from andyrbell/scanner.sh
Desktop file for linux machines with graphical dialogs based on the scanner.sh script to make a pdf look scanned using ImageMagick
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Categories=Office
Terminal=true
Exec=bash -c 'convert -density 150 "$(zenity --file-selection --title="Select Input File" --file-filter=*[PpDdFf])" -rotate "$([ $((RANDOM % 2)) -eq 1 ] && echo -)0.$(($RANDOM % 4 + 5))" -attenuate 0.4 +noise Multiplicative -attenuate 0.03 +noise Multiplicative -sharpen 0x1.0 -colorspace Gray "$(zenity --file-selection --save --title="Select Output File" --filename ".pdf")"'
Name=FakeScan-Creator
Icon=utilities-terminal