Skip to content

Instantly share code, notes, and snippets.

John-John Tedro udoprog

Block or report user

Report or block udoprog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@udoprog
udoprog / DowngradeUpgrade.ps1
Created Jun 14, 2019
Handle upgrading and downgrading GTA V
View DowngradeUpgrade.ps1
param([switch] $Downgrade=$false)
$Profile = "$env:USERPROFILE\Documents\Rockstar Games\GTA V"
$Game = "D:\Steam\steamapps\common\Grand Theft Auto V"
$SocialClub = "C:\Program Files\Rockstar Games\Social Club"
if (!(Test-Path -Path $Profile)) {
exit
}
@udoprog
udoprog / rtss_limiter.ahk
Last active Aug 18, 2019
AHK script to toggle between two different FPS limits in RTSS
View rtss_limiter.ahk
; Inputs two different FPS values into RivaTunerStatisticsServer when toggled.
#SingleInstance force
values := [144, 116]
stage := 1
focus_row := 1
FOCUS_TOP := 163
FOCUS_LEFT := 18
View fix-leaking-lifetimes.diff
diff --git a/bot/src/module/countdown.rs b/bot/src/module/countdown.rs
index 632d68d..b87f0ba 100644
--- a/bot/src/module/countdown.rs
+++ b/bot/src/module/countdown.rs
@@ -87,6 +87,8 @@ impl super::Module for Module {
handlers.insert("countdown", Handler { sender });
+ let path = self.path.clone();
+
View SlowDown.cs
using System;
using GTA;
using GTA.Native;
using System.Windows.Forms;
namespace Chaos
{
enum Speed
{
Normal,
View BlockSkipCutscene.cs
using System;
using GTA;
namespace ChaosMod
{
public class BlockCutsceneSkips : Script
{
public BlockCutsceneSkips()
{
this.Tick += OnTick;
View fixed_vs_array.s
test_fixed:
movl 112(%rdi), %eax
movl 116(%rdi), %edx
retq
test_array:
movl 116(%rdi), %edx
xorl %eax, %eax
cmpl $1, 112(%rdi)
sete %al
View gist:1fce82042776dac1c97b61468522fc43
Compiling asteroids-amethyst v0.1.0 (/home/udoprog/repo/asteroids-amethyst)
error[E0412]: cannot find type `RandomGe` in this scope
--> src/systems.rs:128:24
|
128 | ReadExpect<'s, RandomGe>,
| ^^^^^^^^ did you mean `RandomGen`?
error[E0275]: overflow evaluating the requirement `<_ as specs::world::comp::Component>::Storage`
|
= help: consider adding a `#![recursion_limit="128"]` attribute to your crate
View net.c
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#define panic(EXPR, MSG) \
View heap.s
heap:
.Lfunc_begin2:
.loc 1 21 0
.cfi_startproc
.cfi_personality 155, DW.ref.rust_eh_personality
.cfi_lsda 27, .Lexception0
pushq %rbp
.Lcfi6:
.cfi_def_cfa_offset 16
.Lcfi7:
View scikit_mnist.py
import matplotlib.pyplot as plt
import numpy as np
from sklearn.datasets import fetch_mldata
mnist = fetch_mldata("MNIST original")
def plot_images(datas, titles):
fig, axes = plt.subplots(4, int(len(datas) / 4))
fig.set_size_inches((10, 10))
You can’t perform that action at this time.