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 / hexgame.java
Created October 11, 2016 19:27 — forked from salamander2/hexgame.java
Hexagonal Grid in Java
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
/**********************************
This is the main class of a Java program to play a game based on hexagonal tiles.
The mechanism of handling hexes is in the file hexmech.java.
Written by: M.H.
Date: December 2012
@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() {
@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."
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 / 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:

@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
{
"name": "Risk Analysis",
"color": "",
"url": "",
"children": [
{
"name": "Seismic Hazard",
"color": "red",
"url": ""
},
[
{
"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",