Skip to content

Instantly share code, notes, and snippets.

@AyushRawal
AyushRawal / 90-adjust-priority.lua
Created August 19, 2025 18:59
wireplumber script
-- WirePlumber
--
-- Copyright © 2022 Collabora Ltd.
--
-- SPDX-License-Identifier: MIT
--
-- Find the best profile for a device based on profile priorities and
-- availability
cutils = require("common-utils")
@AyushRawal
AyushRawal / template.cpp
Created September 17, 2024 09:04
cp template
#include <bits/stdc++.h>
#define fast ios_base::sync_with_stdio(0);
#define io \
cin.tie(0); \
cout.tie(0)
#define endl '\n'
#define pb push_back
using namespace std;
@AyushRawal
AyushRawal / config.py
Created January 11, 2023 12:52
my qtile config
from libqtile import bar, layout, widget
from libqtile.config import Click, Drag, Group, Key, Match, Screen
from libqtile.lazy import lazy
from libqtile.utils import guess_terminal
mod = "mod4"
terminal = guess_terminal()
keys = [
# A list of available commands that can be bound to keys can be found
#!/bin/sh
# A simple bash script to compile and execute cpp files during contests
usage="[USAGE]: runcpp [file] -- compile and execute file with input from input.txt
[OR]: runcpp clean -- delete input.txt and a.out if they exist
[OR]: runcpp -h | --help -- print this help mesaage and exit"
if [ ! $# -eq 1 ]; then
echo "Invalid usage! \n"