Remove obsolete stuffs

This commit is contained in:
leokhoa
2025-10-05 17:33:37 +02:00
parent 71b1fe4850
commit 1c759708e4
15680 changed files with 4890893 additions and 139873 deletions

View File

@@ -0,0 +1,2 @@
*.sh text eol=lf
*.pl text eol=lf

View File

@@ -0,0 +1,63 @@
#!/usr/bin/perl
# Author: Todd Larason <jtl@molehill.org>
# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $
# use the resources for colors 0-15 - usually more-or-less a
# reproduction of the standard ANSI colors, but possibly more
# pleasing shades
# colors 16-231 are a 6x6x6 color cube
for ($red = 0; $red < 6; $red++) {
for ($green = 0; $green < 6; $green++) {
for ($blue = 0; $blue < 6; $blue++) {
printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\",
16 + ($red * 36) + ($green * 6) + $blue,
($red ? ($red * 40 + 55) : 0),
($green ? ($green * 40 + 55) : 0),
($blue ? ($blue * 40 + 55) : 0));
}
}
}
# colors 232-255 are a grayscale ramp, intentionally leaving out
# black and white
for ($gray = 0; $gray < 24; $gray++) {
$level = ($gray * 10) + 8;
printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\",
232 + $gray, $level, $level, $level);
}
# display the colors
# first the system ones:
print "System colors:\n";
for ($color = 0; $color < 8; $color++) {
print "\x1b[48;5;${color}m ";
}
print "\x1b[0m\n";
for ($color = 8; $color < 16; $color++) {
print "\x1b[48;5;${color}m ";
}
print "\x1b[0m\n\n";
# now the color cube
print "Color cube, 6x6x6:\n";
for ($green = 0; $green < 6; $green++) {
for ($red = 0; $red < 6; $red++) {
for ($blue = 0; $blue < 6; $blue++) {
$color = 16 + ($red * 36) + ($green * 6) + $blue;
print "\x1b[48;5;${color}m ";
}
print "\x1b[0m ";
}
print "\n";
}
# now the grayscale ramp
print "Grayscale ramp:\n";
for ($color = 232; $color < 256; $color++) {
print "\x1b[48;5;${color}m ";
}
print "\x1b[0m\n";

View File

@@ -0,0 +1,27 @@
# wslbridge
wslbridge is a Cygwin program that allows connecting to the WSL command-line
environment over TCP sockets, as with ssh, but without the overhead of
configuring an SSH server.
## Usage
Usage is similar to that of `ssh`. Run `wslbridge` with no arguments to start
a bash session in a WSL pty. Append a command-line to run that command in WSL
without a pty (i.e. using 3 pipes for stdio).
`wslbridge` runs its WSL command with either a pty or using pipes. Pass `-t`
to enable pty mode or `-T` to enable pipe mode. Pass `-t -t` to force pty mode
even if stdin is not a terminal.
Pass `-eVAR=VAL` to set an environment variable within WSL. Pass just `-eVAR`
to copy the value from the Cygwin environment.
## Copyright
wslbridge is distributed under the MIT license:
<https://github.com/rprichard/wslbridge/blob/master/LICENSE.txt>
cygwin library is distributed under the LGPL license:
<https://github.com/Maximus5/Cygwin-origin/blob/master/winsup/COPYING.LIB>
<https://github.com/Maximus5/Cygwin-origin/blob/master/winsup/CYGWIN_LICENSE>

Binary file not shown.

View File

@@ -0,0 +1,5 @@
; Generated by Integrity Checker Plugin (by Ariman)
668ee195182b74e544a1f939f47974c15b9a97a5a50d38c47798d244eeafe941 *wslbridge.exe
b5498e8e6ae9f741c047de9bab046e1bb4b5bebcfa441665f153d072e354b543 *cygwin1.dll
700bc914ed7b769b536f4f73ef2dbd6838ff6ba3df4382a3315375091242a376 *wslbridge-backend

View File

@@ -0,0 +1,5 @@
#/bin/sh
uname -a
./256colors2.pl
cd ~
bash -l -i

View File

@@ -0,0 +1,47 @@
@echo off
rem This sample file demonstrates ability to use 256 colors
rem in Windows subsystem for Linus started in ConEmu tab.
rem TAGS: ConEmu, cygwin/msys connector, wslbridge.
ConEmuC -osverinfo > nul
if errorlevel 2560 (
rem Windows 10 detected, OK
) else (
call cecho "Windows 10 is required"
exit /b 100
)
if not exist "%windir%\system32\bash.exe" (
call cecho "Windows subsystem for linux was not installed!"
call cecho "https://conemu.github.io/en/BashOnWindows.html#TLDR"
exit /b 100
)
setlocal
if exist "%~dp0wslbridge-backend" goto wsl_ready
call cecho /yellow "wslbridge is not installed! download latest ConEmu distro"
goto err
:wsl_ready
echo 1: "%~1"
if "%~1" == "-run" goto do_run
ConEmuC -c "-new_console:d:%~dp0" "%~0" -new_console:c:h9999:C:"%LOCALAPPDATA%\lxss\bash.ico" -run
goto :EOF
:do_run
cd /d "%~dp0"
set "PATH=%~dp0;%PATH%"
call SetEscChar
echo %ESC%[9999H
"%~dp0..\conemu-cyg-64.exe" --wsl -t ./wsl-boot.sh
goto :EOF
:err
call cecho "wslbridge-backend was not installed properly"
timeout 10
exit /b 1
goto :EOF

Binary file not shown.

Binary file not shown.