Skip to content

Instantly share code, notes, and snippets.

View arnebr's full-sized avatar

Arne Breitsprecher arnebr

View GitHub Profile
@weiland
weiland / checkin_request.md
Last active April 20, 2023 06:25
KCI Bahn
curl 'https://fahrkarten.bahn.de/mobile/dbc/xs.go?' -X POST \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0' -H 'Accept: */*' \
-H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' \
-H 'Referer: https://www.img-bahn.de/' -H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Origin: https://www.img-bahn.de' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: cross-site' \
--data-raw $'<?xml version="1.0" encoding="UTF-8"?>\n<rqorderdetails version="1.0"><rqheader tnr="1653325251391" ts="2022-05-23T19:00:51" l="de" v="19120000" os="KCI" app="KCI-Webservice"/><rqorder on="GCP344"/><authname tln="LeMe" csc="" cui=""/></rqorderdetails>'
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@jonathantneal
jonathantneal / README.md
Last active March 19, 2024 23:31
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"