Skip to content

Instantly share code, notes, and snippets.

/*
Steps to build lmm and compile this file:
# Clone https://github.com/OSPreservProject/oskit to current directory
./configure
cd lmm; make; cd ..
# Put this file to "a.c"
cc -I . a.c -o a lmm/liboskit_lmm.a
./a
/*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
f0VMRgEBAQAAAAAAAAAAAAIA8wABAAAAAAAAADQAAAAQMgAACAAAADQAIAACACgAEAAPAAEAAAAA
EAAAAAAAAAAAAAA8BQAAPAUAAAUAAAAAEAAAAQAAAAAgAAAAAABwPAUAAAgAAAAMAAAABgAAAAAQ
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@lxylxy123456
lxylxy123456 / fork_ign_signal.py
Created November 10, 2019 00:15
A fork bomb which ignores as many signals as possible (execute it only when you thoroughly know what it does)
#!/usr/bin/python3
import os, sys, signal
# print(os.getpid())
for i in range(1, 65) :
try :
signal.signal(i, signal.SIG_IGN)
except Exception :
pass
@lxylxy123456
lxylxy123456 / logisim-tty.circ
Last active November 10, 2019 00:01
Logisim tty sample
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project source="2.7.1" version="1.0">
This file is intended to be loaded by Logisim (http://www.cburch.com/logisim/).
<lib desc="#Wiring" name="0"/>
<lib desc="#Gates" name="1"/>
<lib desc="#Plexers" name="2"/>
<lib desc="#Arithmetic" name="3"/>
<lib desc="#Memory" name="4"/>
<lib desc="#I/O" name="5"/>