Skip to content

Instantly share code, notes, and snippets.

View Luxter77's full-sized avatar
💭
In the process of imploding

Lucas Daniel Velazquez M. Luxter77

💭
In the process of imploding
View GitHub Profile
@Luxter77
Luxter77 / src_collisions.gml
Created September 2, 2025 19:33
fn_doCollide GML2
/**
* @function fn_doCollide
*
* @param {Id.Instance}.
* @param {Id.Asset.GMLObject} [collider=obj_collider].
*
* @returns {undefined}
*/
function fn_doCollide(subject, collider = obj_collider.object_index){
if (subject.vspeed != 0) {
Clear-Host
function Chunk-Objects {
param(
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
[psobject]$InputObject,
[ValidateRange(1, 100000)]
[int]$ChunkSize = 255
)
function Chunk-Objects {
param(
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
[psobject]$InputObject,
[ValidateRange(1, 100000)]
[int]$ChunkSize = 255
)
begin {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from zabbix_utils import ZabbixAPI
import json
TOKEN = "FILLME"
API_URL = ""
api = ZabbixAPI(url=API_URL)
api.login(token=TOKEN)
#!/usr/bin/env python3
from genericpath import isfile
from pdf2image import convert_from_path, pdfinfo_from_path
import collections, sys, os
from tqdm.auto import tqdm, trange
from glob import glob
@Luxter77
Luxter77 / BREAKME.py
Created May 3, 2025 00:56
KEYME_BREAKME_WIKI_DUMPER_QUESTIONMARK
#!/usr/bin/python3
import requests as re
from tqdm.auto import tqdm
from pprint import pformat
from IPython import embed as IPy_embed
import json
@Luxter77
Luxter77 / Remove-EmptyFolder.ps1
Created February 21, 2025 23:28
Some functions I use on powershell
param([string]$P = (Get-Location).Path)
$dirs = get-childItem -Recurse -Depth 123456789 -Path $P | Where { (Get-ChildItem $_.FullName).count -eq 0 } | select -expandproperty FullName;
$vacio = $dirs | Where-Object {
Write-Progress " Checking $_ ";
(((Get-ChildItem "$_/").count -eq 0) -and ($_.ToLower() -notlike "*tmp*"))
} | ForEach-Object {
Write-Progress " Removing: $_ ";
Remove-Item -Force $_;
};
from bs4 import BeautifulSoup
from tqdm.auto import tqdm
from pprint import pprint
import csv
mails = list(csv.reader(open("inconvenientes042022.csv", "r", encoding="utf8")))
mails.pop(0)
dataset = []

APERTIUM

#!/usr/bin/env bash
# Repo
curl -sS https://apertium.projectjj.com/apt/install-nightly.sh | sudo bash

# Install
sudo apt install libboost-dev libgoogle-perftools-dev libicu-dev cmake subversion build-essential pkg-config gawk libxml2 libxml2-dev libxml2-utils xsltproc flex automake libtool libpcre3-dev zlib1g-dev locales build-essential automake subversion git pkg-config libtool apertium-all-dev