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
| On the online machine: | |
| winget install Anthropic.ClaudeCode | |
| It displays the url, such as: | |
| https://storage.googleapis.com/claude-code-dist-86c565f3-e756-42ad-8dfa-d59b1c096819/claude-code-releases/2.1.70/win32-x64/claude.exe | |
| On the offline machine: | |
| Run and exit claude.exe to have it make C:\Users\smith\.claude.json | |
| Might also have settings.json |
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
| On PC with internet: | |
| Download the Visual Studio installer: https://visualstudio.microsoft.com/downloads/ | |
| Open an admin console | |
| .\VisualStudioSetup.exe --layout "C:\VS2026Offline" --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US | |
| On offline PC: | |
| Open an admin console | |
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
| Run SOCKS proxy | |
| Host B | |
| Linux VM | |
| VM properties | |
| Give it a NAT NIC | |
| Click the Port Forwarding button | |
| Forward 22 to 22 | |
| Configure it to allow SSH to listen to other machines: |
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
| Use these steps to use symbols on an offline PC. | |
| Create a manifest of the drivers, exes & dlls: | |
| Download pdblister: https://github.com/microsoft/pdblister | |
| On admin console: | |
| pdblister manifest C:\Windows | |
| Download the symbols using a PC with internet access: |
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
| In Windows, there are two issues at play. | |
| The Windows SMB Client only connects on port 445. | |
| The Windows SMB Server reserves port 445 on all interfaces at startup, preventing other applications from binding to it (for the purposes of port forwarding). | |
| The following steps overcome the second issue, ultimately allowing you to access your SAMBA share from a Windows PC via the SSH tunnel. | |
| Admin rights are required for the initial setup. | |
| Allow binding to 127.0.0.2 |
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
| .\ffmpeg.exe -f gdigrab -framerate 30 -video_size 1920x1080 -offset_x 1920 -offset_y 0 -i desktop -vcodec mpeg4 -q 12 -f mpegts udp://127.0.0.1:5000 | |
| .\ffmpeg.exe -f gdigrab -framerate 30 -video_size 1920x1080 -offset_x 1920 -offset_y 0 -i desktop -c:v libx264 -preset ultrafast -tune zerolatency -b:v 5000k -maxrate 6000k -bufsize 12000k -g 30 -f mpegts udp://127.0.0.1:5000 | |
| .\ffplay.exe -fflags nobuffer -flags low_delay -probesize 20000 -analyzeduration 1 -framedrop -f mpegts udp://127.0.0.1:5000 |
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
| Linux | |
| ./qemu-system-x86_64.exe -cdrom "C:\iso\clonezilla-live-3.3.0-33-amd64.iso" -boot d -m 8192 -netdev user,id=net0,hostfwd=tcp:127.0.0.1:5555-:22 -device e1000,netdev=net0 | |
| Windows 10 | |
| .\qemu-img.exe create -f qcow2 "C:\VMs\win10\disk1.qcow2" 2T | |
| .\qemu-system-x86_64.exe -smp 4 -cdrom "C:\iso\en-us_windows_10_enterprise_ltsc_2021_x64_dvd_d289cf96.iso" -hda "C:\VMs\win10\disk1.qcow2" -boot d -m 8192 -netdev user,id=net0,hostfwd=tcp::5555-:22 -device e1000,netdev=net0 |
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
| On the server side: | |
| Allow all apps: | |
| HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList | |
| "fDisabledAllowList"=dword:00000001 | |
| On the client side: |
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
| # Only managed to to get Xvnc working rather than xorg | |
| apt update | |
| apt install xrdp tigervnc-standalone-server -y | |
| apt install xinit xorg libfontenc1 -y | |
| apt install openbox firefox-esr -y | |
| nano /etc/xrdp/startwm.sh |
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
| using CppSharp; | |
| using CppSharp.AST; | |
| using CppSharp.Generators; | |
| using CppSharp.Parser; | |
| namespace BindingGenerator | |
| { | |
| public class BindingGenerator : ILibrary | |
| { | |
| public static void Main(string[] args) |
NewerOlder