Skip to content

Instantly share code, notes, and snippets.

View spiritinlife's full-sized avatar

George Chailazopoulos spiritinlife

View GitHub Profile
@spiritinlife
spiritinlife / sofia
Created April 27, 2025 15:54
sofia things to do
🇧🇬 Sofia + Adventure Itinerary (May 1–4)
📅 May 1 (Thursday) — Explore Sofia Like a Local
Morning:
Brunch at Made in Home (super cozy, Bulgarian fusion).
Walk along Vitosha Boulevard (main pedestrian street — shopping, cafes, people-watching).
Visit Alexander Nevsky Cathedral — the iconic gold-domed church.
@spiritinlife
spiritinlife / fbmp1.json
Created March 26, 2025 15:28
Test Request payload to fbmp
[
{
"method": "UPDATE",
"data": {
"id": "r2z4p9",
"partner_seller_id": "r6njwz",
"title": "Αθλητικά μποτάκια με 10ποντο χοντρό σταθερό τακούνι (έχε",
"description": "Test description",
"price": "50.00 EUR",
"fb_product_category": "clothing & accessories > costumes > costume accessories > shoes",
@spiritinlife
spiritinlife / box-now-coverage-greece.geojson
Created May 18, 2023 10:16
box-now-coverage-greece.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spiritinlife
spiritinlife / greece-mainland.geojson
Created November 13, 2022 12:17
Mainland Greece geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
curl --location --request PUT 'https://tascourier.gr/hermes_api/courier/r18/4025019' \
> --header 'Cookie: PHPSESSID=73faa1c6080c304b2adfee75df0e3520' \
> --form 'p014="AKY"'
{"code":201,"data":{"nr01":"4025019","p01":"V-4025019"},"info":{"recperpage":9999999999,"page":0,"totalrec":0}}
curl --location --request GET 'https://tascourier.gr/hermes_api/courier/r18/4025023' \
> --header 'Cookie: PHPSESSID=73faa1c6080c304b2adfee75df0e3520'
{"code":200,"data":[{"nr01":"4025023","p01":"V-4025023","p015":"2022-07-08","p125":"","p126":"2","p04":"001","p014":"\u0395\u039a\u03a1","p0100":"","p0101":"\u0391\u039b\u0395\u039e\u0391\u039d\u0394\u03a1\u039f\u03a3 \u039a\u0391\u03a0\u03a0\u039f\u03a3","p0102":"\u03a0\u0391\u03a4\u0397\u03a3\u0399\u03a9\u039d 190","p0103":"\u0391\u0398\u0397\u039d\u0391","p0104":"\u0391\u03a4\u03a4\u0399\u039a\u0397","p0105":"001","p0106":"","p0107":"","p0108":"11257","p0109":"+306989679689","p0110":"","p0200":"","p0201":"\u03a0\u039f\u03a5\u03a0\u0391\u039d\u039a\u0391\u03a3 \u03a0\u039f\
requestedProducts = […..]; # input array of products we have to make
For next shift:
nextShiftProducts = []; # keeps track of current shift products
# as long as the sum of this shift products are less than 8 we can try to add another product
while sum(nextShiftProducts hours) < 8: 

for every requestedProducts:
if product.hours + sum(nextShiftProducts hours) < 8: # if we can add this product
add product to nextShiftProducts
remove product from requestedProducts
continue; # try to fill again remaining hours with another product
@spiritinlife
spiritinlife / yellowpages_serp_example.json
Created May 16, 2021 13:01
Yellowpages serp example
{
"has_next_page": true,
"listings": [
{
"ad_placement": null,
"ad_slot": null,
"address": [
"Dunkirk, MD 20754",
"10420 Southern Maryland Blvd"
],
{
"has_next_page": true,
"listings": [
{
"ad_placement": "above_search",
"ad_slot": "0",
"address": "60 Main St",
"is_ad": true,
"name": "Stonehill Dental",
"profile_url": "https://www.yelp.com/biz/stonehill-dental-oswego",
{
"address": "109 S Batavia Ave Batavia, IL 60510",
"is_listing_claimed": false,
"is_paid_advertiser": false,
"reviews_count": 6,
"reviews_rating": 4,
"task_id": "test",
"task_url": "https://www.yelp.com/biz/batavia-family-dental-batavia-5?osq=emergency+dentist",
"version": "listing_3",
"website": "bataviadentaloffice.com",
@spiritinlife
spiritinlife / opentok_dummy_creds.json
Last active January 26, 2021 09:56
opentok_dummy_creds
{
"token" : "T1==cGFydG5lcl9pZD00NTgyODA2MiZzaWc9MmZhMDgzNDIzNzdjOWIyZmFhN2U4MDVmZDQyZmU4MGEzNTdlMmFkYTpzZXNzaW9uX2lkPTFfTVg0ME5UZ3lPREEyTW41LU1UWXhNVFkxTXpZd05EYzROSDRyVm5WdmNHMHpURTlhY1dkSk5WbDJVVmRDT1ZKQ2JVWi1VSDQmY3JlYXRlX3RpbWU9MTYxMTY1NDI1MiZub25jZT0wLjE2MDY2OTE4NDU2MjMyNzYmcm9sZT1wdWJsaXNoZXImZXhwaXJlX3RpbWU9MTYxMTc0MDY1Mg==",
"session_id" : "1_MX40NTgyODA2Mn5-MTYxMTY1MzYwNDc4NH4rVnVvcG0zTE9acWdJNVl2UVdCOVJCbUZ-UH4"
}