This file contains 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 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 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 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 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 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 | |
} |
- Downloaded nixos-21.11/latest-nixos-gnome-x86_64-linux.iso__ from channels.nixos.org__.
- NixOS manual instructs to create the USB stick using
dd
This file contains 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
import fs from "node:fs"; | |
import http from "node:http"; | |
import path from "node:path"; | |
import process from "node:process"; | |
const PORT = 8000; | |
const STATIC_PATH = path.join(process.cwd(), "./static"); | |
const NOT_FOUND_HTML_PATH = path.join(STATIC_PATH, "./404.html"); | |
const MIDDLEWARE_HANDLER = async (req, res) => { |
This file contains 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
import process from "process"; | |
import chrome from 'chrome-cookies-secure'; | |
import Puppeteer from "puppeteer"; | |
const HOURLY_RATE = process.env.HOURLY_RATE || 320; | |
const DEBUG = process.env.DEBUG; | |
const CHROME_PROFILE = 'Profile 2'; // Change this to your chrome profile | |
const DEFAULT_TIMEOUT = 3000; | |
const BROWSER_HEIGHT = 800; |
NewerOlder