Skip to content

Instantly share code, notes, and snippets.

View Jackzmc's full-sized avatar

Jackz Jackzmc

View GitHub Profile
use mlua::prelude::*;
use std::fs::File;
use std::io::BufReader;
use rodio::{Decoder, OutputStream, Sink};
use std::time::Duration;
use futures_timer::Delay;
async fn play_local_file(lua: &Lua, (filepath, volume, duration): (String, f32, u64)) -> LuaResult<()> {
let (_stream, stream_handle) = OutputStream::try_default().unwrap();
let sink = Sink::try_new(&stream_handle).unwrap();
:: Launch
@echo off
title Launch GTA with Stand
:: If you want to auto launch as admin, uncomment this: (Relaunches batch as admin)
::if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
:: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
:: !!! These variables may need to be changed !!!
const fs = require('fs')
const MODEL_NAMES = {
2627665880: 'Online Female'
}
fs.readFile('./outfit.json', 'utf-8', (err, data) => {
if(err) {
console.error(err)
process.exit(1)
}
const fs = require('fs')
let version = "2.0"
fs.readFile('./animations.txt', 'utf-8', (err, data) => {
if(err) {
console.error(err)
process.exit(1)
}
const animations = []
fn main() {
let mut i: u64 = 0;
let mut v: u64;
let mut highest = u64::MIN;
loop {
i += 1;
v = i;
loop {
// Is even
if v % 2 == 0 {
#!/bin/bash
APP_ID=
if test -f "update.lock"; then
echo "update.lock found, cancelling"
exit 1
fi
touch update.lock
trap '{ rm -f -- "update.lock"; }' EXIT
/home/steam/steamcmd/steamcmd.sh +login anonymous +force_install_dir $PWD +app_update $APP_ID validate +quit
rm update.lock
use sha2::{Sha256, Digest};
use std::time::{SystemTime, UNIX_EPOCH};
type HashResult = Vec<u8>;
type Hash = Sha256;
#[derive(Debug)]
struct Data {
id: u64
}
@Jackzmc
Jackzmc / ecalculator.rs
Last active June 17, 2021 17:39
Calculates E using Mathematica. Use 'SHOW_PROGRESS=X' to show progress every X iteration, Set LOOPS=N to loop N times or exclude to run forever. CTRL+C will end early and report result
use std::time::Instant;
use rand::prelude::*;
use std::f64::consts;
use console::Term;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
fn main() {
//Handler to terminate on CTRL+C
let running = Arc::new(AtomicBool::new(true));
@Jackzmc
Jackzmc / launch_gtao_patch.bat
Last active February 16, 2023 20:38
A batch file to launch the game or auto inject using xenos (https://github.com/DarthTon/Xenos) injector the GTA online patch: https://github.com/QuickNET-Tech/GTAO_Booster_PoC.
:: Launch GTA Online Patch v1.2
:: This batch file will automatically launch GTAV if not started, look for the process and inject using Xenos
:: You should probably at minimum change the GTADIR parameter below to where your GTA5.exe is
:: It will run Xenos64 in the folder the bat file is ran from, for the profile "OnlinePatch.xpr64"
:: Links
:: Xenos - https://github.com/DarthTon/Xenos
:: Online Patch Booster - https://github.com/QuickNET-Tech/GTAO_Booster_PoC
@echo off
title Launch GTA Online Patch
(async function() {
const items = [];
for(const item of document.getElementsByClassName("selectable")) {
items.push(item.attributes['data-steamid'].textContent)
}
var a = document.createElement("a");
a.href = "data:application/json," + JSON.stringify(items);
a.download = "banned_users.json";
a.click();
})();