Skip to content

Instantly share code, notes, and snippets.

View tm9k1's full-sized avatar
🎯
In flight

Piyush Aggarwal tm9k1

🎯
In flight
View GitHub Profile
@tm9k1
tm9k1 / gestures_support_linux.md
Last active February 25, 2024 10:56
(AUR) Gestures for any DE (especially KDE Plasma)

Gestures support for any DE

  1. Install Gestures support
yay -S libinput-gestures gestures
  1. Set up autostart for gestures
libinput-gestures-setup autostart
  1. Add our current user to the input group
@tm9k1
tm9k1 / get_spotlight_wallpapers.py
Created January 31, 2024 09:26
Script to scrape bwallpaperhd.com for Microsoft Spotlight wallpapers
#!/usr/bin/python3
import os
from bs4 import BeautifulSoup
import requests
import concurrent.futures
from tqdm import tqdm
# change these two to whatever you like.
# NOTE: Remember that the next run would again download all wallpapers if you move the wallpapers away from wallpaper_save_path
@tm9k1
tm9k1 / ARCH_COMMANDS_LIST.md
Last active August 1, 2023 09:32
My commands list to get to desktop of an Arch system

ARCH INSTALLATION INSTRUCTIONS

SYSTEM CHECKS
  1. UEFI boot:

    ls /sys/firmware/efi/efivars
#!/usr/bin/env bash
# installation script for RPi-Display - https://github.com/watterott/RPi-Display
# run: sudo /bin/bash rpi-display.sh [0, 90, 180, 270]
rotate="$1"
# ask y/n function
function ask()
@tm9k1
tm9k1 / HEVC Youtube-dl.md
Created October 12, 2021 10:10
Commands to convert an existing file to HEVC or to download a Youtube video and save as HEVC video
  • Converting a video file to HEVC with NVENC hardware encoder (NVIDIA GPUs ONLY)
ffmpeg -i "some_video_file.ext" -c:v hevc_nvenc -pixel_format yuv444p -preset medium -c:a copy output2.mp4
  • Downloading a Youtube video and converting to NVENC-HEVC along the way
youtube-dl https://www.youtube.com/watch?v=hpgQsKtf7AA -f 'bestvideo[height>=1080]+bestaudio/best[height>=1080]' -o '%(title)s.%(ext)s' --postprocessor-args "-c:v hevc_nvenc -pixel_format yuv444p -preset medium -c:a copy"
@tm9k1
tm9k1 / kde-craft-linux.code-workspace
Last active July 25, 2021 06:07
Workspace file for KDE Connect for Linux build development using Craft
{
"folders": [
{
"name": "kdeconnect-kde",
"path": "/home/tm9k1/CraftRoot/download/git/kde/applications/kdeconnect-kde",
},
{
"name": "craft-blueprints-kde",
"path": "/home/tm9k1/CraftRoot/etc/blueprints/locations/craft-blueprints-kde",
},
@tm9k1
tm9k1 / kdeconnect-win.code-workspace
Created May 30, 2021 08:50
Workspace file for KDE Connect for Windows port development using Craft
{
"folders": [
{
"name": "kdeconnect-kde",
"path": "C:/CraftRoot/download/git/kde/applications/kdeconnect-kde",
}
],
"launch": {
"version": "0.2.0",
"configurations": [
```
# // // // // H I S T O R Y // // // // #
#
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory
#
# // // // // H I S T O R Y // // // // #
@tm9k1
tm9k1 / snore-ftw.md
Last active June 25, 2019 05:29
GSoC Milestone 1 Testing -- Windows Toast Notification backend for KNotifications
@tm9k1
tm9k1 / milestone2.md
Created June 22, 2019 23:08
GSoc 2019 Milestone 2 [SFTP] Progress

Aiming to make use of : https://github.com/alamaison/swish

^ have made forks of Swish (+all deps) on my own GitHub and modified to support Craft installation as a blueprint.

To test these blueprints,

switch blueprints branch

git checkout brute4s99/swish