Skip to content

Instantly share code, notes, and snippets.

View Dinir's full-sized avatar
🙍
Failed.

Dinir Nertan Dinir

🙍
Failed.
View GitHub Profile
@dogtopus
dogtopus / ds5.desc.xml
Last active January 24, 2026 16:03
DualSense descriptor
<?xml version="1.0"?>
<!--
DualSense (DS5) USB HID Report Descriptor
Documentation WIP
TODO: Extract info from hid-playstation and cross-verify with us.
-->
@Dinir
Dinir / bash_prompt.bashrc
Last active May 4, 2026 12:40
My Prompt
# ~/.bashrc snippet — bash port of Dinir's fish_prompt.fish
# Converted by Claude Opus 4.7.
# Drop this into your ~/.bashrc (or source it from there).
# ---- Color shortcuts (raw ANSI; wrapped with \[\] when used in PS1) ----
__c_blk=$'\e[30m'; __c_red=$'\e[31m'; __c_grn=$'\e[32m'
__c_yel=$'\e[33m'; __c_blu=$'\e[34m'; __c_mgt=$'\e[35m'
__c_cyn=$'\e[36m'; __c_lgry=$'\e[37m'
__c_gry=$'\e[1;30m'; __c_lred=$'\e[1;31m'; __c_lgrn=$'\e[1;32m'
__c_lyel=$'\e[1;33m';__c_lblu=$'\e[1;34m'; __c_lmgt=$'\e[1;35m'
@danharper
danharper / background.js
Last active February 13, 2026 12:47
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});