Skip to content

Instantly share code, notes, and snippets.

View MohammadHosseinBagheri's full-sized avatar
🎖️
Focusing

Big-O MohammadHosseinBagheri

🎖️
Focusing
View GitHub Profile
@MohammadHosseinBagheri
MohammadHosseinBagheri / install-arch.md
Created December 19, 2023 09:53 — forked from mjnaderi/install-arch.md
Installing Arch Linux with Full Disk Encryption (LVM on LUKS)

Installing Arch Linux with Full Disk Encryption

If you're aiming for a seamless Arch Linux installation in UEFI mode, follow along as this guide will walk you through the process step by step. We'll be using LUKS (Linux Unified Key Setup) and LVM (Logical Volume Manager) partitions on LUKS to achieve full disk encryption.

Note: I have updated this doc for UEFI mode. For those with BIOS/MBR systems, you can refer to the previous version, but keep in mind that it might be outdated and no longer accurate.

If you're only interested in installing Linux and not setting up dual boot with Windows, feel free to skip the Windows-related sections.

@MohammadHosseinBagheri
MohammadHosseinBagheri / circle_detection.py
Created March 14, 2019 15:24 — forked from martinsik/circle_detection.py
Circle detection with OpenCV 3.0
import cv2
import time
import math
import numpy as np
capture = cv2.VideoCapture(0)
print capture.get(cv2.CAP_PROP_FPS)
t = 100
w = 640.0
@MohammadHosseinBagheri
MohammadHosseinBagheri / nodejs-tcp-example.js
Created March 8, 2019 08:19 — forked from tedmiston/nodejs-tcp-example.js
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');