Skip to content

Instantly share code, notes, and snippets.

View allekok's full-sized avatar
🍎
Alive

ئاڵەکۆک allekok

🍎
Alive
View GitHub Profile
@allekok
allekok / null.php
Created November 3, 2024 09:36
Null
<?php
$n = 0;
$e = 0;
$A = [];
scan_all("/bin");
scan_all("/sbin");
scan_all("/usr/bin");
scan_all("/usr/sbin");
scan_all("/usr/local/bin");
@allekok
allekok / arch.txt
Created July 7, 2022 11:41
Install Arch Linux on Macbook Air 2015
1 -> Download and Write
Download latest "archlinux.iso" from "archlinux.org"
$ dd if={archlinux.iso} of=/dev/sd{x} bs=1M status=progress
"/dev/sd{x}" = USB drive
2 -> IF NOT ARCH FOR BUILDING OFFLINE REPOSITORY
Install "virtualbox"
Run until step 8 and then go back to step 3
3 -> Partitioning
@allekok
allekok / dark-mode.md
Created June 1, 2022 15:37
Dark mode

CSS:

@media (prefers-color-scheme: dark) {
	/* Dark mode style */
}

Javascript:

if(matchMedia('(prefers-color-scheme: dark)').matches) {
@allekok
allekok / flower.html
Last active May 28, 2022 09:06
Flower
<!DOCTYPE HTML>
<html>
<head>
<style>
body {
background: black;
}
#flower {
width: 80px;
height: 80px;
@allekok
allekok / blockchain.py
Created May 19, 2022 18:19
Blockchain
import hashlib
blockchain = []
difficulty = 3
mine_pattern = '0' * difficulty
def add_block(data):
block = make_block(data)
block['prev'] = '' if blockchain == [] else blockchain[-1]['hash']
mine_block(block)