Skip to content

Instantly share code, notes, and snippets.

@horosin
horosin / README.md
Last active March 21, 2024 16:06
Extracting and Generating JSON Data with GPTs, LangChain, and Node.js
@horosin
horosin / jsbotuj.js
Created November 25, 2020 23:02
Bot for my brother
const puppeteer = require('puppeteer');
const url = process.argv[2];
if (!url) {
throw "Please provide URL as a first argument";
}
async function run () {
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
await page.goto(url);
const buttonid = "bdalej";
@horosin
horosin / README.md
Last active May 16, 2020 10:50
Prometheus node-exporter docker compose

Run Prometheus node-exporter with one-liner

wget https://gist.githubusercontent.com/horosin/a4cf47a269cfcb27417d100e49447132/raw/docker-compose.yml && sudo docker-compose up -d

Quickly install docker and compose (check the sh file before running!)

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
@horosin
horosin / README.md
Last active May 21, 2024 18:07
Chrome Remote Desktop on Debian Server

Chrome Remote Desktop on Debian/Ubuntu Server

Get a remote connection to your cloud server! This utility script by default installs XFCE, Chrome and Chrome Remote Desktop.

Based on this guide, made ready to install with one command and use xfce by default.

Steps:

  1. Install requirements (please check if the script is safe before you execute this command!)