This file contains 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
---@diagnostic disable: need-check-nil --SHUTUP DAMN LOGS | |
function toHex(str) | |
return (str:gsub(".", function(char) return string.format("%02x", char:byte()) end)) | |
end | |
function toB64(data)--ew, b64 sucks | |
local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' | |
return ((data:gsub('.', function(x) | |
local r,b='',x:byte() | |
for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end | |
return r; |
This file contains 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
1. (sv_cheats 1) in title screen on console | |
2. (sv_airaccelerate 0) in console, anywhere | |
3. (sv_airstrafeaccelerate insert-speed-not-0) in console, anywhere | |
4. Enjoy! Holding space and W does not work, and you will have to Bhop like in Gsc/Src games. |
This file contains 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
--!/usr/bin/env lua | |
---@diagnostic disable: need-check-nil | |
-- frickoffcpuz.lua | |
-- | |
-- Converts BIOS file generated from CPU-Z to actual BIOS file so you | |
-- can use it with many programs. | |
-- CPU-Z will generate txt file with both binary data and ASCII data, | |
-- but doesn't work with many programs as they except binary data. | |
-- |
This file contains 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
local m = os.date("!%M") -- UTC minutes | |
local s = os.date("!%S") -- UTC seconds | |
s = m * 60 + s -- combining seconds and minutes | |
local h = math.floor(s / 300) -- freeso hour calculation | |
if h == 0 then -- 0:xx to 24:xx | |
h = 24 | |
end | |
m = math.floor(s % 300 / 5) -- freeso minutes calculation |