Skip to content

Instantly share code, notes, and snippets.

View donno2048's full-sized avatar
:octocat:
πŸ΄πŸ˜΄πŸ‘¨β€πŸ’»πŸ”

Elisha Hollander donno2048

:octocat:
πŸ΄πŸ˜΄πŸ‘¨β€πŸ’»πŸ”
View GitHub Profile

smallest.c is the smallest compilable c code

small.c is the smallest compilable c code that runs

SegFault.c is the smallest c code that produces a segmentation fault

smallest.s compile using nasm on linux to create the smallest Windows exe

@donno2048
donno2048 / hello.js
Created March 22, 2021 08:56
Run in the JavaScript console
[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]][([]+[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]])[+!![]+[+[]]]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]])[+!![]+[+[]]]+(!![]+[])[+!![]]]([(![]+[])[+!![]]+(![]+[])[!![]+!![]]+(!![]+[])[!![]+!![]+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]+([]+[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]])[+!![]+[!![]+!![]+!![]]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]])[+!![]+[+[]]]+([][[]]+[])[+!![]]+(!![]+[])[+[]]+([]+[][(![]+[]
@donno2048
donno2048 / Paper.tex
Last active March 7, 2021 12:26
My LuaLaTex phd [work in progress]
\documentclass[a4paper]{article}
\usepackage[top=2.5cm,bottom=2.5cm,left=2.5cm,right=2.5cm]{geometry}
\renewcommand{\baselinestretch}{2.0}
\usepackage{unicode-math}
\usepackage[bidi=basic]{babel}
\babelprovide[import,main, onchar=ids fonts]{hebrew}
\babelprovide[onchar=ids fonts]{english}
\defaultfontfeatures{ Scale=MatchLowercase, Ligatures=TeX, Renderer=HarfBuzz }
\babelfont[hebrew]{rm}
[Ligatures=Discretionary,

Download rufus and insert your USB device, lunch rufus, then:

  • in the Device section choose your USB device
  • in the Boot selection section choose FreeDOS
  • press SELECT and choose the iso you have from running CITUR
  • left everything as is and press START

DONE

In this setup I'm using Oracle VM VirtualBox which can be downloaded here, feel free to use your own VM...

First of all open Oracle VM VirtualBox and click on the New button:

new-click

Then in the new window choose a Name for the operating system, I will go with 'Rosehip' but you can choose anything,

and for the Machine Folder I will choose 'C:\new' but you can choose anything (if you choose a folder which doesn't exists the VM will create it for you),

@donno2048
donno2048 / README.md
Created July 26, 2020 15:57
Conway's clock

This amazing pattern has been anonymously published long time ago,

it's an actual clock in Conway's game of life!

How to use it:

  1. go to Conway's game of life website
  2. click on import
  3. paste the pattern (pattern.txt)
  4. you will see a dashboard (in the image below) press the upper right button eight times (for real time)
  5. press Run