Skip to content

Instantly share code, notes, and snippets.

[Sat Jan 14 16:17:57 2023] usb 1-3: new high-speed USB device number 6 using xhci_hcd
[Sat Jan 14 16:17:57 2023] usb 1-3: New USB device found, idVendor=0bda, idProduct=5830, bcdDevice=11.01
[Sat Jan 14 16:17:57 2023] usb 1-3: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[Sat Jan 14 16:17:57 2023] usb 1-3: Product: USB Camera
[Sat Jan 14 16:17:57 2023] usb 1-3: Manufacturer: Generic
[Sat Jan 14 16:17:57 2023] usb 1-3: SerialNumber: xxxxx [redacted]
[Sat Jan 14 16:17:58 2023] mc: Linux media interface: v0.10
[Sat Jan 14 16:17:58 2023] videodev: Linux video capture interface: v2.00
[Sat Jan 14 16:17:58 2023] usb 1-3: Found UVC 1.00 device USB Camera (0bda:5830)
[Sat Jan 14 16:17:58 2023] input: USB Camera: USB Camera as /devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-3/1-3:1.0/input/input28
@marcosscriven
marcosscriven / lxc_plex_intel_quicksync.md
Created November 17, 2022 12:27 — forked from packerdl/lxc_plex_intel_quicksync.md
Intel QuickSync passthrough to an unprivileged LXC container running plex.

Running Plex in an Unprivileged LXC with Intel QuickSync Passthrough

First setup an unprivileged Ubuntu container with Plex Media Server installed. Inside the container take note of the id of the plex group.

# Your Plex group's ID may be different
$ getent group plex | cut -d : -f3
998
@marcosscriven
marcosscriven / README.md
Created August 5, 2020 13:13 — forked from JesusFreke/README.md
Fusion 360 API Example: wrap sketch around surface

This is an example of using SurfaceEvaluator.getModelCurveFromParametricCurve in order to do a true wrap (not just a projection) of a 2D sketch onto a curved surface. This can be used, for example, to wrap text around a cylinder or even a sphere. It should be possible to map a sketch onto most any surface.

<domain type="kvm">
<name>win10</name>
<uuid>55c8a66b-0b5c-4079-8207-2947ff7cd8a6</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">16777216</memory>
<currentMemory unit="KiB">16777216</currentMemory>
# List of LG domains the LG TV connects to
0.0.0.0 eic-ngfts.lge.com
0.0.0.0 gb.ibs.lgappstv.com
0.0.0.0 gb.ibsstat.lgappstv.com
0.0.0.0 gb.lgtvsdp.com
0.0.0.0 gb.rdx2.lgtvsdp.com
0.0.0.0 lgtvonline.lge.com
0.0.0.0 snu.lge.com
@marcosscriven
marcosscriven / cgpt
Last active July 21, 2017 20:02
Failed live boot logs
localhost mnt # cgpt show /dev/sda
start size part contents
0 1 PMBR (Boot GUID: 525005C5-7CF9-3D4A-981E-9664C750C0FA)
1 1 Pri GPT header
2 32 Pri GPT table
3559424 8192 1 Label: "STATE"
Type: Linux data
UUID: 62339F0E-5378-5C4C-8CD5-37F297EB8299
20480 32768 2 Label: "KERN-A"
Type: ChromeOS kernel
[System]
[Geometry]
# Cartesian XY
axis_config = 0
# Set the total length each axis can travel [meters]
travel_x = 0.20
travel_y = 0.20
travel_z = 0.190
@marcosscriven
marcosscriven / build-rtldriver-for-kamikaze.sh
Last active May 25, 2016 19:13
Build the open source patched driver for Kamikaze
#! /bin/bash
# It takes an age to unpack the headers on the BBB
apt-get update
apt-get install dkms linux-headers-4.1.6-bone15
git clone https://github.com/pvaret/rtl8192cu-fixes.git
# Install
dkms add ./rtl8192cu-fixes
dkms install 8192cu/1.10
@marcosscriven
marcosscriven / browser.js
Last active February 14, 2016 19:28
Example of subscribing to Navetas Loop websockets, either in the browser console, or in a Node script. In the latter case should see output like this:
// Serial and secret can be scraped from summary page
var server = 'https://www.your-loop.com';
$.getScript('https://www.your-loop.com/socket.io/socket.io.js').done(function() {
socket = io.connect(server);
console.log('Connected to socket');
socket.on('connect', function() {
socket.emit("subscribe_electric_realtime", {
serial: '00000000xxxxx',
clientIp: '127.0.0.1',
secret: 'xxxxxxxxxx'
List of downloads:
http://osxdaily.com/2012/07/12/list-download-history-mac-os-x/
Special attributes for Gatekeeper:
http://ilostmynotes.blogspot.co.uk/2012/06/gatekeeper-xprotect-and-quarantine.html
brew list and brew cask list
list of all the software you've manually installed by downloading:
sqlite3 com.apple.LaunchServices.QuarantineEventsV2 'select LSQuarantineOriginURLString, LSQuarantineDataURLString from LSQuarantineEvent' | egrep "\.dmg|\.pkg|\.iso|\.zip"