Skip to content

Instantly share code, notes, and snippets.

Avatar
🦀
Make everything rusty

Anas Elgarhy anas-elgarhy

🦀
Make everything rusty
View GitHub Profile
View anas.elgarhy.dev@gmail.com_gpg_key.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGO/oD8BDACnmTVcv/xysGWrY3Qdk1MWHymPGUVZAbUDemNKqlT+G6rWdipv
Fa3V/uu/NdQ7Xd2b9r2Z0JXL5a3uecApU7qcBuzaUJboVw5xyQxHsSE5eEY+lObF
ehVQlbciNsFDqdSNprvQ/Ppy13anC87vFHvbucxC/9MyZ1n/IKB/i6Ywk4fsPymh
rRzV4yYcxhPZmXsJ8XfaUsOKVr/jIcrVb/MlM9y2shZ+fb1Xjcx3y/U91Yd/Z4h8
Z0rlEzzdepZei/WcBusKcsogRyv0dRIyNVSCGWA9srusIE0TYh5np/yPqjaUp/Qd
s5MrcTk0opnSC/WDgCuv3DYJM/i95N/DlAI+hMMfAQW0khp6tXgT6zlMxm6Z+Hwu
o4bIF2cCyxiu6j0TUegmH6JiDNGIolTQUP2yaiumc8s0jvhmKB+G/zr3roMRx5H/
mBcqPecAOhHwplFl1CbFdqlF/LmLY0KfNwHfs4jU4IX0K8nPmyt0KyJo8llLixIN
@anas-elgarhy
anas-elgarhy / gpg_key.txt
Created January 15, 2023 09:51
My main GPG key :P
View gpg_key.txt
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGO/oD8BDACnmTVcv/xysGWrY3Qdk1MWHymPGUVZAbUDemNKqlT+G6rWdipv
Fa3V/uu/NdQ7Xd2b9r2Z0JXL5a3uecApU7qcBuzaUJboVw5xyQxHsSE5eEY+lObF
ehVQlbciNsFDqdSNprvQ/Ppy13anC87vFHvbucxC/9MyZ1n/IKB/i6Ywk4fsPymh
rRzV4yYcxhPZmXsJ8XfaUsOKVr/jIcrVb/MlM9y2shZ+fb1Xjcx3y/U91Yd/Z4h8
Z0rlEzzdepZei/WcBusKcsogRyv0dRIyNVSCGWA9srusIE0TYh5np/yPqjaUp/Qd
s5MrcTk0opnSC/WDgCuv3DYJM/i95N/DlAI+hMMfAQW0khp6tXgT6zlMxm6Z+Hwu
o4bIF2cCyxiu6j0TUegmH6JiDNGIolTQUP2yaiumc8s0jvhmKB+G/zr3roMRx5H/
mBcqPecAOhHwplFl1CbFdqlF/LmLY0KfNwHfs4jU4IX0K8nPmyt0KyJo8llLixIN
@anas-elgarhy
anas-elgarhy / my_name_with_javascript_fuck.js
Created December 19, 2022 17:13
Print my first name with java script fuck :P
View my_name_with_javascript_fuck.js
console.log((![]+[])[+!![]]+([][[]]+[])[+!![]]+(![]+[])[+!![]]+(![]+[])[+!![]+!![]+!![]]);
@anas-elgarhy
anas-elgarhy / fuck_you_with_javascript_fuck.js
Last active December 19, 2022 17:04
Print fu*k you with java script fuck :D
View fuck_you_with_javascript_fuck.js
const hash = +(((((+!![] + !![]) * (+!![] + !![] + !![] + !![])) - +!![]) * (+!![] + !![] + !![] + !![] + !![]) - +!![]) +!![])
const toString = ((!![] + [])[+![]] + "o" + (![] + [])[+!![] + !![] + !![]].toUpperCase() + (!![] + [])[+![]] + (!![] + [])[+!![]] + ([][[]] + [])[+!![] + !![] + !![] + !![] + !![]] + ([][[]] + [])[+!![]] + 'g')
console.log((+((+!![]+!![]+!![])*(+!![]+!![]+!![]+!![]+!![])))[toString](hash) + (+((+!![]+!![] + !![]) * ((+!![] + !![] + !![] + !![] + !![]) * (+!![] + !![]))))[toString](hash) + (+((+!![] + !![] + !![]) * (+!![] + !![] + !![] + !![])))[toString](hash) + (+((+!![] + !![]) * ((+!![] + !![] + !![] + !![] + !![]) * (+!![] + !![]))))[toString](hash) + " " + (+((((+!![] + !![]) * (+!![] + !![] + !![] + !![])) - +!![]) * (+!![] + !![] + !![] + !![] + !![]) - +!![]))[toString](hash) + (+((+!![] + !![] + !![] + !![]) * (+!![] + !![] + !![] + !![] + !![] + !![])))[toString](hash) + (+((+!![]+!![] + !![]) * ((+!![] + !![] + !![] + !![] + !![]) * (+!![] + !![]))))[toString](hash));
View my_name_with_cow.k
// Print my first name (Anas) formated code.
MoO MoO MoO MoO MoO MoO MoO MoO // set the current block to 8
MOO // Start the loop (mo*o)
moO
MoO MoO MoO MoO // Set current block to 4
MOO // Start loop 2
moO
MoO MoO // Add 2 to the current block
moO // Move the pointer
@anas-elgarhy
anas-elgarhy / my_name_with_brainfuck.bf
Created October 6, 2022 19:30
My name in brainfu*k language 😃
View my_name_with_brainfuck.bf
My first name
Formated:
++++ ++++ 8
[
>++++
[
>++ A
>+++ a
>++++
@anas-elgarhy
anas-elgarhy / MyCv_RxResume_JSONExport.json
Last active January 5, 2023 23:49
My rx resume data 🥰
View MyCv_RxResume_JSONExport.json
{
"basics": {
"name": "Anas Elgarhy",
"email": "anas.elgarhy.dev@gmail.com",
"phone": "+201121125645",
"photo": {
"url": "https://cdn.rxresu.me/uploads/3196/3476/1672961321843.jpg",
"filters": {
"size": 160,
"shape": "circle",
@anas-elgarhy
anas-elgarhy / auto-gen-os-task-1.sh
Last active May 17, 2022 11:10
This script solves the OS assignment automatically 😀, the last part of the script is important
View auto-gen-os-task-1.sh
echo "Do you love anas elgarhy? (y/n)"
read love
if [[ $love == "y" ]]
then
# get the distro name
distro=$(lsb_release -si)
req_pkgs="zip scrot cowsay"
# Install the required packages
View emp.cpp
// Employee mangemant using c++
#include <iostream>
using namespace std;
struct Employee
{
string name;
int age;
int salary;
View scratch_5.java
class Scratch {
// This method has the same name as the class and have the return type
public int Scratch() {
return 0;
}
}
class Main {
public static void main(String[] args) {
Scratch s = new Scratch();
int a = s.Scratch(); // This is a call to the method Scratch()