Skip to content

Instantly share code, notes, and snippets.

View bludnic's full-sized avatar
:octocat:

bludnic

:octocat:
View GitHub Profile
GET /api/user HTTP/1.1
Host: testing.www.atlasbus.ru
Cookie: session=eyJhbGciOiJSUzI1NiIsImtpZCI6IjdUWDJldyJ9.eyJpc3MiOiJodHRwczovL3Nlc3Npb24uZmlyZWJhc2UuZ29vZ2xlLmNvbS9hdGxhcy1tb3JkYS10ZXN0aW5nIiwiYXVkIjoiYXRsYXMtbW9yZGEtdGVzdGluZyIsImF1dGhfdGltZSI6MTU4NTE1MTEyMSwidXNlcl9pZCI6Ijc5MTExMTExMTE5Iiwic3ViIjoiNzkxMTExMTExMTkiLCJpYXQiOjE1ODUxNTExMjIsImV4cCI6MTU4NjM2MDcyMiwiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6e30sInNpZ25faW5fcHJvdmlkZXIiOiJjdXN0b20ifX0.Zwex00KI_I6s_5LuMqhhsbxIqUOg3gJVkrb2MywlMNWhNMeFJDQMxyTVZBVsbdtwqvkjLmJ8unRs3Lis--obnpj1tQpmvJQBQBTPVkV7ylpLIQTxKoPOuS47Sjf75vfEqjswmlGX1f0h74MQKjBe7Yyz8nhmzN1S4VMNlKCGaS1s27AL7Vm0AdPRxTbaOIqqJtoA3Lmm8BFHi39nQMUew3Hn-MiBd3xvFL4tqLOz-KeFcL5A-48z9EEWt_bL2Y7QQS8fxhI69OpaliarOHoZYW1RDQGlYQUhKsPGTDmcZLxywVxc50PkwICfQ_zZo79lKmX9BBxRbwzsRQSeJ3E2UQ
{
"status": "expired",
"tickets": [
{
"id": "atlas:3816801",
"price": 550,
"data": {
"series": "3816801",
"id": "3816801",
"number": "3816801"
{
"status": "booked",
"tickets": [
{
"id": "atlas:3816813",
"price": 550,
"data": {
"series": "3816813",
"number": "3816813",
"id": "3816813"
type NewSaaSConfigDto = Omit<SaaSConfigDto, 'meta'> & {
meta: SaaSConfigMetaDto & {
driversURL: string;
driversIframeURL: string;
contactFormURL: string;
contactFormIframeURL: string;
termsIframeURL: string;
contactPhone: string;
};
};
{
"partner": "jaguar",
"meta": {
"domains": ["pinsk.testing.atlasbus.by", "localhost:3000"],
"logoURL": "https://storage.googleapis.com/testing.static.frontend.atls.cc/jaguar.svg",
"carriers": [
{
"carrierId": "77",
"connector": "atlas"
}
@bludnic
bludnic / m7.json
Created July 31, 2020 12:51
m7.json
{
"partner": "m7",
"meta": {
"domains": [
"beta.www.atlasbus.app",
"m7.by"
],
"logoURL": "https://storage.googleapis.com/static.frontend.atls.cc/saas/m7.by/m7.by.svg",
"billingID": 106,
"partnerID": "m7",
@bludnic
bludnic / atlas.json
Last active August 3, 2020 12:05
Atlas SaaS config
{
"partner": "atlas",
"meta": {
"domains": [
"atlasbus.ru",
"atlasbus.by"
],
"logoURL": "",
"billingID": 0,
"countries": [
@bludnic
bludnic / trip-body.json
Last active January 4, 2021 14:17
Carpool: Create trip body
{
"waypoints": [
{ "cityId": 625144, "stops": [{ "name": "Минский вокзал" }] },
{ "cityId": 625743, "stops": [{ "name": "Лепельский вокзал" }] },
{ "cityId": 620127, "stops": [{ "name": "Витебский вокзал" }] },
{ "cityId": 625665, "stops": [{ "name": "Могилевский вокзал" }] }
],
"legs": [
{ "fromCityId": 625144, "toCityId": 625665, "price": 730 },
{ "fromCityId": 620127, "toCityId": 625665, "price": 310 },
@bludnic
bludnic / linux-shortcuts.sh
Last active January 14, 2023 06:04
Enable ChromeOS keyboard shortcuts (like Ctrl + Space) in Linux apps
#!/bin/bash
# Enabling ChromeOS keyboard shortcuts in Linux apps
# @see https://www.reddit.com/r/Crostini/wiki/enable-chrome-shortcuts-in-linux-apps/#wiki_enabling_chrome_keyboard_shortcuts_in_linux_apps
#
# The following key shortcuts will be added:
#
# Super_L (known as Search Key or Launcher key)
# <Alt> + [
# <Alt> + ]
{
async createTransaction(address = '', amount = 0, fee) {
const unspents = await this.getUnspents()
// populate with txHex <--
for (const unspent of unspents) {
const txHex = await this._get(`/tx/${unspent.txid}/hex`)
unspent.txHex = txHex
}