This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "Example advanced flake.nix for an advanced/general-purpose software package"; | |
| inputs = { | |
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| }; | |
| outputs = { self, nixpkgs, flake-utils }: | |
| flake-utils.lib.eachDefaultSystem (system: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "Advanced flake.nix for nix based development environment"; | |
| inputs.flake-utils.url = "github:numtide/flake-utils"; | |
| inputs.nixpkgs.url = "github:NixOS/nixpkgs"; | |
| outputs = { self, nixpkgs, flake-utils }: | |
| flake-utils.lib.eachDefaultSystem (system: | |
| let | |
| pkgs = import nixpkgs { system = "x86_64-linux"; }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Initial Scene setup: | |
| # Main | |
| # - WorldEnvironment | |
| # - Node3d (which has this script attached) | |
| # -- XROrigin3D | |
| # --- OpenXRFbSceneManager (has Default Scene of static-body-3d.gd with Scene Setup: `setup_scene`) | |
| # --- XRCamera3D | |
| # --- XRController3D (Left) | |
| # --- XRController3D (Right) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # OneAPI whisper.cpp ongoing in-development build process | |
| # devShell works(with FHS), `$ nix run .` doesn't work yet, needs OneAPI on nixpkgs/derivation. | |
| { | |
| description = "Development environment for whisper.cpp with Intel compilers and SYCL"; | |
| inputs = { | |
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Example of a binary packaging(storing a frozen binary with deps WITH compiler build) in nix: | |
| # $ nix run --impure --expr 'let pkgs = import <nixpkgs> {}; in pkgs.callPackage ./bitbox-bridge.nix {}' | |
| { | |
| lib, | |
| stdenv, | |
| fetchFromGitHub, | |
| rustPlatform, | |
| pkg-config, | |
| libudev-zero, | |
| }: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function exampleFunc(greeter?: string, another): Promise<string> { | |
| if (!greeter) { | |
| throw new Error('Somethinggg', another); | |
| } | |
| return `Hello, ${greeter} ${another}`; | |
| } | |
| let pcall = (func: Promise<Any> | Function, ...otherArguments: any) => { | |
| if (func instanceof Promise) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** Find all Activity of an app **/ | |
| adb shell dumpsys package | grep -i "package.name" | grep Activity | |
| /** Service Actions **/ | |
| android.app.action.DEVICE_ADMIN_SERVICE | |
| android.intent.action.RESOLVE_INSTANT_APP_PACKAGE | |
| android.intent.action.RESPOND_VIA_MESSAGE | |
| android.intent.action.TTS_SERVICE | |
| android.media.browse.MediaBrowserService |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| DEVICE_IDENTIFIER="adb-RFCW7028MXJ-JZpS3e" # Phone | |
| # DEVICE_IDENTIFIER="adb-2G0YC5ZG2001JS" # VR headset | |
| FALLBACK_HOSTNAME="Android.local" | |
| FOUND_DEVICE=$(avahi-browse --all --resolve --terminate -p | grep 'IPv4' | grep "$DEVICE_IDENTIFIER" | grep '=;') | |
| echo "DEVICE IS:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hi All! | |
| I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future. | |
| Feel free to request any features you'd like to see, and I'll prioritize them accordingly. | |
| One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it. | |
| Here's the link to the repository: https://github.com/Pulimet/ADBugger | |
| Current viewed activity: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let pcall = (func: Promise<Any> | Function, ...args) => { | |
| if (func instanceof Promise) { | |
| return new Promise(async (resolve) => { | |
| let error | |
| try { | |
| return resolve([true, await promise]) | |
| } catch (err) { | |
| error = err | |
| } |
NewerOlder