Skip to content

Instantly share code, notes, and snippets.

View TruncatedDinoSour's full-sized avatar
🏳️‍⚧️

Ari Archer TruncatedDinoSour

🏳️‍⚧️
View GitHub Profile
#include <time.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#define MIN_VAL 5
#define MAX_VAL 50
static void swap(char *x, char *y) {
@TruncatedDinoSour
TruncatedDinoSour / index.js
Created July 10, 2021 13:08
A rlly painful JSfuck script, it literally just prints "hello"
'use strict';[][[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[]
@TruncatedDinoSour
TruncatedDinoSour / ben.sh
Last active October 3, 2023 22:02
benchmark for shells -- performance and features
#!/usr/bin/env sh
# -*-
# name(ben.sh)
# description(benchmark for shells -- performance and features)
# running(to run it id suggest to keep it fair, i personally did : `env -i bash --norc -i <ben.sh` ( 26 s ) and `env -i busybox ash -i <ben.sh` ( 19 s ))
# author(Ari Archer <ari.web.xyz@gmail.com> [ari-web.xyz])
# license(wtfpl)
# -*-
@TruncatedDinoSour
TruncatedDinoSour / colours.h
Created September 21, 2023 20:26
colours.h -- easy coloured ansi text in c
#ifndef _COLOURS_H
#define _COLOURS_H
#define CLR(code) "\33[" code "m"
#define CLR_RESET CLR("0")
#define CLR_BOLD CLR("1")
#define CLR_DIM CLR("2")
#define CLR_UNDERLINE CLR("4")
#define CLR_BLINK CLR("5")
#define CLR_REVERSE CLR("7")
@TruncatedDinoSour
TruncatedDinoSour / hw.asm
Created August 27, 2023 20:31
hello worlds i can write from memory
format ELF64 executable 3
segment readable executable
define SYS_exit 60
define SYS_write 1
; fasm
_start:
mov eax, SYS_write
@TruncatedDinoSour
TruncatedDinoSour / set_points.js
Created August 7, 2023 02:35
slope game ( https://www.y8.com/games/slope ) on y8.com set_points leaderboard hack in js kinda :3
/* how to use :
*
* 0. open firefox
* 1. open slope https://www.y8.com/games/slope
* 2. open 'Console'
* 3. in the prompt, at the end see 'top' and press on it
* 4. select 'Unity WebGL Player | Slope'
* 5. paste in the code below
* 6. type `set_points(<points u want>)` e.g. `set_points(300)`, range [0;1000)
* 7. run the game ( make sure to log in ! )
@TruncatedDinoSour
TruncatedDinoSour / vfagsa.py
Created June 21, 2023 21:35
very fast and good sorting algo
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""best sorting algorithm"""
from secrets import SystemRandom
from warnings import filterwarnings as filter_warnings
RAND: SystemRandom = SystemRandom()
@TruncatedDinoSour
TruncatedDinoSour / lietuva.h
Last active June 10, 2023 19:48
C but in lithuanian
/* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2023 Ari Archer <ari.web.xyz@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
#ifndef _UWU_H
#define _UWU_H
#define awignas alignas
#define awignof alignof
#define awa auto
#define bowo bool
#define NOOOOOWOOOOO break
#define cawase case
#define charizardowo char
@TruncatedDinoSour
TruncatedDinoSour / a.py
Created May 15, 2023 20:17
simple python bundler
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""a"""
def a() -> None:
print("this is a.py")