Skip to content

Instantly share code, notes, and snippets.

View jasursadikov's full-sized avatar

Jasur Sadikov jasursadikov

View GitHub Profile
@jasursadikov
jasursadikov / alienware-disable-led.py
Created December 30, 2024 06:15
Disables LED light on the back of the laptop for Alienware R15x
#!/usr/bin/env python3
import hid
vendor_id=0x187c
product_id=0x0550
with hid.Device(vendor_id, product_id) as h:
off_lights='03266400130001020405060708090a0b0c0d0e0f10111213000000000000000000'
h.write(bytes.fromhex(off_lights))
@jasursadikov
jasursadikov / git-clr.sh
Last active September 27, 2023 11:48
Removes all branches that do not exist on remote
#!/bin/bash
git fetch --prune
git branch | grep "feature\/\|bugfix\/" | while read -r p; do
echo "$p"
EXIST=$(git branch -r --contains "$p" | wc -l)
if [[ $EXIST == "0" ]]; then
git branch -D "$p"
fi
@jasursadikov
jasursadikov / Dome.cs
Created August 10, 2022 14:43
360 sphere generator for VR videos
using UnityEngine;
public sealed class Dome
{
private readonly Vector2Int size;
private readonly float fill;
public Dome(Vector2Int size, float fill)
{
this.size = size;
@jasursadikov
jasursadikov / vscode-unity-settings.jsonc
Last active May 20, 2025 08:38
VSCode files exclusion mask for Unity project
// This file should be placed in the root direcotry inside your Unity project directory like following /.vscode/settings.json
{
"files.exclude": {
// Root directory
"[Bb]uild/": true,
"[Bb]uilds/": true,
"[L]ibrary/": true,
"[Ll]ogs/": true,
"[Oo]bj/": true,
"[Tt]emp/": true,