All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Register

Login


All New Register Login
's Avatar

jackz

Joined 1741879800

Recently created
Least recently created
Recently updated
Least recently updated
All gists 26
jackz's Avatar

jackz / ecalculator.rs

0 likes
0 forks
1 files
Last active 1741880459
1 use std::time::Instant;
2 use rand::prelude::*;
3 use std::f64::consts;
4 use console::Term;
5 use std::sync::atomic::{AtomicBool, Ordering};
6 use std::sync::Arc;
7
8 fn main() {
9 //Handler to terminate on CTRL+C
10 let running = Arc::new(AtomicBool::new(true));
jackz's Avatar

jackz / update.sh

0 likes
0 forks
1 files
Last active 1741880082
1 #!/bin/bash
2 APP_ID=
3 if test -f "update.lock"; then
4 echo "update.lock found, cancelling"
5 exit 1
6 fi
7 touch update.lock
8 trap '{ rm -f -- "update.lock"; }' EXIT
9 /home/steam/steamcmd/steamcmd.sh +login anonymous +force_install_dir $PWD +app_update $APP_ID validate +quit
10 rm update.lock
jackz's Avatar

jackz / 3nplus1.rs

0 likes
0 forks
1 files
Last active 1741880482
1 fn main() {
2 let mut i: u64 = 0;
3 let mut v: u64;
4 let mut highest = u64::MIN;
5 loop {
6 i += 1;
7 v = i;
8 loop {
9 // Is even
10 if v % 2 == 0 {
jackz's Avatar

jackz / convert_animations_to_lua.js

0 likes
0 forks
1 files
Last active 1741880506
1 const fs = require('fs')
2
3 let version = "2.0"
4
5 fs.readFile('./animations.txt', 'utf-8', (err, data) => {
6 if(err) {
7 console.error(err)
8 process.exit(1)
9 }
10 const animations = []
jackz's Avatar

jackz / convert.js

0 likes
0 forks
1 files
Last active 1741880497
1 const fs = require('fs')
2 const MODEL_NAMES = {
3 2627665880: 'Online Female'
4 }
5
6 fs.readFile('./outfit.json', 'utf-8', (err, data) => {
7 if(err) {
8 console.error(err)
9 process.exit(1)
10 }
jackz's Avatar

jackz / launch_stand.bat

0 likes
0 forks
1 files
Last active 1741880516
1 :: Launch
2 @echo off
3 title Launch GTA with Stand
4
5
6 :: If you want to auto launch as admin, uncomment this: (Relaunches batch as admin)
7 ::if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
8
9 :: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10 :: !!! These variables may need to be changed !!!
jackz's Avatar

jackz / play_audio_v01.rs

0 likes
0 forks
1 files
Last active 1741880547
1 use mlua::prelude::*;
2 use std::fs::File;
3 use std::io::BufReader;
4 use rodio::{Decoder, OutputStream, Sink};
5 use std::time::Duration;
6 use futures_timer::Delay;
7
8 async fn play_local_file(lua: &Lua, (filepath, volume, duration): (String, f32, u64)) -> LuaResult<()> {
9 let (_stream, stream_handle) = OutputStream::try_default().unwrap();
10 let sink = Sink::try_new(&stream_handle).unwrap();
jackz's Avatar

jackz / get_point_test.lua

0 likes
0 forks
1 files
Last active 1741880560
1 local function GetEndCoord(deg, start, range)
2 local rad_x = deg['x'] * 0.0174532924
3 local rad_z = deg['z'] * 0.0174532924
4
5 return {
6 x = range * (-math.sin(rad_z) * math.cos(rad_x)) + start.x,
7 y = range * (math.cos(rad_z) * math.cos(rad_x)) + start.y,
8 z = range * math.sin(rad_x) + start.z
9 }
10 end
jackz's Avatar

jackz / hideandseek.cfg

0 likes
0 forks
1 files
Last active 1741880568
1 "EntityConfig"
2 {
3 "c8m3_sewers"
4 {
5 "ents"
6 {
7 "A"
8 {
9 "origin" "13265.965820 8547.057617 -250.7"
10 "type" "env_physics_blocker"
jackz's Avatar

jackz / gist:1116ec986f464fa5a53e27a4bfd331c4

0 likes
0 forks
1 files
Last active 1741880026
1 const header = [
2 `import SectionNode from '@/components/sections/SectionNode.vue'`
3 ]
4 const exported = {
5 name: "SectionNode",
6 props: {
7 node: Object
8 },
9 methods: {
10 gotoHeader() {
Newer Older

Powered by Opengist ⋅ Load: 424ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文