Skip to content

Instantly share code, notes, and snippets.

@ftischhauser
ftischhauser / DoVi_Check_Infuse_Compatibility.ps1
Last active March 29, 2024 05:04
DoVi_Check_Infuse_Compatibility.ps1
$fn = $args[0]
Start-Process -Wait -NoNewWindow 'cmd.exe' -ArgumentList "/C `"ffmpeg.exe -hide_banner -loglevel panic -i `"$fn`" -c:v copy -frames:v 1 -vbsf hevc_mp4toannexb -f hevc - | dovi_tool extract-rpu - -o `"$($fn).RPU.bin`"`""
Start-Process -Wait -NoNewWindow 'cmd.exe' -ArgumentList "/C `"dovi_tool.exe info `"$($fn).RPU.bin`" -f 0 > `"$($fn).RPU.json`"`""
$rpu = (Get-Content "$($fn).RPU.json" | Select-Object -Skip 1) | ConvertFrom-Json
if ($rpu.dovi_profile) {
Write-Output "Profile: $($rpu.dovi_profile)"
if ($rpu.dovi_profile -eq 5) {
Write-Output "Natively supported."
}
@andrewfraley
andrewfraley / pbs_on_rpi.md
Last active March 29, 2024 05:03
Backup a Raspberry Pi to Proxmox Backup Server using the Proxmox Backup Client

Backup a Raspberry Pi to Proxmox Backup Server using the Proxmox Backup Client

This works on a Pi 4, and should work on a Pi 3, but to work on a Pi Zero you would have to figure out how to compile your own client. More info in this thread on the Proxmox forums.

Determine if your Pi is 32bit or 64bit

Run the following command. If you get arm64, it's 64bit, otherwise you'll see armv7l which is 32bit.

uname -m
@jeffliu783
jeffliu783 / discord_bot.py
Created May 18, 2023 00:23 — forked from danielgxm/discord_bot.py
Discord自动聊天机器人,撸白名单必备!
# -*- coding: utf-8 -*-
"""
@Time : 2021/10/3 19:18
@Auth : d1rrick DanielGao.eth
@File :autochat.py
@IDE :vscode
"""
import requests
import json
@baryluk
baryluk / mesa-build.py
Last active March 29, 2024 05:01
Build Mesa from git and libdrm git for Debian. amdgpu build 64-bit and 32-bit for Debian stable, testing and unstable, and possibly Ubuntu, Mint, PopOS, etc. No root required.
#!/usr/bin/env python3
# A simple script to build 64-bit and 32-bit Mesa and libdrm on amd64 Debian
# stable, Debian testing, Debian unstable, and possibly some Ubuntu versions
# with some tweaks.
#
# libdrm is build too, because often version right now in Debian sid and experimental
# is too old for current mesa git repo. Also it is nice to build debug
# versions of libdrm when troubleshooting some crashes and bugs.
#
@zhnlk
zhnlk / gdfsi-2015.txt
Created October 31, 2017 11:05
Google Dorks For SQL Injection
inurl:trainers.php?id=
inurl:buy.php?category=
inurl:article.php?ID=
inurl:play_old.php?id=
inurl:declaration_more.php?decl_id=
inurl:pageid=
inurl:games.php?id=
inurl:page.php?file=
inurl:newsDetail.php?id=
inurl:gallery.php?id=
@TABASCOatw
TABASCOatw / solana_repositories.json
Created May 5, 2023 19:10
Indexed Solana Repositories April 2023 (expect 2% false positives)
{
"chainify": "https://github.com/liquality/chainify",
"solana-chat-app": "https://github.com/jsoneaday/solana-chat-app",
"wallet-adapter": "https://github.com/solana-labs/wallet-adapter",
"audius-protocol": "https://github.com/AudiusProject/audius-protocol",
"raydium-ui": "https://github.com/raydium-io/raydium-ui",
"espresso-cash-public": "https://github.com/espresso-cash/espresso-cash-public",
"backpack": "https://github.com/coral-xyz/backpack",
"projects": "https://github.com/solidproof/projects",
"protocol-v1": "https://github.com/drift-labs/protocol-v1",
@dcommander
dcommander / Makefile
Last active March 29, 2024 04:52
Simple program to demonstrate OpenGL rendering without an X server
all: egltest
egltest: egltest.c
cc -O3 -Wall -Werror -I. -o $@ $^ -lOpenGL -lEGL
clean:
rm -f *.o egltest
@trongthaonh
trongthaonh / rails-validates.md
Created November 7, 2016 03:44 — forked from nashirox/rails-validates.rb
Rails のバリデーション用正規表現集

数字

# 全て数値(全角)
/^[0-9]+$/

# 全て数値(半角)
/^[0-9]+$/

# 全て数値(全角,半角)
@ajumalp
ajumalp / Install Mosquitto MQTT on Synology NAS Server.txt
Last active March 29, 2024 04:36
Install Mosquitto MQTT on Synology NAS Server
From https://synocommunity.com add http://packages.synocommunity.com to your NAS package sources.
For that, go to NAS->Package Cnter->Click Settings->Package Sources tab.
Then from the community, you can see Mosquitto. Install it.
After installing, please stop the Mosquitto service before updating configuration. You can start service after changes.
Enable Admin login for Synology
Enable SSH in NAS
Download putty and connect to NAS Server
Login using admin
Change to root user [sudo -i, {use admin password}]
Find mosquitto.conf file [find / -name mosquitto.conf]
@KlassenKonstantin
KlassenKonstantin / Pull2Refresh.kt
Created March 26, 2024 11:23
Fitbit style Pull 2 Refresh
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
WindowCompat.setDecorFitsSystemWindows(window, false)
super.onCreate(savedInstanceState)
setContent {
P2RTheme {
// A surface container using the 'background' color from the theme
Surface(modifier = Modifier.fillMaxSize(), color = MaterialTheme.colorScheme.background) {
CompositionLocalProvider(
LocalOverscrollConfiguration provides null // Disable overscroll otherwise it consumes the drag before we get the chance