Skip to content

Instantly share code, notes, and snippets.

View Lenart12's full-sized avatar

Lenart Kos Lenart12

View GitHub Profile
name,code,country,lat,lon,elev,style,rwdir,rwlen,rwwidth,freq,desc,userdata,pics
"Postojna",POSTOJNA,SI,4545.236N,01411.763E,532.0m,1,0,0.0m,0.0m,,,,""
"Kovk",KOVK,SI,4553.222N,01358.153E,898.0m,1,,0.0m,0.0m,,,,""
"CUW_1",CUW_1,,4553.426N,01424.324E,651.0m,1,,,,,,,""
"CUW_2",CUW_2,,4551.682N,01355.476E,86.0m,1,,,,,,,""
"CUW_3",CUW_3,,4535.935N,01413.308E,486.0m,1,,,,,,,""
-----Related Tasks-----
"TSK 110.1 / 114.3 FAI triangle","???","Postojna","CUW_1","CUW_2","CUW_3","Postojna","???"
Options,Short=false,MultiStart=false
ObsZone=0,Style=2,R1=3000m,A1=45
@Lenart12
Lenart12 / ddns_neoserv.sh
Last active December 21, 2023 23:52
OpenWRT DDNS client (ddns-scripts) update script for neoserv.si
#!/bin/sh
# /storitve/domena/uredizapis/[record_id]/[cart_id]
local __RECORD_ID=""
local __CART_ID=""
local __HOST=""
local __TTL=60
local __RRTYPE
local __ENDPOINT="https://moj.neoserv.si"
#!/bin/bash
# https://github.com/unegma/bash-functions/blob/main/update.sh
#get parameters
VERSION="$1"
#get highest tag number, and add 1.0.0 if doesn't exist
CURRENT_VERSION=`git describe --abbrev=0 --tags 2>/dev/null`
#include <iostream>
#include <random>
#include <vector>
#include <array>
#include <pthread.h>
#include <iostream>
#include <algorithm>
#include <deque>
#include <fstream>
# Add in crontab to run once per hour
import requests
import json
import jsondiff
import discord
from discord.ext import commands
import pprint
@Lenart12
Lenart12 / music_bot_example.py
Last active February 28, 2024 20:10 — forked from guac42/music_bot_example.py
A simple music bot written using discord.py rewrite and youtube_dl.
# -*- coding: utf-8 -*-
"""
Copyright (c) 2019 Valentin B.
A simple music bot written in discord.py using youtube-dl.
Though it's a simple example, music bots are complex and require much time and knowledge until they work perfectly.
Use this as an example or a base for your own bot and extend it as you want. If there are any bugs, please let me know.
Requirements:
Python 3.5+
pip install -U discord.py pynacl youtube-dl
======================
Proton: 1552061107 proton-3.16-8
SteamGameId: 774941
Command: ['/games/SteamLibrary/steamapps/common/Squad - Public Testing/squad_launcher.exe']
======================
ERROR: ld.so: object '/home/lenart/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/lenart/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/lenart/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/lenart/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
36473.612:0008:0009:trace:module:load_builtin_callback loaded ntdll.dll 0x1106f0 0x7bc10000
@Lenart12
Lenart12 / info
Created April 17, 2019 18:23
System information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 1400 Quad-Core Processor
CPU Family: 0x17