Skip to content

Instantly share code, notes, and snippets.

View andreyev's full-sized avatar
💭
.

Andreyev Dias de Melo andreyev

💭
.
View GitHub Profile
[
{
"targets": [
"prometheus.io"
],
"labels": {
"__meta_datacenter": "london",
"__meta_prometheus_job": "node"
}
}
@andreyev
andreyev / sos
Last active June 12, 2025 14:33
429147289
923802499
worker_processes auto;
rtmp_auto_push on;
events {}
rtmp {
server {
listen 1935;
listen [::]:1935 ipv6only=on;
application live {
live on;
#!/bin/bash
set -e
sudo apt update && sudo apt upgrade -y
sudo apt install -y guake git screen jq unzip curl gnupg ca-certificates lsb-release software-properties-common build-essential procps file
curl -fsSL https://get.docker.com | sudo bash
sudo usermod -aG docker $1
curl -s "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
@andreyev
andreyev / gh-update.sh
Last active August 8, 2025 19:50
gh-update.sh
#!/bin/bash
set -e
THIS_ORG=$(cat .org_name)
GIT_SERVER=$((test -f .git_server && cat .git_server) || echo github.com)
for VAR in GH_TOKEN THIS_ORG; do
test -v ${!VAR} && ( echo "$VAR not set, exiting..."; exit 1)
done
@andreyev
andreyev / gist-update.sh
Last active July 2, 2025 13:17
gist-update.sh
#!/bin/bash
set -e
[[ -s .gist_id ]] || ( echo "No gist id found"; exit 1)
# .gist_id file format: '5230a387ba343d103d9b414be2215a55:gh-update.sh'
export GIST_ID=$(cat .gist_id)
STATUS_CODE=$(curl -w "%{http_code}" -s https://gist.githubusercontent.com/andreyev/${GIST_ID%%:*}/raw/${GIST_ID##*:} -o run.sh)
if [[ ${STATUS_CODE} != "200" ]]; then