Skip to content

Instantly share code, notes, and snippets.

View ExtReMLapin's full-sized avatar
🤠
howdy

ExtReMLapin

🤠
howdy
  • Alphabet boys
  • Stacking up at your door
View GitHub Profile
local fileWantToRape = "creation_fjogjytiubbsckso.main"
function decompress_File(inputf, outputf)
local i = 0;
while i < 100 do
local str = file.Read(inputf, "BASE_PATH")
str = string.Right(str, string.len(str)-i)
str = util.Decompress(str)
if str then print("Offset of junk bytes :" .. i) print(str) file.Write(outputf, str) break end
@ExtReMLapin
ExtReMLapin / gist:27b68cacaa5a67ab782f
Last active April 14, 2018 05:18
testfinddecompressall
filelist = {}
local folderblacklist = {"garrysmod/downloads/", "garrysmod/cache/", "garrysmod/maps/","platform/", "garrysmod/gamemodes/", "garrysmod/models/", "garrysmod/settings/", "garrysmod/materials/","garrysmod/resource/","garrysmod/screenshots/", "garrysmod/sound/", "sourceengine/", "garrysmod/addons/", "garrysmod/download/"}
local fileblacklist = {"png", "vtf", "dll", "exe", "jpg", "vmt", "vtx", "wav", "txt", "mdmp", "mdl", "res"}
function getallfiles(path)
if table.HasValue(folderblacklist, path) then return end
path = path or ""
local flist = file.Find(path .."*", "BASE_PATH")
local dlist = select(2,file.Find(path .."*", "BASE_PATH"))
if #dlist > 0 then
for k, v in pairs(dlist) do
@ExtReMLapin
ExtReMLapin / DGSErot.lua
Last active February 15, 2016 14:12
rot finder DGSE entry chalenge kek 2ez4me
local str = "RH UNTR ONTUDY CDBGHEEQDQ BDBH, ZK JHMCH DRS EZHS ONTQ UNTR !"
local function ascii_base(s)
return s:lower() == s and ('a'):byte() or ('A'):byte()
end
local function caesar_cipher(str, key)
return (str:gsub('%a', function(s)
local base = ascii_base(s)
return string.char(((s:byte() - base + key) % 26) + base)
@ExtReMLapin
ExtReMLapin / plasmamain.c
Created February 15, 2016 13:48
plasma minilibx
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* init.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pfichepo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/01/11 17:07:38 by pfichepo #+# #+# */
/* Updated: 2016/01/11 17:07:41 by pfichepo ### ########.fr */
/* */
local loader = require 'love-loader'
local finishedLoading = false
local screenWidth, screenHeight = love.graphics.getWidth(), love.graphics.getHeight()
instant_fps = 60
local TEST_ERROR = false
--[[
Server commands :
vu.ColorCorrectionEnabled
vu.SunFlareEnabled
vu.TimeScale
--]]
-env "prod"
-server
-dedicated
-updateBranch "vu" -- ?
-dwebui
-mHarmonyHost
-RemoteAdminPort
-Server.RemoteAdministrationPort
-activate
-o_mail -- what
@ExtReMLapin
ExtReMLapin / derper.lua
Last active June 5, 2020 07:38
very impertant
local derpdictionary = {
["garry"] = {"gaery newbmen", "gery"},
["gmod"] = {"jbmod", "gaymod"},
["about"] = {"abt", "abot"},
["above"] = {"aboev"},
["accept"] = {"acept"},
["actually"] = {"accualy", "acuali", "accually"},
["addicted"] = {"adikted"},
["addict"] = {"adikt"},
["after"] = {"aftr"},
--[[
local ‪= _G local ‪‪= string local ‪‪‪= ‪‪.gmatch local ‪‪‪‪= ‪‪.byte local ‪‪‪‪‪= ‪‪.len local ‪‪‪‪‪‪= ‪‪.char local ‪‪‪‪‪‪‪= table local ‪‪‪‪‪‪‪‪= ‪‪‪‪‪‪‪.concat local ‪‪‪‪‪‪‪‪‪= ‪‪‪‪‪‪‪.insert local ‪‪‪‪‪‪‪‪‪‪= ‪‪‪‪‪‪‪.pack local ‪‪‪‪‪‪‪‪‪‪‪= pairs local ‪‪‪‪‪‪‪‪‪‪‪‪= {0,1,1,0,1,0,0,1} local ‪‪‪‪‪‪‪‪‪‪‪‪‪= "" local ‪‪‪‪‪‪‪‪‪‪‪‪‪‪= bit local ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪= ‪‪‪‪‪‪‪‪‪‪‪‪‪‪.bxor local ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪= math local ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪= ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪.floor local ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪= 1 local ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪= 0 for _,c in ‪‪‪‪‪‪‪‪‪‪‪(‪‪‪‪‪‪‪‪‪‪‪‪) do c= (c+1)/2 c= ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪(c) ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪= ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪+ ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪* c c= c* 2 end local ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪= function(s) local ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪= "" local ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪= {‪‪‪‪(s,1,‪‪‪‪‪(s))} for _,n in ‪‪‪‪‪‪‪‪‪‪‪(‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪) do ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪= ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪ .. ‪‪‪‪‪‪(‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪(n,‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪)) end return ‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪ end ‪[‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪‪("E``GWHqeBmha")]() C
function love.load()
love.window.setMode(2000, 1000, {resizable=false, vsync=false, minwidth=400, minheight=300})
end
function HSV(h, s, v)
if s <= 0 then return v,v,v end
h, s, v = h/256*6, s/255, v/255
local c = v*s
local x = (1-math.abs((h%2)-1))*c
local m,r,g,b = (v-c), 0,0,0