Skip to content

Instantly share code, notes, and snippets.

View avinal's full-sized avatar
🌠
2⁸²⁵⁸⁹⁹³³ - 1

Avinal Kumar avinal

🌠
2⁸²⁵⁸⁹⁹³³ - 1
View GitHub Profile
@avinal
avinal / logid.cfg
Created July 25, 2023 18:57
MX Master logiops config (useful for Sway WM)
devices: (
{
name: "MX Master 3S";
smartshift:
{
on: true;
threshold: 30;
torque: 50;
};
hiresscroll:
<html class="fixed overflow-hidden h-full dark" data-lt-installed="true" lang="en"><head><script>try{if(!('theme' in localStorage)){localStorage.theme=window.matchMedia('(prefers-color-scheme:dark)').matches?'dark':'light'}if(localStorage.theme==='dark'){document.querySelector('html').classList.add('dark')}}catch(_){}</script><meta name="viewport" content="width=device-width"><meta charset="utf-8"><link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png?v=3"><link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png?v=3"><link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png?v=3"><link rel="manifest" href="/favicons/site.webmanifest?v=3"><link rel="mask-icon" href="/favicons/safari-pinned-tab.svg?v=3" color="#38bdf8"><link rel="shortcut icon" href="/favicons/favicon.ico?v=3"><meta name="apple-mobile-web-app-title" content="Tailwind Play"><meta name="application-name" content="Tailwind Play"><meta name="msapplication-TileColor" content=
@avinal
avinal / results.yaml
Last active March 2, 2023 14:39
Wakatime Code activity
openapi: 3.0.0
info:
title: Tekton Results API Specification
version: v1alpha2
description: >-
Tekton Results aims to help users logically group CI/CD workload history and
separate out long term result storage away from the Pipeline controller.
This allows you to:
* Provide custom Result metadata about your CI/CD workflows not available in
@avinal
avinal / markdowntest.md
Last active December 31, 2022 20:10
Test markdown for my website
title date tags category description image
This is a test file
2022-12-31 23:15
tag1
tag2
tag3
blog
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

Heading-1 This is the actual header

@avinal
avinal / ivy-bank.md
Created October 22, 2022 06:48
Bank SMS format for IVY wallet

Indian Bank SMS

ICICI Bank Credit card

  • Debit
    • INR xxx.xx spent on ICICI Bank Card XX1234 on 20-Oct-22 at MERCHANT. Avl Lmt: INR xxxxxx.xx. To dispute,call 18002662/SMS BLOCK 1234 to 9215676766
  • Credit:
    • Dear Customer, refund of INR xxxx.xx from Merchant has been credited to your ICICI Bank Credit Card XX1234 on 29-SEP-22 and will be adjusted in the coming statement. For details, please call our Customer Care.
    • Dear Customer, payment of INR xxxxx.xx towards your ICICI Bank Credit Card XX1234 has been received through Click to Pay on 26-SEP-22. Thank you.
  • Dear Customer, Payment of INR xxxxx.xx has been received towards your ICICI Bank Credit Card XX1234 on 29-AUG-22 through UPI. Thank you.
@avinal
avinal / gotimezoneapi.md
Created July 1, 2022 09:05
Time zone converter in Go

Timezone converter API in Go

Create a time zone converter api in go.

Basic

  • Proper project structure
  • Well Formatted code
  • Converts system time, assuming that from is system time
  • API specifications

Requirements

Basic

  • Proper project structure
  • Well formatted code with descriptive readme
  • Should solve normal, postfix and prefix expressions
  • Step by step printing of solution
  • Command line description
# starship configurations
# ~/.config/starship.toml
# Which is equivalent to
format = """
$username\
$hostname\
$localip\
$kubernetes\
$directory\
$vcsh\
[character]
success_symbol = "[➜](bold green) "
error_symbol = "[✗](bold red) "
[[battery.display]]
threshold = 20
style = "bold red"
[cmd_duration]
format = "ran for [$duration](bold pink)"
@avinal
avinal / release.yml
Created March 23, 2022 11:55
Working Tekton Result File
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app.kubernetes.io/part-of: tekton-results
app.kubernetes.io/version: v0.4.0
name: tekton-results-api
namespace: tekton-pipelines
---
apiVersion: v1