Skip to content

Instantly share code, notes, and snippets.

View thewh1teagle's full-sized avatar
💭
coding

thewh1teagle

💭
coding
  • localhost
  • The martian
View GitHub Profile
@thewh1teagle
thewh1teagle / README.md
Last active February 24, 2024 00:06
Configure GPG commit signing windows

Install https://www.gpg4win.org/

Add to %appdata%\gnupg\gpg.conf to disable GUI asking password

code %appdata%\gnupg\gpg.conf

pinentry-mode loopback
default-cache-ttl 2592000
```console
error: failed to select a version for the requirement `tauri-build = "^2.0.0-beta.2"`
candidate versions found which didn't match: 2.0.0-beta.1, 2.0.0-beta.0, 2.0.0-alpha.14, ...
location searched: crates.io index
required by package `app v0.1.0 (/Users/user/Documents/tauri/app)`
if you are looking for the prerelease package it needs to be specified explicitly
tauri-build = { version = "2.0.0-beta.1" }
perhaps a crate was updated and forgotten to be re-vendored?
```

Error

Updating crates.io index
error: failed to select a version for `tauri`.
   ... required by package `tauri-plugin-dialog v2.0.0-beta.0 (/Users/user/Documents/tauri/plugins-workspace/plugins/dialog)`
   ... which satisfies path dependency `tauri-plugin-dialog` of package `app v0.1.0 (/Users/user/Documents/tauri/app)`
versions that meet the requirements `^2.0.0-beta.1` are: 2.0.0-beta.2, 2.0.0-beta.1

the package `tauri` links to the native library `Tauri`, but it conflicts with a previous package which links to `Tauri` as well:
package `tauri v2.0.0-beta.2 (/Users/user/Documents/tauri/tauri/core/tauri)`
@thewh1teagle
thewh1teagle / README.md
Last active February 16, 2024 23:02
Stream any ffmpeg input to web (Posix only). make sure the input works first by trying the command
video.mp4

Write stream with mplayer to fifo file (ram)

mkfifo in
mplayer -dumpstream video.mp4 -dumpfile in
@thewh1teagle
thewh1teagle / vibe.json
Created February 3, 2024 11:45
Vibe OTA updates
{
"version": "v1.0.0",
"notes": "Test version",
"pub_date": "2020-06-22T19:25:57Z",
"platforms": {
"darwin-x86_64": {
"signature": "Content of app.tar.gz.sig",
"url": "https://github.com/username/reponame/releases/download/v1.0.0/app-x86_64.app.tar.gz"
},
"darwin-aarch64": {
@thewh1teagle
thewh1teagle / main.py
Last active February 2, 2024 09:09
print dependencies of binary
from typing import List
from pathlib import Path
import os
import re
import subprocess
import sys
class Dependency:
def __init__(self, parent: Path, name: str, path: Path, address: str):
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
use std::str::FromStr;
use tauri::Manager;
use url::Url;
@thewh1teagle
thewh1teagle / README.md
Last active January 28, 2024 17:08
Multiwebview in swiftU

Multiwebview in swiftU

  1. Create App project in Xcode with SwiftUI interface.
  2. Allow outgoing + incoming internet by pressing the project name -> Signing & Capabilities -> App sandbox.
@thewh1teagle
thewh1teagle / main.swift
Created January 28, 2024 08:09
Simple swift webview (don't forget to allow outgoing and incoming internet in capabilities settings)
import SwiftUI
import WebKit
struct WebView: NSViewRepresentable {
let request: URLRequest
func makeNSView(context: Context) -> WKWebView {
return WKWebView()
}
@thewh1teagle
thewh1teagle / README.md
Created January 27, 2024 16:26
stream ffmpeg to web

Stream rtsp to web using ffmpeg and mediamtx

#!/bin/bash

name=mediamtx_v1.5.0_darwin_arm64
version=v1.5.0

vid_name=big_buck_bunny_720p_10mb.mp4