Skip to content

Instantly share code, notes, and snippets.

View ahmedhamdy2121's full-sized avatar
🎯
Focusing

Ahmed Hamdy ahmedhamdy2121

🎯
Focusing
View GitHub Profile
@ahmedhamdy2121
ahmedhamdy2121 / userDefineLang_ApachePig.xml
Created April 2, 2020 17:35 — forked from abshingate/userDefineLang_ApachePig.xml
Apache Pig Language for Notepad++
<NotepadPlus>
<UserLang name="Apache PIG" ext="pig" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00-- 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@ahmedhamdy2121
ahmedhamdy2121 / Cheating (plagiarism) detection with MOSS on Linux
Last active September 24, 2021 15:57
Cheating (plagiarism) detection with MOSS on Linux
Hello,
This post will be very helpful for teaching assistants like me who is trying to make plagiarism detection for the
assignments they receive.
We shall use MOSS (https://theory.stanford.edu/~aiken/moss/), thanks to Professor Aiken.
I have developed a simple script that will prepare the data for MOSS. As MOSS will read only one level of directories,
and hence comes my script to move all the files to the student's parent folder.
@ahmedhamdy2121
ahmedhamdy2121 / GIT simple commands
Last active November 25, 2022 11:47
GIT simple commands
Copyrights (c) 2014 - 2019 Ahmed Hamdy
To pull before push:
> git fetch
> git stash # NOTE: This will backup your local changes
> git pull # git pull origin master
> git stash apply # NOTE: This will restore your local changes
If the remote branch has many changes, or have been deleted and recreated:
> git pull --rebase