Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/truncateddinosour/hacker
[Migrated to self-hosted ari-web Forgejo: https://git.ari.lt/ari/hacker] pretend as if ur a hacker
https://github.com/truncateddinosour/hacker
1337 c c89 cli game hacker hackertyper haxxor joke linux prank satire unix
Last synced: about 1 month ago
JSON representation
[Migrated to self-hosted ari-web Forgejo: https://git.ari.lt/ari/hacker] pretend as if ur a hacker
- Host: GitHub
- URL: https://github.com/truncateddinosour/hacker
- Owner: TruncatedDinoSour
- License: gpl-3.0
- Archived: true
- Created: 2023-05-09T21:52:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-20T13:17:58.000Z (5 months ago)
- Last Synced: 2024-09-29T01:21:40.441Z (about 1 month ago)
- Topics: 1337, c, c89, cli, game, hacker, hackertyper, haxxor, joke, linux, prank, satire, unix
- Language: C
- Homepage: https://git.ari.lt/ari/hacker
- Size: 96.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# This repository has been migrated to the self-hosted ari-web Forgejo instance:
# hacker> pretend as if ur a hacker
![screenshot](/media/ss.jpg)
# sources
- arr.c -- converts files to c arrays
- main.c -- main file# arr
`arr` is a utility that converts files into c arrays, its only used for build time most likely, dont install it, its
useless for this besides build time, it takes files as input, for the build script the output will be cached to
`code.txt`, although ur free to just use it inline lol, i include the `code.txt` cache from my system if u want it to
just work, but for uniqueness and more diverse output id suggest to just use ur ownkeep in mind, the `arr` utility ignores null bytes no matter what, this is intentional, null byte would indicate that
its binary data or smt and i dont want that, so its stopping before it reads all of it, if u want to use `arr.c`
modify it to use the `sz` instead of a while value is truthy# compilation
run `./scripts/build.sh` or :
```sh
cc -o arr src/arr.c -Ofast -s -std=c89
cc -o hacker -DCODE="$(./arr $(find /usr/include/ -type f -name '*.c*' -or -name '*.h*' | head -n 500))" src/main.c -Ofast -s -std=c89
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ u can play around with this
```## build script config
env vars :
- `CC` -- c compiler ( default : `cc` )
- `CFLAGS` -- c compiler flags ( default : `-Ofast -s -std=c89` )
- `SRC` -- folder to look for code ( default : `/usr/include` )
- `SRCC` -- how many files to find in `SRC` ( default : `500` )## `hacker` configuration
macro definitions ( `-DMACRO` ( e.g. `-DSCAN_COUNT=1` ) :
- `CODE` -- c array, should be an array of characters or integers of ASCII values ( see `arr.c` ) ( default : `{0}` )
- `SCAN_COUNT` -- how many characters of code should one keystroke equal to ( default : `6` )
- `CODE_CLR` -- ansi colour your code is ( default : `\033[32m` ( green ) )# usage
launch the program, type anything and to exit just press CTRL + C