Skip to content

Instantly share code, notes, and snippets.

View rugk's full-sized avatar
🤔
Thinking…

rugk rugk

🤔
Thinking…
View GitHub Profile
@rugk
rugk / mostPlantedCrops_top20_2014.yml
Created July 2, 2017 13:26
Top 20 most planted crops in 2014 worldwide, per country
# list of most produced/cultivated crops/fruits in the world
# source: Food and Agriculture Organization of the United Nations, http://www.fao.org/faostat/en/#data/QC
# created/parsed by script: https://github.com/rugk/crop-parser
# updated at: 2017-07-02
default: [Sugar cane, Potatoes, Sugar beet, Soybeans, Cassava, Tomatoes]
AE: [Dates, Tomatoes, Cucumbers and gherkins, Onions- shallots- green, Melons- other (inc.cantaloupes), Carrots and turnips, Pumpkins- squash and gourds, Potatoes, Chillies and peppers- green, Mangoes- mangosteens- guavas, Cabbages and other brassicas, Watermelons, Cauliflowers and broccoli, Spinach, Eggplants (aubergines), Okra, Beans- green, Lemons and limes, Lettuce and chicory, Almonds- with shell]
AF: [Grapes, Rice- paddy, Potatoes, Watermelons, Melons- other (inc.cantaloupes), Apricots, Apples, Sugar cane, Seed cotton, Cottonseed, Plums and sloes, Sesame seed, Almonds- with shell, Berries nes, Peaches and nectarines, Cotton lint, Anise- badian- fennel- coriander, Sugar beet, Walnu
@rugk
rugk / link.sh
Last active March 1, 2017 21:58
Threema Web Build Script

Routing:

  • route name
  • start longitude
  • start latitude
  • final longitude
  • final latitude
  • start direction X
  • start direction Y

Search

{
"favicon_generation": {
"api_key": "[TODO: Copy your API key here]",
"master_picture": {
"type": "inline",
"content": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAABmJLR0QA\/wD\/AP+gvaeTAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAB3RJTUUH4AcECRMcne3cNwAAFAFJREFUeNrt3V2sZeVZB\/DnXZ5hhvmACkSiHScldQjlY4JgImkLNEGNPZQLayQDxknRG03aURNBSzqNrZFGa6wYUrnqVEoLaRrTKG1ipBf9GEIv1AamQEH5mGKbIZTMMJxhmCEsL9ba+5wp87H3Ooez97P273\/zs4m2epYv7\/6v9X6UWIVcv\/Pu6779yDMPhoiIvGW5etsFv\/a1f\/zDb6zWf155yyeNuo4oJUiSq+dl7\/yFv9jzuT\/5m1QTyKU3fuq+fS8c2O63gIjI5HPW+rVPPf\/1T1441RPIpTfecd++Fw5uN\/OT5PR51oZ1Kz6RLHsCaV5VPf1g829VB0lyel3J7yTLmkDOet+f13VdRyklSJJ5PPTNvy0TmUBuvn33uQ889MSLZnSSzOsH3n3xeV+640M\/6TqBVOP+D7z79z9z+wMPPfFiXTf\/S5Akc\/pvex578dIbP3XfqjSQzfO7nnz58NGtPkiRpA\/sI08gb5\/f9fShw69d4G9Nkv3z7A1rn3r+63914Yq\/wto8v+vJQ4ePXhB1RCklSJL98uWF17Zunv\/4kyvaQDQPktRExp5Ams2BB7ZbrECSs+OW8992\/94v335T51dYN92+++f27T+wva6bf02SnA2f239g+8237z638wTytYce3x\/R1BqS5Gz5wJ7HX+w0gWye3\/WkmZgkZ9tN195WjzWBXL\/z7usOLry2tf04
{
"favicon_generation": {
"api_key": "[TODO: Copy your API key here]",
"master_picture": {
"type": "inline",
"content": "PHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xOTIgMTY2NGgyODh2LTI4OGgtMjg4djI4OHptMzUyIDBoMzIwdi0yODhoLTMyMHYyODh6bS0zNTItMzUyaDI4OHYtMzIwaC0yODh2MzIwem0zNTIgMGgzMjB2LTMyMGgtMzIwdjMyMHptLTM1Mi0zODRoMjg4di0yODhoLTI4OHYyODh6bTczNiA3MzZoMzIwdi0yODhoLTMyMHYyODh6bS0zODQtNzM2aDMyMHYtMjg4aC0zMjB2Mjg4em03NjggNzM2aDI4OHYtMjg4aC0yODh2Mjg4em0tMzg0LTM1MmgzMjB2LTMyMGgtMzIwdjMyMHptLTM1Mi04NjR2LTI4OHEwLTEzLTkuNS0yMi41dC0yMi41LTkuNWgtNjRxLTEzIDAtMjIuNSA5LjV0LTkuNSAyMi41djI4OHEwIDEzIDkuNSAyMi41dDIyLjUgOS41aDY0cTEzIDAgMjIuNS05LjV0OS41LTIyLjV6bTczNiA4NjRoMjg4di0zMjBoLTI4OHYzMjB6bS0zODQtMzg0aDMyMHYtMjg4aC0zMjB2Mjg4em0zODQgMGgyODh2LTI4OGgtMjg4djI4OHptMzItNDgwdi0yODhxMC0xMy05LjUtMjIuNXQtMjIuNS05LjVoLTY0cS0xMyAwLTIyLjUgOS41dC05LjUgMjIuNXYyODhxMCAxMyA5LjUgMjIuNXQyMi41IDkuNWg2NHExMyA
@rugk
rugk / emoji.md
Created June 21, 2016 21:22 — forked from mermop/emoji.md
For seeing what a pull request, story, or commit is about at a glance ✨

Emoji-based development classification scheme

For seeing what a pull request, story, or commit is about at a glance ✨

  • 🚩 - feature
  • 🐛 - bug
  • 🔥 - hotfix
  • 🐂 - yak shave
  • 🎨 - visual design change
  • 🛠 - chore
@rugk
rugk / README.md
Created June 16, 2016 20:31
Create Link headers for HTTP/2 Server push

This script creates headers of all files in a given directory to use them for HTTP/2 server push.

Usage: linkheader.sh /mydir

@rugk
rugk / downloadtest.py
Last active June 11, 2016 14:07
Python url download test
#!/usr/bin/env python
# LICENSE: CC0/Public Domain - To the extent possible under law, rugk has waived all copyright and related or neighboring rights to this work. This work is published from: Deutschland.
import sys
try:
from urllib.request import urlopen # Python 3
except ImportError:
from urllib2 import urlopen # Python 2
testurl = "https://..."
@rugk
rugk / mailvelope_providers.md
Last active February 16, 2016 20:51
E-mail providers using the Mailvelope API
@rugk
rugk / libsodiumdebug_version.php
Last active January 14, 2016 17:08
Libsodium version debug PHP
<?php
// check load state
if (extension_loaded('libsodium')) {
echo 'libsodium is loaded<br/>';
} else {
echo 'libsodium is not loaded<br/>';
exit;
}
// check version