Skip to content

Instantly share code, notes, and snippets.

View zerosoul13's full-sized avatar

Angel Rodriguez zerosoul13

  • Vancouver, British Columbia, Canada
  • 01:10 (UTC -07:00)
View GitHub Profile
@zerosoul13
zerosoul13 / inject.py
Created October 5, 2022 00:06
test loki messages
#!/usr/bin/python3
import datetime
import pytz
import json
import requests
from faker import Faker
fake = Faker()
def getEmployees(count: int) -> list:
@zerosoul13
zerosoul13 / gist:d92aa97c3c7d72d39dbfb1f942de11e1
Created November 11, 2021 17:27
carbon-relay-ng configuration
instance = "%HOST%"
max_procs = 8 # original value is 4
admin_addr = "0.0.0.0:2004"
http_addr = "0.0.0.0:8081"
spool_dir = "/var/spool/%HOST%"
pid_file = "/home/relay/carbon-relay-ng.pid"
# one of critical error warning notice info debug
log_level = "info"
@zerosoul13
zerosoul13 / autoselect.sh
Created February 27, 2019 02:34
xrand sets resolution at i3 startup
#!/bin/bash
# Get connected monitor
OUTPUT=$( xrandr --query | grep " connected" | cut -d" " -f1)
# Get resolution
MODE=$(xrandr --query | grep " connected" | cut -d" " -f1-4 | sed s/+0//g | awk '{print $4}')
# Set output and mode and enjoy
xrandr --output $OUTPUT --mode $MODE