Skip to content

Instantly share code, notes, and snippets.

View bradwindy's full-sized avatar
💻
⌘⇧K

Bradley Windybank bradwindy

💻
⌘⇧K
View GitHub Profile
@ftischhauser
ftischhauser / DoVi_Check_Infuse_Compatibility.ps1
Last active May 28, 2024 17:40
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."
}
@bradwindy
bradwindy / guide.txt
Last active January 19, 2025 20:14
Edgerouter X 2Degrees PPPoE WAN IPv4 + IPv6 Setup Steps
Edgerouter X 2Degrees PPPoE WAN IPv4 + IPv6 Setup Steps:
Chapter 1 - The Basics:
1) Connect computer to eth0
2) Set computer to have a static/manual IP connection over this ethernet connection with the following settings:
- IP addr: 192.168.1.2
- Subnet: 255.255.255.0
- Router/gateway: 192.168.1.1
3) Navigate to 192.168.1.1 in a browser
@emilyst
emilyst / 99-usb-cdrom.rules
Last active February 9, 2025 20:46
Description for getting MakeMKV working on Synology with DSM 7 using jlesage/makemkv via Docker Compose
SUBSYSTEMS=="usb", ATTRS{idVendor}=="", ATTRS{idProduct}=="", GROUP="cdrom", MODE="0666"
@Samyak2
Samyak2 / oh-my-zsh-bira-conda-venv.md
Last active October 7, 2024 22:04
Adding virtualenv and conda support to Oh My Zsh Bira theme
@nomaster
nomaster / config.boot
Last active October 5, 2023 07:35
EdgeRouter: DNS forwarding to CloudFlare with DNSSEC
set service dns forwarding name-server 1.1.1.1
set service dns forwarding name-server 1.0.0.1
set service dns forwarding name-server '2606:4700:4700::1111'
set service dns forwarding name-server '2606:4700:4700::1001'
set service dns forwarding options dnssec
set service dns forwarding options trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
set service dns forwarding options trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D
set service dns forwarding options dnssec-check-unsigned
set service dns forwarding options dnssec-timestamp=/config/dnsmasq/dnsmasq.time
@sgbasaraner
sgbasaraner / titlecase.swift
Created November 29, 2017 08:32
Title Case Extension for Swift 4
extension String {
func titlecased() -> String {
if self.count <= 1 {
return self.uppercased()
}
let regex = try! NSRegularExpression(pattern: "(?=\\S)[A-Z]", options: [])
let range = NSMakeRange(1, self.count - 1)
var titlecased = regex.stringByReplacingMatches(in: self, range: range, withTemplate: " $0")

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@csarigoz
csarigoz / run_exe_file_in_wine
Created March 8, 2016 08:24
Applescript for Running an exe file in wine
#open gemius explorer
tell application "Terminal"
do script "/usr/local/bin/wine ~/.wine/drive_c/Program\\ Files/Gemius/gemiusExplorer/gemiusExplorer.exe"
end tell