Skip to content

Instantly share code, notes, and snippets.

View bludnic's full-sized avatar
:electron:
Developing open-source 🌐

bludnic

:electron:
Developing open-source 🌐
View GitHub Profile
@bludnic
bludnic / opentrader-bot-architecture.md
Last active August 30, 2024 20:44
OpenTrader Bot Architecture Overview
@bludnic
bludnic / use-native-chromeos.md
Created April 30, 2024 23:19
Open links with native ChromeOS browser from Linux container

That's what I had to use after installing a few other browsers in Linux. Apparently one of them had reset some of the settings. Garcon_host_browser is the link application which will pass the URL to be opened to the Chrome browser on the ChromeOS side.

unset BROWSER
xdg-settings set default-web-browser garcon_host_browser.desktop
sudo xdg-settings set default-web-browser garcon_host_browser.desktop
@bludnic
bludnic / youtube-unsubscribe.js
Created January 5, 2024 05:49
Unsubscribing from all YouTube channels
function findElements(textContent, selector = "*") {
const elements = document.querySelectorAll(selector);
return Array.prototype.slice
.call(elements)
.filter((el) => el.textContent === textContent);
}
function findElement(textContent, selector = "*") {
const elements = findElements(textContent, selector);
@bludnic
bludnic / NODES_VERSIONS.md
Created December 8, 2023 04:31
Nodes version endpoints
{
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
}
@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> + ]
@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 / 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 / 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",
{
"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"
}