Skip to content

Instantly share code, notes, and snippets.

View AloiSama's full-sized avatar
🎯
Pending...

Ali Alsaffar AloiSama

🎯
Pending...
View GitHub Profile
@AloiSama
AloiSama / index.html
Last active November 3, 2025 10:29
Tree gen
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lumber Mill Simulator (Fixed & Debugged)</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.0/p5.min.js"></script>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
@AloiSama
AloiSama / index.html
Last active October 31, 2025 17:36
Plane Sim
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hand Wood Plane Physics Simulator</title>
<style>
* {
margin: 0;
padding: 0;
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Schema for Unified General Conditions for Construction Contract Tenders",
"description": "Defines the structure for JSON documents representing the 'Unified General Conditions for Construction Contract Tenders 2018' (الوثيقة (1-1) الشروط العامة الموحدة لمناقصات عقود المقاولات 2018) or similar structured legal/contractual documents.",
"type": "object",
"properties": {
"document_title": {
"type": "string",
"description": "The main title of the document."
},
[
{
"ENTRYTYPE": "inproceedings",
"ID": "icold94a",
"address": "Paris",
"author": "\u010cervenka, J. and Boggs, H. and Plizzari, G. and Saouma, V.",
"keywords": "18, 2, 10,17",
"month": "September",
"organization": "Third ICOLD Benchmark Workshop on\nNumerical Analysis of Dams",
"pages": "255--277",
{
"name": "Risk Analysis",
"color": "",
"url": "",
"children": [
{
"name": "Seismic Hazard",
"color": "red",
"url": ""
},
@AloiSama
AloiSama / gist:a6e992729db32c203e97924d76ce7364
Created May 25, 2017 22:53
Oren Tirosh’s mnemonic encoding project word list
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
citizen cobra comet compact complex context
credit critic crystal culture david delta
dialog diploma doctor domino dragon drama
@AloiSama
AloiSama / keybase.md
Created May 2, 2017 04:29
keybase.md

Keybase proof

I hereby claim:

  • I am aloisama on github.
  • I am aloisama (https://keybase.io/aloisama) on keybase.
  • I have a public key ASC46JonxL4cV_U1cgRMV94kitaR3WA4nJoORh7Bm3ap-wo

To claim this, I am signing this object:

hostname:/home# ls -l
total --K
drwxr-xr-x 1 root root 0 Apr 19 19:15 gd-tv
drwxr-xr-x 2 plex plex 4.0K Apr 23 04:05 plextemp
drwxrwxrwx 16 aloisama aloisama 4.0K Apr 20 00:08 plex-tv-r
drwxr-xr-x 3 root root 4.0K Apr 23 11:03 scripts
drwxrwxrwx 1 aloisama aloisama 4.0K Apr 20 00:08 tv
@AloiSama
AloiSama / fuse-mount.cron
Last active April 23, 2017 17:05
Media Server CRONJOBS
#!/bin/bash
# Change paths for mount and log file & create mountcheck file.
# Add script to crontab by typing crontab -e and pasting the line below (without # in front )
# * * * * * /home/scripts/fuse-mount.cron >/dev/null 2>&1
# Make script executable with: chmod a+x /home/scripts/fuse-mount.cron
logfile="/home/scripts/logs/fuse-mount.cron.log"
if pidof -o %PPID -x "fuse-mount.cron"; then
echo "$(date "+%d.%m.%Y %T") EXIT: fuse-mount.cron already running."
@AloiSama
AloiSama / Node
Last active February 6, 2017 00:06
Traveling Salesman Problem - Processing 3.2.4
class Node {
private int x, y;
public Node(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {