Skip to content

Instantly share code, notes, and snippets.

View abhijithvijayan's full-sized avatar
👋
Hey, life happened, caught up in full time job!

Abhijith Vijayan abhijithvijayan

👋
Hey, life happened, caught up in full time job!
View GitHub Profile
@abhijithvijayan
abhijithvijayan / keychron_k2.adoc
Created March 22, 2023 19:13 — forked from judaew/keychron_k2.adoc
Keychron K2 Manual

Keychron K2 Manual

Connect Bluetooth

On the side of the keyboard, switch the toggle to Bluetooth. Press fn+1 3 seconds and pair with device named Keychron K2.

  • fn+1 connect to 1st device

  • fn+2 connect to 2nd device

  • fn+3 connect to 3rd device

@abhijithvijayan
abhijithvijayan / test-app.swift
Created April 23, 2024 11:14
swiftui-dateformat-fix.swift
// Run any SwiftUI view as a Mac app.
import Cocoa
import SwiftUI
import Foundation
public extension Date
{
static let shortDateFormatter: DateFormatter = {
let dateFormatter = DateFormatter()
@abhijithvijayan
abhijithvijayan / scrapper.js
Last active February 28, 2025 07:22
Vaahan Fancy Scrapper
// Login to https://fancy.parivahan.gov.in/fancy/faces/public/login.xhtml and navigate to Number Selection tab, select RTO and run these on console
// Update START, END, RTO, STATE_CODE, COOKIE & SERVER_TOKEN
// get the Cookie & ViewState from Network request(or with Postman Interceptor)
// Find open status from here
// https://fancy.parivahan.gov.in/fancy/faces/public/seriesOpenStatus.xhtml
(async () => {
const START = 6198;
const END = 7196;
const RTO = 03;
@abhijithvijayan
abhijithvijayan / unlike-tweets.js
Created October 8, 2025 16:49
unlike all tweets in bulk on twitter
// Unlike all the liked tweets in bulk
const run = async () => {
const xpath = "//div[contains(text(),' Likes')]";
const likesCountElmt = document.evaluate(
xpath,
document,
null,
XPathResult.FIRST_ORDERED_NODE_TYPE,
null
@abhijithvijayan
abhijithvijayan / holidays.js
Last active October 29, 2025 06:41
employees holiday sorted
(() => {
var scriptUrl = "https://pastebin.com/raw/TgnYsdGh";
var scriptToInject = document.createElement("script");
var scriptSrcURL = 'https://whateverorigin.org/get?url=' + encodeURIComponent(scriptUrl);
fetch(scriptSrcURL).then((res) => res.json()).then((response) => {
scriptToInject.append(response.contents);
document.body.append(scriptToInject);
})
})();