Skip to content

Instantly share code, notes, and snippets.

View khongi's full-sized avatar

Khongor Bayarsaikhan khongi

View GitHub Profile
@khongi
khongi / krakenx.service
Created January 2, 2024 12:56
KrakenX service
[Unit]
Description=Kraken AIO startup service
[Service]
Type=oneshot
User=root
ExecStart=/usr/local/bin/colctl --mode CoveringMarquee --color0 0,239,255 --color1 255,73,146 --color_count 2 --animation_speed 0 -c 0,239,255 --fan_speed "(20,25),(30,25),(40,80),(50,100)" --pump_speed "(20,60),(30,60),(40,70),(50,100)"
[Install]
WantedBy=multi-user.target
@khongi
khongi / .zshrc
Created April 23, 2021 07:34
Unraid Zsh with persistent config
# This is your .zshrc, put it in /boot/config/extra/
export ZSH="/root/.oh-my-zsh"
ZSH_THEME="robbyrussell"
DISABLE_UPDATE_PROMPT="true"
plugins=(
zsh-autosuggestions
@khongi
khongi / krakenx.service
Created November 14, 2020 19:41
Auto configuration for NZXT Kraken X62 using https://github.com/KsenijaS/krakenx
[Unit]
Description=krakenx automatic configuration
[Service]
Type=simple
ExecStartPre=/usr/bin/env colctl -ch text --color_count 1 --color0 0,255,255 -m Solid
ExecStart=/usr/bin/env colctl -as 4 -ch ring --color_count 2 --color0 255,0,255 --color1 0,255,255 -m Chaser -ps 60 -fs 25
[Install]
WantedBy=default.target
@khongi
khongi / ddclient.conf
Created March 16, 2020 22:15
Update cloudflare DNS via ddclient on docker
daemon=300
syslog=yes
ssl=yes
use=web
protocol=cloudflare, \
zone=<DOMAIN e.g. example.com>, \
ttl=0, \
login=<CLOUDFLARE LOGIN EMAIL>, \
password=<CLOUDFLARE GLOBAL API KEY> \
domain.com,otherdomain.com,sub.domain.com
@khongi
khongi / .env
Last active February 19, 2024 02:37
Sonarr + Radarr + Jackett + qBittorrent + ddclient cloudflare DNS update + Traefik reverse proxy with LetsEncrypt on Docker
QBITTORRENT_PATH=<PATH>
QBITTORRENT_WEBUI_PORT=<PORT>
DOWNLOAD_PATH=<PATH>
MEDIA_PATH=<PATH>
JACKETT_PATH=<PATH>
SONARR_PATH=<PATH>
RADARR_PATH=<PATH>
DOMAIN=<YOUR DOMAIN>
TZ=<Timezone e.g. Europe/Budapest>
USERDIR=<HOME DIR PATH>
@khongi
khongi / user.js
Created March 1, 2020 17:26
ridestore.com sales
// ==UserScript==
// @name Dope Sales
// @namespace https://www.ridestore.com/
// @version 0.1
// @description Lists the sale prices on ridestore.com
// @author https://github.com/khongi/
// @match https://www.ridestore.com/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name GameTracker.com direct links
// @version 3.0
// @namespace www.gametracker.com
// @author sapphyrus, khongi
// @description Adds steam links to logo on search page and server info page
// @include http*.gametracker.com/server_info/*
// @include http*.gametracker.com/search/*
// ==/UserScript==
@khongi
khongi / Animal.kt
Created April 26, 2019 15:14
Solution to The Dog Riddle
sealed class Animal {
object Cat: Animal()
}
class Dog(breedParam: String) : Animal() {
private constructor() : this("")
val breed: String? = if (breedParam == "") null else breedParam
companion object {