Skip to content

Instantly share code, notes, and snippets.

View jacksonie's full-sized avatar
💥
learn to live.

Jackye jacksonie

💥
learn to live.
  • Brasil
View GitHub Profile
@jacksonie
jacksonie / trycatch.lua
Created June 15, 2025 20:21 — forked from Zbizu/trycatch.lua
Lua port of "try catch finally"
-- Lua try / catch port
-- example:
--[[
TryCatch(
-- try
function()
-- code to execute
-- throw a message
throw("some message")
@jacksonie
jacksonie / trycatch.lua
Created June 15, 2025 20:20 — forked from Zbizu/trycatch.lua
Lua port of "try catch finally"
-- Lua try / catch port
-- example:
--[[
TryCatch(
-- try
function()
-- code to execute
-- throw a message
throw("some message")
@jacksonie
jacksonie / string_util.lua
Created November 3, 2024 00:04 — forked from kgriffs/string_util.lua
Lua string utilities (contains, startswith, endswith, replace, insert)
function string:contains(sub)
return self:find(sub, 1, true) ~= nil
end
function string:startswith(start)
return self:sub(1, #start) == start
end
function string:endswith(ending)
@jacksonie
jacksonie / private_fork.md
Created September 14, 2024 19:19 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@jacksonie
jacksonie / protocolreplay.cpp
Created September 14, 2024 14:23 — forked from lyuz1n/protocolreplay.cpp
Cam System 10.98
#include "otpch.h"
#include "protocolreplay.h"
#include "outputmessage.h"
#include "configmanager.h"
#include "game.h"
#include "ban.h"
#include "scheduler.h"
@jacksonie
jacksonie / tibia.py
Created September 13, 2024 20:35 — forked from cymruu/tibia.py
tibia.py
'''based on volf ram code'''
import random
import struct
import zlib
import socket
OT_RSA = 109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413
def rsa_encrypt(m):
m = sum(x*pow(256, i) for i, x in enumerate(reversed(m)))
c = pow(m, 65537, OT_RSA)
return bytes((c >> i) & 255 for i in reversed(range(0, 1024, 8)))
$ git remote rm origin
$ git remote add origin [email protected]:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@jacksonie
jacksonie / gist:8b1092f89777b3f4e0e4918140c7fade
Created April 17, 2024 04:17 — forked from jacksonfdam/gist:3000275
Regular Expressions List
//Regular Expressions List
//Short Tutorial
\ // the escape character - used to find an instance of a metacharacter like a period, brackets, etc.
. // match any character except newline
x // match any instance of x
^x // match any character except x
[x] // match any instance of x in the bracketed range - [abxyz] will match any instance of a, b, x, y, or z
| // an OR operator - [x|y] will match an instance of x or y
@jacksonie
jacksonie / CPP colors
Created April 5, 2024 15:47 — forked from Kielx/CPP colors
c++ terminal output colors
You need the terminal color codes. For linux it's the following (your system might be different, look it up):
//the following are UBUNTU/LINUX, and MacOS ONLY terminal color codes.
#define RESET "\033[0m"
#define BLACK "\033[30m" /* Black */
#define RED "\033[31m" /* Red */
#define GREEN "\033[32m" /* Green */
#define YELLOW "\033[33m" /* Yellow */
#define BLUE "\033[34m" /* Blue */
#define MAGENTA "\033[35m" /* Magenta */
@jacksonie
jacksonie / convert_name_to_id.py
Created October 17, 2023 21:44 — forked from nekiro/convert_name_to_id.py
Item name to item id converter script
import sys
sys.modules["_elementtree"] = None
import xml.etree.ElementTree as ET
import os
from pathlib import Path
items = {}