Skip to content

Instantly share code, notes, and snippets.

View StrixROX's full-sized avatar

Pratyush Kumar StrixROX

View GitHub Profile
@StrixROX
StrixROX / .bash_aliases
Last active July 6, 2022 11:07
Bash snippet to create and remove ROS workspaces
# ~/.bash_aliases
# ...
# Assuming you already have ROS installed...
# First create an empty file ~/.ros_workspaces using:
# `touch ~/.ros_workspaces`
# (I used this file to automatically source the devel/setup.bash
# script from all my ROS workspaces on startup)
@StrixROX
StrixROX / 50-cloud-init.yaml
Last active October 28, 2025 19:10
Cloud-Init configuration files for connecting Wi-Fi and ethernet to Raspberrypi 4B
# /etc/netplan/50-cloud-init.yaml
# Indent size = 2 spaces. No tabspaces allowed.
#
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: <------- {{ PAY ATTENTION TO THIS PART. This may be different for you; follow your version }}
# network: {config: disabled}
network:
version: 2
@StrixROX
StrixROX / .bash_aliases
Created July 8, 2022 05:44
Bash script to import all stored SSH keys for using GitHub with SSH-keys
# ~/.bash_aliases
# ...
# loads all saved ssh keys
# to know to how generate ssh keys to use with GitHub, refer: https://docs.github.com/en/authentication/connecting-to-github-with-ssh
# Usage:
# authgit
function authgit {
eval "$(ssh-agent -s)"
ssh-add
@StrixROX
StrixROX / cats.py
Created July 25, 2023 15:44
Pulls an image from Unsplash.com using the script's filename as the query and sets it as the desktop wallpaper [ Windows ]
import requests
import os
import time
import ctypes
# user-defined variables
tempFolder = f"C:/Users/{os.getlogin()}/AppData/Local/Temp/"
downloadFolder = os.path.join(tempFolder, "unsplash-downloaded-wallpapers")
unsplashQuery = os.path.basename(__file__)[:-3] # this script's filename without extension
imageSize = "1920x1080"
@StrixROX
StrixROX / kitty.conf
Last active August 9, 2023 21:29
My kitty config
font_family Noto Sans
bold_font auto
italic_font auto
bold_italic_font auto
font_size 12.0
background_opacity 0.55
enabled_layouts splits
@StrixROX
StrixROX / .bash_aliases
Last active August 15, 2023 06:26
My Arch .bash_aliases
alias c="clear"
alias l="ls"
alias editals="nano ~/.bash_aliases"
alias loadbash="source ~/.bashrc"
# Bash prompt customization
CYAN="\[$(tput setaf 51)\]"
GREEN="\[$(tput setaf 48)\]"
RESET="\[$(tput setaf sgr0)\]"
@StrixROX
StrixROX / autosync_system_time.bat
Created August 22, 2023 13:47
Automatically synchronize system time in Windows
w32tm /resync /nowait
@StrixROX
StrixROX / .bash_aliases
Last active March 7, 2025 18:25
Windows Bash - .bash_aliases
alias c="clear"
alias l="ls --group-directories-first"
alias la="ls -a --group-directories-first"
alias editals="nano ~/.bash_aliases"
alias loadbash="source ~/.bashrc"
# Bash prompt customization
#CYAN="\033[038;5;51m"
#GREEN="\033[038;5;40m"
#RESET="\033[0m"
@StrixROX
StrixROX / .babelrc
Created March 7, 2025 19:48
React Project Configs - JS
{
"presets": [
"@babel/preset-env",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
]
],
@StrixROX
StrixROX / README.md
Last active February 8, 2026 08:03
How to install Tailscale on Raspberry Pi Zero W

Tailscale on Raspberry Pi Zero W (Jan 2026)

Preface

First of all, this thing has abysmal official support from both Tailscale and Raspberry Pi.

Pi Zero W hardware is so old it can't even run Ubuntu server images (which I found out the hard way after failing to install ubuntu server onto it). So the only linux flavors that work on it are the ones that show up in the Raspberry Pi Imager. I decided to use Raspberry Pi OS Lite (32-bit variant).