Skip to content

Instantly share code, notes, and snippets.

View niksingh710's full-sized avatar
🐧
Gnu/Linux building

Nikhil Singh niksingh710

🐧
Gnu/Linux building
View GitHub Profile
@niksingh710
niksingh710 / ixio
Created August 9, 2023 07:45
This is ixio service script to but any text on ixio server and get a shareable link
#!/usr/bin/env bash
# Examples:
# ix hello.txt # paste file (name/ext will be set).
# echo Hello world. | ix # read from STDIN (won't set name/ext).
# ix -n 1 self_destruct.txt # paste will be deleted after one read.
# ix -i ID hello.txt # replace ID, if you have permission.
# ix -d ID
ix() {
@niksingh710
niksingh710 / heroic.css.base
Created July 31, 2023 06:24
Heroic Games Launcher wpgtk template
:root {{
--accent: {active};
--accent-overlay: {inactive};
--navbar-accent: {foreground};
--background: {background};
--body-background: var(--background);
--background-darker: var(--body-background);
--current-background: var(--body-background);
--navbar-background: {background};
--navbar-active-background: {background};
@niksingh710
niksingh710 / preview
Created July 13, 2023 05:21
Preview scirpt for fzf using ueberzugpp
#!/usr/bin/env sh
# Add this script to $PATH. Then use this by: fzf --preview='preview {}'.
# Requirements:
# - chafa for image
# - jq for json
# - exa for directory
# - elinks for html
# - glow for markdown
# - transmission-show for torrent
@niksingh710
niksingh710 / barconfig.json
Created June 30, 2023 07:32
Waybar Arch Linux Custom Update Module. Including AUR with (checkupdates-with-aur)
"custom/updates": {
"format": "{}",
"interval": 3600,
"exec": "~/.config/waybar/scripts/updatecheck",
"return-type": "json",
"exec-if": "exit 0",
"signal": 8
},
@niksingh710
niksingh710 / amdgpu.conf
Last active July 31, 2023 06:30
The arch system config with kernel params
options amdgpu si_support=1
options amdgpu cik_support=1
@niksingh710
niksingh710 / grub modules
Created April 11, 2023 05:08
Grub modules list to be used when installing grub bootloader with sbct (Secure boot)
CD_MODULES="
all_video
boot
btrfs
cat
chain
configfile
echo
efifwsetup
efinet
# FG BTN_BG bright less brdark less da txt fg br text btn fg txt bg bg shadow sel bg sel fg link visited alt bg default tooltip bg tooltip_fg
[ColorScheme]
active_colors={foreground}, {background}, {background}, {background}, {background}, {background}, {color7}, {color7}, {foreground}, {color0}, {background}, {background}, {color1}, {color0}, {color1}, {foreground}, {background}, {foreground}, {background.strip}, {foreground}
disabled_colors={inactive}, {background}, {background}, {background}, {background}, {background}, {inactive}, {inactive}, {inactive}, {color0}, {background}, {background}, {color1}, {color0}, {color1}, {inactive}, {background}, {inactive}, {background}, {inactive}
inactive_colors={foreground}, {background}, {background}, {background}, {background}, {background}, {color7}, {color7},
" line numbers
set nu
set relativenumber
" tab & indent
set tabstop=2
set shiftwidth=2
set expandtab
set autoindent
@niksingh710
niksingh710 / 31_hold_shift
Created December 22, 2021 14:27
to be pasted on /etc/grub.d/
#! /bin/sh
set -e
prefix="/usr"
exec_prefix="${prefix}"
datarootdir="${prefix}/share"
export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"
source "${datarootdir}/grub/grub-mkconfig_lib"