Skip to content

Instantly share code, notes, and snippets.

View veerendra2's full-sized avatar
🎯
Focusing

Veerendra veerendra2

🎯
Focusing
View GitHub Profile
@veerendra2
veerendra2 / iterm2.md
Created October 10, 2023 09:46 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@veerendra2
veerendra2 / flutter-development-setup-windows.md
Last active August 21, 2023 14:56
Flutter Development Setup in Windows

Flutter Development Setup on Windows

1. Download and install dart

https://dart.dev/get-dart

choco install dart-sdk
  • Add dart-sdk path in environment variables

2. Download and install flutter

@veerendra2
veerendra2 / README.md
Created February 20, 2023 20:13 — forked from shantanoo-desai/README.md
tiguitto (Telegraf, InfluxDBv1.x, Grafana, Mosquitto) stack with Traefik v2.3 reverse proxy using docker

tiguitto Stack with Traefik v2.3 as reverse-proxy

  • Tested on Raspberry-Pi 4 Model B 2GB RAM
  • Docker Version: 19.03.8
  • Docker-Compose version: 1.25.5

Directory structure:

 .
@veerendra2
veerendra2 / enable-userns-remap.yaml
Created February 15, 2023 22:02
Enable userns-remap Ansible
- name: Enable userns-remap
hosts: localhost
connection: local
gather_facts: yes
tasks:
- block:
- name: Update userns-remap config
shell: |
cp /etc/docker/daemon.json /etc/docker/daemon.json.backup
jq '. += { "userns-remap" : "default" }' < /etc/docker/daemon.json > /tmp/daemon.json
@veerendra2
veerendra2 / restic_backup.sh
Last active December 9, 2022 20:14
A script to run restic backup in cronjob and writes metrics to file for node exporter's textfile collector
#!/bin/bash
# Author: Veerendra K
# Description: Runs restic backup and writes metrics to file for node exporter's textfile collector
# Dependencies: restic, jq
#
# ** INFO ***
# https://www.robustperception.io/using-the-textfile-collector-from-a-shell-script/
# https://github.com/prometheus/node_exporter
# Set --collector.textfile.directory in node_exporter
@veerendra2
veerendra2 / K8s-nvidia.txt
Created November 13, 2022 18:59
K8s-nvidia
Nvidia "Docker" Container Runtime
https://github.com/NVIDIA/nvidia-docker
Hashcat in Container
=====================
Nvidia in Docker - https://github.com/dizcza/docker-hashcat
@veerendra2
veerendra2 / ngrok.service
Created October 21, 2022 19:30
ngrok service
[Unit]
Description=ngrok
After=network.target
[Service]
ExecStart=/opt/ngrok/ngrok start --all --config /opt/ngrok/ngrok.yml
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
IgnoreSIGPIPE=true
Restart=always
@veerendra2
veerendra2 / config.sample.config
Created October 15, 2022 14:15
Nextcloud's config.sample.config
<?php
/**
* This configuration file is only provided to document the different
* configuration options and their usage.
*
* DO NOT COMPLETELY BASE YOUR CONFIGURATION FILE ON THIS SAMPLE. THIS MAY BREAK
* YOUR INSTANCE. Instead, manually copy configuration switches that you
* consider important for your instance to your working ``config.php``, and
* apply configuration options that are pertinent for your instance.
@veerendra2
veerendra2 / hugo.yml
Last active November 23, 2023 15:35
Hugo Site Github Actions Workflow
name: Publish Hugo Site
on:
workflow_dispatch:
inputs:
blog:
description: "Publish Blog"
required: true
default: "yes"
pull_request:
types:
@veerendra2
veerendra2 / velero-cli-cheatsheet.txt
Created September 4, 2022 20:43
Velero CLI Cheatsheet
## Show backups with label
$ velero backup get --show-labels
## Show backups based on labels
$ velero backup get -l velero.io/storage-location=wiki-demo
## Remove backups based on labels
$ velero backup delete -l ”velero.io/schedule-name=wiki-demo”
## Show Velero logs