Skip to content

Instantly share code, notes, and snippets.

@giuseppeM99
giuseppeM99 / README.md
Created February 1, 2023 09:38
Stazioni Italiane

Lista stazioni italiane

Questo gits contiene un file csv con le informazioni delle stazioni prese da viaggiatreno.it Script per il dump dei dati: https://github.com/roughconsensusandrunningcode/TrainMonitor

Lo script posizioneStazioni.py sfrutta i dati presenti su wikipedia per completare le informazioni laddove viaggiatreno.it non dovesse fornirle Lo script è rilasciato sotto licenza GPLv3

Descrizione contenuto stations.csv

<?php
/**
* HashUtils
* Decode and encode telegram file ids, inline message ids and more
* This code is under GPLv3 license, see <https://www.gnu.org/licenses/#GPL>.
*
* @author Sys-001 <https://github.com/sys-001>
* @author Giuseppe Marino <https://github.com/giuseppeM99/>
* @copyright 2018 Sys-001
@giuseppeM99
giuseppeM99 / peer.py
Last active October 17, 2020 14:20
Wireguard telegram bot
'''
BSD 2-Clause License
Copyright (c) 2020, Giuseppe Marino
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
@giuseppeM99
giuseppeM99 / telegram_unpack.lua
Created July 3, 2020 00:57
Lua telegram unpack util
--[[
BSD 2-Clause License
Copyright (c) 2020, Giuseppe Marino
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
@giuseppeM99
giuseppeM99 / parsemessage.php
Last active December 31, 2019 18:26
PHP TG Entity parser (LEGACY)
<?php
function parseHTML($text, $entities)
{
if (empty($entities)) {
return htmlspecialchars($text);
}
$bo = mb_convert_encoding("<b>", "UTF-16LE");
$bc = mb_convert_encoding("</b>", "UTF-16LE");
$io = mb_convert_encoding("<i>", "UTF-16LE");
$ic = mb_convert_encoding("</i>", "UTF-16LE");

Keybase proof

I hereby claim:

  • I am giuseppem99 on github.
  • I am giuseppem99 (https://keybase.io/giuseppem99) on keybase.
  • I have a public key ASCaduVD1M9jbxpuyl5evy3uiw4C8B8aJ8t0hF2XlcqvvQo

To claim this, I am signing this object:

#NGINX PWRTelegram Config
#Author: Giuseppe Marino [@giuseppeM99]
#Author Docker: Michael [@lilmayyo]
#Docker url: https://hub.docker.com/r/houna/pwrt/
upstream pwr {
server unix:/var/run/php/php7.1-fpm.sock;
}
server {