Skip to content

Instantly share code, notes, and snippets.

View SymphonySimper's full-sized avatar
🎯
Focusing

Sri Senthil Balaji J SymphonySimper

🎯
Focusing
View GitHub Profile
@SymphonySimper
SymphonySimper / notifybar.sh
Last active April 21, 2025 08:11
Slightly modified the generated output from my dotfiles
#!/usr/bin/env bash
time_date_string="$(date '+%H:%M;%d/%m/%Y')"
IFS=";"
read -ra time_date <<<"$time_date_string"
unset IFS
network_status=$(nmcli -p -g type connection show --active | head -n1 | cut -d '-' -f3)
network_title_style="normal"
network="${network_status^}"
@SymphonySimper
SymphonySimper / hwinfo
Last active January 27, 2025 15:51
Hardware info
============ start debug info ============
libhd version 23.3 (x86-64) [7688]
using /var/lib/hardware
kernel version is 6.12
----- /proc/cmdline -----
initrd=\EFI\nixos\4b8mrdwz7hbszzhi5kqbcivncq7bmvpp-initrd-linux-6.12.8-initrd.efi init=/nix/store/np6a6vmza7ikpjzcmz9a5059k7x0cb6m-nixos-system-nixos-25.05pre-git/init amd_pstate=guided quiet psi=1 loglevel=0
----- /proc/cmdline end -----
debug = 0xff7ffff7
probe = 0x15938fcdaa17fcf9fffe (+memory +pci +isapnp +net +floppy +misc +misc.serial +misc.par +misc.floppy +serial +cpu +bios +monitor +mouse +scsi +usb -usb.mods +modem +modem.usb +parallel +parallel.lp +parallel.zip -isa -isa.isdn +isdn +kbd +prom +sbus +int +braille +braille.alva +braille.fhp +braille.ht -ignx11 +sys -bios.vbe -isapnp.old -isapnp.new -isapnp.mod +braille.baum -manual +fb +pppoe -scan +pcmcia +fork -parallel.imm +s390 +cpuemu -sysfs -s390disks +udev +block +block.cdrom +block.part +edd +edd.mod -bios.ddc -bios.fb -bios.mode +input +block.mods +bios.vesa -cpuemu.debug -scsi.noserial +wla
@SymphonySimper
SymphonySimper / pageData.md
Last active October 21, 2024 03:55
Svelte 5 doubts

How to make PageData reactive with $props

Here is what I use in non-rune mode

+page.ts

<script lang="ts">
	import { goto } from '$app/navigation';

	export let data;
@SymphonySimper
SymphonySimper / alacritty.toml
Last active January 8, 2025 08:16
Windows alacritty config
[cursor]
vi_mode_style = "Block"
[cursor.style]
blinking = "off"
shape = "Block"
[font]
size = 12
[font.bold]
family = "JetBrainsMono Nerd Font"
This file has been truncated, but you can view the full file.
======================
Proton: 1660816548 experimental-bleeding-edge-7.0-22855-20220818-p9ab818-w99a0f7-d4869b0-vd00d03
SteamGameId: 1293830
Command: ['/home/s2b/importantnt/games/steamapps/common/ForzaHorizon4/ForzaHorizon4.exe']
Options: {'forcelgadd', 'noopwr'}
depot: 0.20220727.64
pressure-vessel: 0.20220726.0
scripts: v0.20220726.0-0-ga110829
soldier: 0.20220726.0 soldier 0.20220726.0
@SymphonySimper
SymphonySimper / clone-vtu-lab
Last active December 22, 2021 12:56
To clone my vtu lab
#!/bin/sh
repo_url="https://github.com/SymphonySimper/vtu-lab.git"
repo_zip_url="https://github.com/SymphonySimper/vtu-lab/archive/refs/heads/main.zip"
c_path=$(pwd)
f_path="$c_path"/vtu-lab
x_path="$c_path"/vtu-lab-main
clone_zip_repo(){ unzip main.zip && mv -v "$x_path" "$f_path" && rm -v main.zip; }
@SymphonySimper
SymphonySimper / bmark.sh
Created November 3, 2021 07:04
bmark with repo function
#!/bin/sh
bmark_loc="$XDG_DATA_HOME"/bmark/bookmarks
repo="[email protected]:SymphonySimper/bmark.git"
repo_parent_loc="$(echo $bmark_loc | sed 's/bmark\/bookmarks//g')"
repo_loc="$(echo $bmark_loc | sed 's/bookmarks//g')"
err(){ echo "$(syl r; syl B)${1}$(syl R)"; }
succ(){ echo "$(syl g; syl B)${1}$(syl R)"; }
git_c="git -C $repo_loc"
@SymphonySimper
SymphonySimper / inittab
Last active September 12, 2021 12:46
/etc/inittab
#
# /etc/inittab: This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <[email protected]>
# Modified by: Patrick J. Volkerding, <[email protected]>
# Modified by: Daniel Robbins, <[email protected]>
# Modified by: Martin Schlemmer, <[email protected]>
# Modified by: Mike Frysinger, <[email protected]>
# Modified by: Robin H. Johnson, <[email protected]>
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
#[[ -f ~/.bashrc ]] && . ~/.bashrc
~/.config/shell/.profile