Skip to content

Instantly share code, notes, and snippets.

View TikoTako's full-sized avatar
🤔
Is this real life?

TikoTako TikoTako

🤔
Is this real life?
View GitHub Profile
@TikoTako
TikoTako / [FIX] ToolsAPI.md
Created May 8, 2024 17:04
[FIX] ToolsAPI not found and/or cant build.

[IDE Main Menu]
Project > Options*

[Options window]
Building > Delphi Compiler
Search path (Add) -> C:\Program Files (x86)\Embarcadero\Studio\22.0\source\ToolsAPI

Packages > Runtime Packages
Link with runtime package -> true
Runtime packages (Add) -> designide

@TikoTako
TikoTako / manualadb.bat
Created May 3, 2024 23:58 — forked from jimmckeeth/manualadb.bat
Manual ADB Deployment from RAD Studio Tools Menu
@echo off
REM Call from Delphi/RAD Studio IDE with the following parameters
REM $PATH($EXENAME) $NAMEONLY($PROJECT)
echo =============================================================
echo Be sure you Compile Android 64 and Deploy [Shift-Ctrl-Alt-F9]
echo.
echo Also set <application android:resizeableActivity="true"> in AndroidManifest.template.xml
echo =============================================================
echo Path: %1
set apk=%2\bin\%2.apk
@TikoTako
TikoTako / gist:1151ae1e874e2e13161216b88a1d3ec0
Created April 30, 2024 21:57
Connect to an android emulator on another pc (windows)
Emulator (host)
>netsh interface portproxy add v4tov4 listenport=6000 listenaddr=192.168.5.10 connectport=5555 connectaddress=127.0.0.1
>netsh advfirewall firewall add rule name="Open Port 6000" dir=in action=allow protocol=TCP localport=6000
192.168.5.10 is the host ip (LAN)
6000 is some random port you want to use
Run the emulator wait it load then:
Client
>adb connect 192.168.5.10:6000
@TikoTako
TikoTako / gist:87a0a44ae54eac1060e4d9fc7a8a4f98
Last active May 2, 2024 17:05
Add Android 13 (api 33) to Delphi 11.3 (tested on CE).
Add Android 13 (api 33) to Delphi 11.3 (tested on CE):
Tools > Options
Deployment > SDK Manager
SDK base path -> open that path then go "cmdline-tools\latest\bin"
open command prompt (admin just in case) then run
"sdkmanager cmdline-tools;latest" this will create another dir named "latest-2" when done rename "latest" in "latest-back" or delete it and rename "latest-2" in "latest"
btw i tried "--update" but it didnt update.
"sdkmanager --list_installed"
with delphi 11.3 CE i had "build-tools;32.0.0" "platform-tools" (35.0.1) "platforms:android-32"
"sdkmanager platforms;android-33"
@TikoTako
TikoTako / gist:ac22945043aa35afc8a4acec26d9237e
Created April 17, 2023 00:13
Hyper-V vhdx defrag/compact
https://community.spiceworks.com/topic/2288371-hyper-v-vhdx-fragmentation
tl;dr;
mount-vhd "D:\VMNAME\Virtual Hard Disks\DISKNAME.vhdx"
defrag e: /h /x
defrag e: /h /k /l
defrag e: /h /x
defrag e: /h /k
dismount-vhd "D:\VMNAME\Virtual Hard Disks\DISKNAME.vhdx"
@TikoTako
TikoTako / ANSI.md
Created August 30, 2022 20:49 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@TikoTako
TikoTako / GIT setup for dummies.txt
Last active August 11, 2022 17:41
Easy step-by-step GIT setup for dummies.
1.
a) Download <Simple installer for GnuPG 1.4> from "https://www.gnupg.org/download/"
b) Be sure path is C:\Program Files (x86)\GNU\GnuPG
2.
a) Download <64-bit Git for Windows Setup.> from "https://git-scm.com/download/win"
b) Be sure path is C:\Program Files\Git
c) Set > Use Notepad as Git's default editor.
Open "Git Bash" then do the following: