Skip to content

Instantly share code, notes, and snippets.

View skyrocknroll's full-sized avatar

Yuvaraj L skyrocknroll

View GitHub Profile
@skyrocknroll
skyrocknroll / README.md
Last active December 29, 2023 16:43
[Archer C50] #openwrt #router firmware upgrade #printer
@skyrocknroll
skyrocknroll / learn.md
Last active November 21, 2023 11:17
[AI Machine learning] Machine learning #ai #ml #llama
@skyrocknroll
skyrocknroll / dell-loop.sh
Last active November 7, 2023 16:36
dell fan #temp #fan #ipmi #rx720d #fan #control
#!/usr/bin/env bash
# ----------------------------------------------------------------------------------
# Script for checking the temperature reported by the ambient temperature sensor,
# and if deemed too high send the raw IPMI command to enable dynamic fan control.
#
# Requires:
# ipmitool – apt-get install ipmitool
# slacktee.sh – https://github.com/course-hero/slacktee
# ----------------------------------------------------------------------------------
@skyrocknroll
skyrocknroll / influxdb.md
Last active October 24, 2023 13:47
[Influxdb Cardinality Debug] #influxdb
  • SHOW TAG VALUES EXACT CARDINALITY WITH KEY = "index";
  • SHOW SERIES CARDINALITY group by "measurement"; → Important useful one.
  • influxdata/influxdb#8636 → Good examples are here
  • influx_inspect report -detailed /var/lib/influxdb/data/envoy/autogen/903 The best way to ficure out high cardinality series.
  • figure out series in each database use _internal ; select * from "database" where time > now() - 900s limit 10; Faced this error ERR: cannot delete data. DB contains shards using both inmem and tsi1 indexes. Please convert all shards to use the same index type to delete data.
find /var/lib/influxdb -type d -name index | while read index; do rm -Rf "$index" ; done
influx_inspect buildtsi -database envoy -datadir /var/lib/influxdb/data/ -waldir /var/lib/influxdb/wal
@skyrocknroll
skyrocknroll / mediacenter.md
Created September 17, 2023 05:21
[mediacenter]
  • sonarr, radarr,jellyfin ,jackett,flaresolver
  • jellyfin kod plugin make sure force http is disabled.
  • when you add items make sure you add all, movies ,tvshows and music in jellyfin plugin in kodi

jellyfin works fine so no need to install jellycon

@skyrocknroll
skyrocknroll / harvester.md
Last active September 6, 2023 14:45
[Harvester] #hci #harvester
  • Setup untagged VLAN network also works
  • https://www.belgai.de/blog/harvester/harvester_bridge_network/ add cloud init network data made it to work
  • Loadbalancer creation were failing. Goto settings in harvester and set vip pools.
  • If you add one more extra nic using the untagged network then creating an service object will lead to issue. The best is use the default managment network and create and service object to get an ip in the Subnet.
  • to ssh into vm using clusterIP we can do kubectl port-forward and ssh
  • Goto preferences and enable all the 4 settings including longhorn and rancher UI.
  • We can use Nodeport and forward traffic to host ip and nodeport in Route Virtual servers.
  • When we are port forwarding in router to ingress make sure ingress is configured with static NodePort. so that recreation ingress will always leads to fixed port.
  • nginx ingress with letsencrypt. https://cloud.yandex.com/en/docs/managed-kubernetes/tutorials/ingress-cert-manager
@skyrocknroll
skyrocknroll / screenshot.py
Last active January 6, 2023 11:01
screenshot linux automation , xdotool , xwininfo
#!/usr/bin/python
import subprocess
subprocess.call(["sh","./screenshot.sh","11","www.canvera.com"])
@skyrocknroll
skyrocknroll / cpaas-bootcamp.md
Last active December 22, 2022 12:56
[kubernetes] #k8s #kubernetes
  • Create multi node cluster
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
@skyrocknroll
skyrocknroll / facedetect.py
Created September 20, 2013 12:47
face detection simplecv
from SimpleCV import *
__author__ = 'yuva'
def main():
img = Image("group2.jpg")
print img.listHaarFeatures()
faces = img.findHaarFeatures("haarcascade_frontalface_alt.xml")
# faces = img.findHaarFeatures("face2.xml")
# faces = img.findHaarFeatures("haarcascade_frontalface_default.xml")
scalesize = 1
@skyrocknroll
skyrocknroll / ubuntu.sh
Last active July 12, 2022 17:52
ubuntu 20.04 #ubuntu #setup
Install gnome-tweak-tool
* Glipper does not work any more use gnome extension which works awesome `https://extensions.gnome.org/extension/779/clipboard-indicator/`
* netspeed indicator
* Finally great launcher found https://github.com/Ulauncher/Ulauncher/
* Sound input device switcher https://extensions.gnome.org/extension/906/sound-output-device-chooser/
* Gtile https://extensions.gnome.org/extension/28/gtile/
* Printer https://extensions.gnome.org/extension/1218/printers/
* Very good Mac Theme https://github.com/vinceliuice/WhiteSur-gtk-theme https://www.gnome-look.org/p/1403328/