Skip to content

Instantly share code, notes, and snippets.

@caj380
caj380 / usb_f_ccid.patch
Created January 2, 2026 16:17
usb_f_ccid kernel patch - Backup of https://lkml.org/lkml/diff/2018/5/26/178/1 (now offline)
---
drivers/usb/gadget/Kconfig | 17 +
drivers/usb/gadget/function/Makefile | 1 +
drivers/usb/gadget/function/f_ccid.c | 988 +++++++++++++++++++++++++++++++++++
drivers/usb/gadget/function/f_ccid.h | 91 ++++
include/uapi/linux/usb/ccid.h | 93 ++++
5 files changed, 1190 insertions(+)
create mode 100644 drivers/usb/gadget/function/f_ccid.c
create mode 100644 drivers/usb/gadget/function/f_ccid.h
create mode 100644 include/uapi/linux/usb/ccid.h
@caj380
caj380 / Amazon-url-cleaner.user.js
Last active August 13, 2020 17:15
Amazon URL Cleaner: Show the shortest possible URL for Amazon items.
// ==UserScript==
// @name Amazon URL Cleaner
// @description Show the shortest possible URL for Amazon items.
// @namespace http://tampermonkey.net/
// @match https://www.amazon.com/dp/*
// @match https://www.amazon.com/*/dp/*
// @match https://www.amazon.com/gp/product/*
// @match https://www.amazon.com/*/ASIN/*
//
// @match https://smile.amazon.com/dp/*
@caj380
caj380 / quotes.json
Last active November 27, 2019 13:22
Json file of 146 inspirational quotes - Generated from the extracted database of the HabitHub Android app.
[
{
"_id": 1,
"title": "It does not matter how slowly you go as long as you do not stop.",
"author": "Confucius"
},
{
"_id": 2,
"title": "Either I will find a way, or I will make one.",
"author": "Philip Sidney"
'use strict'
const SSDP = require('node-ssdp').Server;
const path = require('path');
const express = require('express');
const GoogleAssistant = require('google-assistant');
const GRConfig = require('./config.json');
const async = require('async');
const ip = require('ip')
const Speaker = require('speaker');
@caj380
caj380 / atsc_server.txt
Created May 31, 2018 18:20
Playing with the Tzumi MagicTV
>> root@OpenWrt:/# strings /app/atsc_server
/lib/ld-uClibc.so.0
libpthread.so.0
_DYNAMIC_LINKING
__RLD_MAP
pthread_attr_destroy
pthread_create
pthread_attr_init
system
[
{"text": "\u201cThe world as we have created it is a process of our thinking. It cannot be changed without changing our thinking.\u201d", "author": "Albert Einstein", "tags": ["change", "deep-thoughts", "thinking", "world"]},
{"text": "\u201cIt is our choices, Harry, that show what we truly are, far more than our abilities.\u201d", "author": "J.K. Rowling", "tags": ["abilities", "choices"]},
{"text": "\u201cThere are only two ways to live your life. One is as though nothing is a miracle. The other is as though everything is a miracle.\u201d", "author": "Albert Einstein", "tags": ["inspirational", "life", "live", "miracle", "miracles"]},
{"text": "\u201cThe person, be it gentleman or lady, who has not pleasure in a good novel, must be intolerably stupid.\u201d", "author": "Jane Austen", "tags": ["aliteracy", "books", "classic", "humor"]},
{"text": "\u201cImperfection is beauty, madness is genius and it's better to be absolutely ridiculous than absolutely boring.\u201d", "author": "Marilyn Monroe", "tags": ["