This script creates headers of all files in a given directory to use them for HTTP/2 server push.
Usage: linkheader.sh /mydir
This script creates headers of all files in a given directory to use them for HTTP/2 server push.
Usage: linkheader.sh /mydir
{ | |
"favicon_generation": { | |
"api_key": "[TODO: Copy your API key here]", | |
"master_picture": { | |
"type": "inline", | |
"content": "PHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xOTIgMTY2NGgyODh2LTI4OGgtMjg4djI4OHptMzUyIDBoMzIwdi0yODhoLTMyMHYyODh6bS0zNTItMzUyaDI4OHYtMzIwaC0yODh2MzIwem0zNTIgMGgzMjB2LTMyMGgtMzIwdjMyMHptLTM1Mi0zODRoMjg4di0yODhoLTI4OHYyODh6bTczNiA3MzZoMzIwdi0yODhoLTMyMHYyODh6bS0zODQtNzM2aDMyMHYtMjg4aC0zMjB2Mjg4em03NjggNzM2aDI4OHYtMjg4aC0yODh2Mjg4em0tMzg0LTM1MmgzMjB2LTMyMGgtMzIwdjMyMHptLTM1Mi04NjR2LTI4OHEwLTEzLTkuNS0yMi41dC0yMi41LTkuNWgtNjRxLTEzIDAtMjIuNSA5LjV0LTkuNSAyMi41djI4OHEwIDEzIDkuNSAyMi41dDIyLjUgOS41aDY0cTEzIDAgMjIuNS05LjV0OS41LTIyLjV6bTczNiA4NjRoMjg4di0zMjBoLTI4OHYzMjB6bS0zODQtMzg0aDMyMHYtMjg4aC0zMjB2Mjg4em0zODQgMGgyODh2LTI4OGgtMjg4djI4OHptMzItNDgwdi0yODhxMC0xMy05LjUtMjIuNXQtMjIuNS05LjVoLTY0cS0xMyAwLTIyLjUgOS41dC05LjUgMjIuNXYyODhxMCAxMyA5LjUgMjIuNXQyMi41IDkuNWg2NHExMyA |
{ | |
"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 |
#!/bin/sh | |
# This is a wrapper for more convenient built of Threema Web. | |
# constants | |
CURR_DIR="$( pwd )" | |
SERVE_DIR="$CURR_DIR/serve" | |
SOURCE="threema-web" | |
SOURCE_DIR="$CURR_DIR/$SOURCE" | |
# get user input |
# 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 |
354 Tomatoes | |
306 Cabbages and other brassicas | |
290 Onions- dry | |
276 Tobacco- unmanufactured | |
276 Cucumbers and gherkins | |
264 Carrots and turnips | |
260 Beans- dry | |
248 Chillies and peppers- green | |
240 Watermelons | |
240 Sweet potatoes |
# Is vegetarianism (and veganism) a thing in this country? | |
default: false | |
# Source: https://en.wikipedia.org/wiki/Vegetarianism_by_country | |
# (decending sorted by percentage of vegetarians) | |
# Last updated: Aug 2017 | |
IN: true | |
IL: true | |
AU: true | |
NZ: true | |
SE: true |
#!/bin/sh | |
# | |
# THanks to https://unix.stackexchange.com/a/394763/146739, there are alos some alternatives | |
# | |
# returns all active users currently logged in | |
getActiveUsers() { | |
for sessionid in $(loginctl list-sessions --no-legend | awk '{ print $1 }'); do | |
session=$( loginctl show-session "$sessionid" ) | |