Skip to content

Instantly share code, notes, and snippets.

View thereisnotime's full-sized avatar
🏗️
building something

There Is No TIme thereisnotime

🏗️
building something
View GitHub Profile
@thereisnotime
thereisnotime / termux-display-over-apps-fix.md
Created May 12, 2026 11:53
Termux Display over other apps permission denied on Android 12+ - fix via ADB

Termux "Display over other apps" permission denied on Android 12+ (Pixel 6)

Problem

On Android 12+, enabling Display over other apps for Termux (F-Droid build) fails silently. The system shows a popup:

"App was denied access. Access to this permission can put your personal info at risk."

The toggle in Settings is missing or greyed out and cannot be enabled through the UI, even though Termux:API may show no such restriction.

@thereisnotime
thereisnotime / CVE-2026-24061-poc.md
Created January 23, 2026 14:43
CVE-2026-24061 - PoC Script - proof of concept

Go find something better to do, creep.

@thereisnotime
thereisnotime / .aiignore
Last active January 12, 2026 13:40
Securing AI Workflows: Smarter .aiignore (and more) for Safer Code and Context
# thereisnotime v1
# Secrets and credentials
*.env
.env.*
secrets.*
credentials.*
*.key
*.pem
*.crt
@thereisnotime
thereisnotime / README.md
Created October 13, 2024 14:35
Install Home Assistant Supervised on Debian 12

Setup HA Supervised on Debian 12

How to Run

  1. Do sudo su
  2. Copy-paste the script (it will reboot the machine)

NOTE: I am using with with Vagrat's shell provisioner as it is easier (with privileged execution).

Next Steps

@thereisnotime
thereisnotime / vs_code_auth_mismatch.md
Last active March 20, 2024 21:27
VSCode Tunnels Bug Workaround

If you get the error "The workbench failed to connect to the server (Error: Connection error: Unauthorized client refused: auth mismatch)" when trying to connect from one VS Code instance to VS Code tunnel on another machine do the following workaround:

  1. Open the remote URL in the browser.
  2. Close the tab few times before "Yes I Trust" popup appears, press it.
  3. Done. Now you can again use the desktop version to connect to a tunnel.

Thanks Microsoft...

@thereisnotime
thereisnotime / example-github-workflow.yaml
Created July 28, 2023 18:55
Deploy / update AWS Lambda environment variables / secrets from .env or key-value file
- name: Prepare | Secrets
id: prep_secret
run: echo "::set-output name=LAMBDA_SECRET_NAME::LAMBDA_$(echo '${{ github.event.inputs.lambda_name }}' | tr '[:lower:]' '[:upper:]')_ENV"
- name: Setup | Serverless Secret Config
# Write a big ENV secret to a .env file
run: |
echo "${{ secrets[steps.prep_secret.outputs.LAMBDA_SECRET_NAME] }}" >> .env
- name: Deploy | Update Lambda Secrets
@thereisnotime
thereisnotime / web-servers.md
Created October 16, 2022 19:44 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@thereisnotime
thereisnotime / install_anydesk.sh
Created February 3, 2021 11:36
Install AnyDesk on Ubuntu
cd /tmp
sudo wget https://download.anydesk.com/linux/anydesk_6.1.0-1_amd64.deb
sudo dpkg -i anydesk_6.1.0-1_amd64.deb
sudo apt install -f
sudo apt update
anydesk
@thereisnotime
thereisnotime / Set-PrivateKeyPermissions.ps1
Created November 16, 2020 22:42
Windows - Fix private SSH key file permissions, ownership and inheritance
function Set-PrivateKeyPermissions {
param (
[string]$KeyLocation
)
if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Error "Must run as administrator. Exiting..."
Return
}
$acl = Get-Acl "$KeyLocation"
$currentUser = New-Object System.Security.Principal.Ntaccount($acl.owner)