Skip to content

Instantly share code, notes, and snippets.

View maj113's full-sized avatar
🎯
Focusing

Maj Soklič maj113

🎯
Focusing
View GitHub Profile
@Orangera1n
Orangera1n / Windows build repo.md
Last active April 26, 2025 11:47
Orangera1n's Windows Build Repo

Notice:

This project is being formally deprecated (informally, it was a while ago) as of today due to various factors:

  • builds being corrupted, likely due to rclone vfs cache mounts messing with them, and due to the nature of onedrive, there being no way to collect hashes in bulk without ugly hacks
  • me being busy and lack of time to work on this often
  • onedrive being a pain to download from
  • having to split shit accorss many accounts, making management painful
  • less control
  • me getting a new ISP thats fast enough for hosting this on a proper server (with dedup) (about that: join here for updates: https://discord.gg/rFNeu7ZyQ2)
@zefklop
zefklop / build_rosbe_ci.sh
Last active May 16, 2024 10:31
Script to build ROSBE for github actions
#!/usr/bin/bash
ROSBE_BUILD_DIR=$1
ROSBE_GIT_DIR=./RosBE-git
THIS_SCRIPT=`basename "$0"`
git clone --depth=1 --branch=unix_amd64 https://github.com/zefklop/RosBE.git $ROSBE_GIT_DIR
# Check if we have our toolchain ready
if [ -d $ROSBE_BUILD_DIR ]; then
@adistomar
adistomar / music.py
Last active November 27, 2022 21:57 — forked from EvieePy/music.py
Basic music with playlist support on Rewrite
import discord
from discord.ext import commands
import random
import json
import asyncio
import itertools
import sys
import traceback
from async_timeout import timeout
from functools import partial
size_t memcount_avx2(const void *s, int c, size_t n) {
__m256i cv = _mm256_set1_epi8(c), zv = _mm256_setzero_si256(), sum = zv, acr0,acr1,acr2,acr3;
const char *p,*pe;
for(p = s; p != (char *)s+(n- (n % (252*32)));) {
for(acr0 = acr1 = acr2 = acr3 = zv,pe = p+252*32; p != pe; p += 128) {
acr0 = _mm256_add_epi8(acr0, _mm256_cmpeq_epi8(cv, _mm256_lddqu_si256((const __m256i *)p)));
acr1 = _mm256_add_epi8(acr1, _mm256_cmpeq_epi8(cv, _mm256_lddqu_si256((const __m256i *)(p+32))));
acr2 = _mm256_add_epi8(acr2, _mm256_cmpeq_epi8(cv, _mm256_lddqu_si256((const __m256i *)(p+64))));
acr3 = _mm256_add_epi8(acr3, _mm256_cmpeq_epi8(cv, _mm256_lddqu_si256((const __m256i *)(p+96)))); __builtin_prefetch(p+1024);
}
// (Excerpt from http://tinyurl.com/c4e47q)
// At this point, I'd like to take a moment to speak to you about the Adobe PSD format.
// PSD is not a good format. PSD is not even a bad format. Calling it such would be an
// insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format. Having
// worked on this code for several weeks now, my hate for PSD has grown to a raging fire
// that burns with the fierce passion of a million suns.
// If there are two different ways of doing something, PSD will do both, in different
// places. It will then make up three more ways no sane human would think of, and do those
// too. PSD makes inconsistency an art form. Why, for instance, did it suddenly decide
// that *these* particular chunks should be aligned to four bytes, and that this alignement