Skip to content

Instantly share code, notes, and snippets.

View jasperan's full-sized avatar
:octocat:

Nacho Martinez jasperan

:octocat:
View GitHub Profile
@jasperan
jasperan / remove_carriage.sh
Created August 20, 2024 22:38 — forked from slavailn/remove_carriage.sh
Remove carriage returns from the windows file for the use in linux
#! /bin/bash
sed -i 's/\r//g' file.txt
@jasperan
jasperan / anti_afk.py
Created November 22, 2021 18:32
Forza Horizon 5 anti-afk
#!/bin/env/python
# directkeys.py
# http://stackoverflow.com/questions/13564851/generate-keyboard-events
# msdn.microsoft.com/en-us/library/dd375731
import ctypes
from ctypes import wintypes
import time
function sumar() {
var caja = document.getElementById("fe694");
var selector = document.getElementById("cmb3");
if (selector.value.toLowerCase() != 'reagendar') { // No hacer nada
return false;
}
if (caja.value == ''){ // Le ponemos el valor por defecto
caja.value = 0;
}
caja.value = parseInt(caja.value) + 1 ;
function sumar() {
var caja = document.getElementById("fe694");
var selector = document.getElementById("cmb3");
if (selector.value.toLowerCase() != 'reagendar') { // No hacer nada
return false;
}
if (caja.value == ''){ // Le ponemos el valor por defecto
caja.value = 0;
}
caja.value = parseInt(caja.value) + 1 ;
function sumar() {
var caja = document.getElementById("fe694");
var selector = document.getElementById("cmb3");
if (selector.value.toLowerCase() != 'reagendar') { // No hacer nada
return false;
}
if (caja.value == ''){ // Le ponemos el valor por defecto
caja.value = 0;
}
caja.value = parseInt(caja.value) + 1 ;
#include <stdio.h>
#include <sys/time.h>
#include <signal.h>
#include <stdlib.h>
#include <ucontext.h>
#include <unistd.h>
#include "mythread.h"
#include "interrupt.h"
@jasperan
jasperan / gist:dab4fa6fc28b5f7fce7a838bd36aab39
Created September 1, 2019 17:52 — forked from tracend/gist:912308
DirectInput keyboard scan codes
/****************************************************************************
*
* DirectInput keyboard scan codes
*
****************************************************************************/
#define DIK_ESCAPE 0x01
#define DIK_1 0x02
#define DIK_2 0x03
#define DIK_3 0x04
#define DIK_4 0x05