Skip to content

Instantly share code, notes, and snippets.

View LeKSuS-04's full-sized avatar
🧨
Doing immoderate amount of trolling

Alexey Tarasov LeKSuS-04

🧨
Doing immoderate amount of trolling
View GitHub Profile
@LeKSuS-04
LeKSuS-04 / install_docker.sh
Last active October 15, 2023 09:59
Install docker script. Must be ran as root
#!/bin/bash
set -ex
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc;
do
apt-get remove -y $pkg
done
apt-get update -y
apt-get install -y ca-certificates curl gnupg
@LeKSuS-04
LeKSuS-04 / bf.c
Last active July 8, 2022 20:59
Brainfuck interpreter in C
#include <stdio.h>
#include <stdlib.h>
const int MEMSIZE = 30000;
void run_bf(FILE *fptr) {
char cmd;
int mempos = 0, filepos = -1;
u_char *memory = calloc(MEMSIZE, sizeof(unsigned char));
int *jump_stack = calloc(MEMSIZE, sizeof(int));
@LeKSuS-04
LeKSuS-04 / shadowservants-admin.js
Last active July 23, 2022 08:15
Tampermonkey script that adds buttons to open/close admin panel to shadowservants.ru
// ==UserScript==
// @name ShadowServants admin
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Add buttons to open/close admin panel to shadowservants.ru
// @author LeKSuS
// @match https://summer.shadowservants.ru/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=shadowservants.ru
// @grant none
// ==/UserScript==