Skip to content

Instantly share code, notes, and snippets.

@derFunk
derFunk / UnityNodeTypeResolver.cs
Last active January 6, 2025 14:07
NodeTypeResolver for YamlDotNet to ease deserializing Unity3D scene files
using System;
using System.Collections.Generic;
using System.Reflection;
using YamlDotNet.Core.Events;
using YamlDotNet.Serialization;
namespace Chimera.Unity3DYamlChecker
{
class UnityNodeTypeResolver : INodeTypeResolver
{
@voluntas
voluntas / webrtc_turn.rst
Last active January 6, 2025 14:05
WebRTC で利用されいる TURN プロトコルの解説

WebRTC で利用されいる TURN プロトコルの解説

日時:2021-01-29
作:@voluntas
バージョン:2021.2
url:https://voluntas.github.io/

@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active January 6, 2025 14:03
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@z3ntu
z3ntu / rotation_matrix.py
Last active January 6, 2025 14:02
generate the iio rotation matrix
#!/usr/bin/python3
import glob
import os
import sys
import time
"""
(according to Android emulator, seems to be inverse for iio)
upright/normal: 0 9.81 0
@MartijnHols
MartijnHols / useDocumentHeight.ts
Last active January 6, 2025 14:01
React hooks for getting the document height that updates when the On Screen Keyboard/Virtual Keyboard toggles
The latest version is available at https://martijnhols.nl/gists/how-to-get-document-height-ios-safari-osk
@dannberg
dannberg / obsidian-daily-note-template.txt
Last active January 6, 2025 14:01
Dann Berg's Daily Note Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. Read the full tour: https://dannb.org/blog/2022/obsidian-daily-note-template/
---
created: <% tp.file.creation_date() %>
---
tags:: [[+Daily Notes]]
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>
<< [[Timestamps/<% tp.date.now("YYYY", -1) %>/<% tp.date.now("MM-MMMM", -1) %>/<% tp.date.now("YYYY-MM-DD-dddd", -1) %>|Yesterday]] | [[Timestamps/<% tp.date.now("YYYY", 1) %>/<% tp.date.now("MM-MMMM", 1) %>/<% tp.date.now("YYYY-MM-DD-dddd", 1) %>|Tomorrow]] >>
---
@martin-grindr
martin-grindr / debex.sh
Created February 26, 2016 16:56
Extract grindr backup and open database
#!/bin/bash
adb backup -f ./grindrapp.ab -noapk com.grindrapp.android
java -jar ~/src/abe/build/libs/abe-all.jar unpack ./grindrapp.ab ./grindrapp.tar
tar -xf grindrapp.tar
open apps/com.grindrapp.android/db/grindr3.db
@stong
stong / cups-browsed.md
Last active January 6, 2025 13:55
CUPS disclosure leaked online. Not my report. The original author is @evilsocket

Original report

  • Affected Vendor: OpenPrinting
  • Affected Product: Several components of the CUPS printing system: cups-browsed, libppd, libcupsfilters and cups-filters.
  • Affected Version: All versions <= 2.0.1 (latest release) and master.
  • Significant ICS/OT impact? no
  • Reporter: Simone Margaritelli [[email protected]]
  • Vendor contacted? yes The vendor has been notified trough Github Advisories and all bugs have been confirmed:
@Kerryliu
Kerryliu / ugreen_truenas_led.md
Last active January 6, 2025 13:54
TrueNAS UGREEN DXP4800 Plus Status LED Guide

UGREEN DXP4800 Plus TrueNAS Status LED Guide

20240609_035951642_iOS

The following is a quick guide on getting basic status LED functionality working with TrueNAS running on the UGREEN DXP4800 Plus. Theoretically, it should work on all models (with some small revisions to the script), but I only have a DXP4800 Plus. :)

This guide is for cron job that runs a script to update the LEDs every couple minutes, but I'm sure the following can be modified for blinky LEDs as well.

Steps:

@mieitza
mieitza / gcp-startup-script-secret-manager.sh
Created May 16, 2023 14:35 — forked from mikesparr/gcp-startup-script-secret-manager.sh
Example fetching and using Google Cloud Platform Secret Manager secrets from Compute Engine VM startup script
#!/usr/bin/env bash
#####################################################################
# REFERENCES
# - https://cloud.google.com/secret-manager/docs/create-secret-quickstart
# - https://cloud.google.com/secret-manager/docs/manage-access-to-secrets
# - https://cloud.google.com/secret-manager/docs/creating-and-managing-expiring-secrets
# - https://cloud.google.com/secret-manager/docs/secret-rotation
# - https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances
# - https://cloud.google.com/iam/docs/best-practices-service-accounts#single-purpose