Skip to content

Instantly share code, notes, and snippets.

View yne's full-sized avatar
✔️
Not a virus

Rémy F. yne

✔️
Not a virus
View GitHub Profile
#http://d{u,e,o}01{,b}.psp.update.playstation.org/update/psp/image{,2}/{eu,us}/$date_$md5/EBOOT.PBP
6be8878f475ac5b1a499b95ab2f7d301 6.61
2011_0810 2ca64d59dcf48f45fb99b400a586b395 6.60
ccce1a0f3ba08e22c26ec5bc047a0063 6.39
d033298a1de455a5d90e06f91c6802f6 6.38
2011_0120 5a21c511c90ed765747c43a9779f7a4b 6.37
bcac2b0a4ac55378f300386391e4bb37 6.36
2010_1124 5945c21abfa5b1221adda745f9417668 6.35
2010_0729 d7ea54162d2d53c5efb46648ee12f6bc 6.31
@yne
yne / spinner.css
Created December 25, 2019 22:16
spinner.css
.spinner{
color:transparent;
pointer-events:none;
user-select: none;
position: relative;
}
.spinner:after {
animation: dot 1s infinite;
content:"⠋";
color:initial;
@yne
yne / bf.js
Last active August 14, 2023 08:53
dzr.Decode.blowfish
const Blowfish = (await import('./egoroof_blowfish-4.0.1.mjs')).Blowfish;
const bf = new Blowfish(Buffer.from(keys_array), Blowfish.MODE.CBC, Blowfish.PADDING.NULL);
bf.setIv(new Uint8Array([0, 1, 2, 3, 4, 5, 6, 7]));
return bf.decode(buf_in, Blowfish.TYPE.UINT8_ARRAY);
@yne
yne / index.html
Created May 14, 2023 21:37
llama.cpp minimal websocket based interface
<html lang=en>
<!--
clone+make llama.cpp, mkdir static, put this file as index.html in it, then run
websocketd --port=8080 --staticdir=static --binary=true ./main -m models/ggml-vic7b-uncensored-q4_0.bin -n 50 --interactive-first
-->
<form name=prompt style=display:grid>
<textarea name=stdin placeholder=prompt style=resize:vertical></textarea>
<button>send</button>
<pre style="white-space: break-spaces"><output name=stdout></output></pre>
<input type=hidden name=continue value=continue>
@yne
yne / luh.c
Last active May 8, 2023 14:12
615A 8002/8004 LUH validator and YAML dumper
// BUILD:
// cc luh.c -o luh
// USAGE:
// luh < EXAMPLE.LUH > EXAMPLE.yml
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
@yne
yne / messagebox.c
Created May 8, 2023 14:11
Random errors
#include <windows.h>
#define _countof(array) (sizeof(array) / sizeof(array[0]))
struct Bidon
{
char *msg;
char *title;
UINT type;
} messages[] = {
{"Hi, I am Albanian virus but because of poor technology in my country unfortunately I am not able to harm your computer.\nPlease be so kind to delete one of your important files yourself and then forward me to other users.\n\nMany thanks for your cooperation!\n\nBest regards,\n\t\t\tAlbanian virus", "Virus Alert !", MB_USERICON | MB_YESNOCANCEL},
@yne
yne / xls2json.sh
Created February 12, 2023 16:16
excel sheet to json
python -c 'import openpyxl,sys,json; json.dump([[cell.value for cell in row] for row in openpyxl.load_workbook(sys.stdin.buffer).worksheets[int(sys.argv[1])].iter_rows()], sys.stdout)' 3 < my.xlsm | jq
@yne
yne / git.io yne.install
Last active November 4, 2022 05:00
wget -O- git.io/yne.install | bash
#!/bin/bash
set -x
until sudo apt -y update && sudo apt -y upgrade ; do sleep 10; done
crontab -l | grep -q .wall || (echo '0 * * * * ID=$(curl -sL gist.githubusercontent.com/yne/729655bd0557bfde7a088e15b40b9e6d/raw/ | shuf -n 1);for t in jpg png; do curl -sfL nik.bot.nu/o$ID.$t -o "$HOME/.wall"; done') | crontab -
# MS-EDGE
REPO_EDGE='https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/'
LAST_EDGE=$(wget -qO- "$REPO_EDGE" | grep -o '[.a-z_0-9-]*.deb' | tail -n1)
wget -O /tmp/edge_amd64 "$REPO_EDGE/$LAST_EDGE"
# VSCode (will add itself to apt.list)
@yne
yne / gl_ring.js
Created December 31, 2015 23:09
WebGL Rotating Rings IIDX 20 style
function Ring(n,size,width,tex,repeat,speed){
v=[],t=[];
for(var i=0;i<n;i++){
var rad=2*Math.PI*i/n;
v.push(
size*Math.cos(rad),
size*Math.sin(rad),
0,
@yne
yne / playlist.txt
Created November 2, 2020 06:49
playlist
Что такое осень ДДТ - Актриса весна
В последняя осень ДДТ - Актриса весна
Звезда по имени Солнце Kino - Звезда по имени Солнце
Дыхание Nautilus Pompilius - Крылья
Моё сердце Splean - 25 кадр
Просвистела ДДТ - Просвистела
Родина ДДТ - Актриса весна
Это всё ДДТ - Это всё
Ветер ДДТ - Это всё
Метель ДДТ - Мир номер ноль