Skip to content

Instantly share code, notes, and snippets.

Avatar
✔️
Not a virus

Rémy F. yne

✔️
Not a virus
View GitHub Profile
@yne
yne / postinstall.sh
Last active Apr 24, 2021
wget -O- git.io/yne.install | bash
View postinstall.sh
#!/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)
View playlist.txt
Что такое осень ДДТ - Актриса весна
В последняя осень ДДТ - Актриса весна
Звезда по имени Солнце Kino - Звезда по имени Солнце
Дыхание Nautilus Pompilius - Крылья
Моё сердце Splean - 25 кадр
Просвистела ДДТ - Просвистела
Родина ДДТ - Актриса весна
Это всё ДДТ - Это всё
Ветер ДДТ - Это всё
Метель ДДТ - Мир номер ноль
@yne
yne / tpa_extractor.c
Created Dec 18, 2015
DJMax Portable TPA file extractor
View tpa_extractor.c
#include <fcntl.h>
#include <malloc.h>
typedef struct{
unsigned id;
short padding;
unsigned short len;
unsigned unk;
}TPAheader;
typedef struct{
@yne
yne / main.c
Created Apr 12, 2020
tilemap GL
View main.c
//c99 main.c -o ../main -lX11 -lGL -lGLU && cd .. && ./main
#include <stdio.h>
#include <stdlib.h>
#include <X11/X.h>
#include <GL/gl.h>
#include <GL/glx.h>
GLuint texture[1];
int initGL(GLfloat width,GLfloat height){
typedef uint8_t Sprite[32*32*3];
@yne
yne / bin.ls
Created Jan 11, 2020
github action binaries
View bin.ls
bindgen
cargo
cargo-clippy
cargo-fmt
cargo-miri
cbindgen
clippy-driver
rls
rust-gdb
rust-lldb
@yne
yne / mips-gen.c
Created Dec 30, 2019
unfinished MIPS generator for TCC
View mips-gen.c
/*
* MIPS3K code generator for TCC
*
* Based on mips-gen.c by Daniel Glöckner & Thomas Preud'homme
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
@yne
yne / dice.html
Created Dec 28, 2019
CSS-only dice demo
View dice.html
<style>
@keyframes roll {
00%{content:"⚀"}
16%{content:"⚁"}
33%{content:"⚂"}
50%{content:"⚃"}
66%{content:"⚄"}
84%{content:"⚅"}
100%{content:"⚀"}
}
View spinner.css
.spinner{
color:transparent;
pointer-events:none;
user-select: none;
position: relative;
}
.spinner:after {
animation: dot 1s infinite;
content:"⠋";
color:initial;
@yne
yne / av1.c
Created Aug 20, 2019
av1-like decoder
View av1.c
#include <math.h>
#include <stdio.h>
#define e(a, d) for(a=0;a<d;a++)
int YUV[3][1 << 20], tmpyuv[2048], scratch[166], width;
int p = 0, r = 1;//reader accu
int lumaRatio = 0, satuRatio = 0;//decode default
void read8b() {
int b = getchar();
View epoll.c
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>