Skip to content

Instantly share code, notes, and snippets.

View ehabdevel's full-sized avatar
☯️
Software developer

Ehab Hussein ehabdevel

☯️
Software developer
View GitHub Profile
@ehabdevel
ehabdevel / gist:ea4cdf10d7ae4f6366a1e1ca71720b1d
Created July 18, 2025 19:53
How to generate a Google Play upload key and keystore for a Flutter app in Android Studio?
1- run this command:
keytool -genkeypair -v -keystore key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
2-Create a file named key.properties in the android directory of your project
3-Add the following lines and replace the placeholders with the values from the keystore you generated:
storePassword=toio123
keyPassword=toio123
keyAlias=key
@ehabdevel
ehabdevel / Your_guide_to_concise_JavaScript.md
Last active September 30, 2022 18:14
Article from codementor.io - By: Catalin Tudorache

The easiest code to maintain is the code you never write

You probably know this saying. I always liked to keep my code clean and concise, hoping that this will help the people who will take care of the project in the future. It would benefit me as well if I would maintain that project, because I might forget some aspects and having an easy to read codebase gives everyone a good head start. Let's see how can you write less JS code and make an easier to read/maintain/debug project.

Note:this article presents a collection of well known concepts and some relevant examples.

Table of contents:

  1. Template strings
  2. forEach, map and reduce
- To Open explorer as administrator in linux
sudo nautilus
____________________________________________________
To make Debian/Ubunto shutdown after a particular time
You can do it simply from your terminal.
@ehabdevel
ehabdevel / Frontend user profile in WordPress
Created June 5, 2018 00:14 — forked from chrisdigital/Frontend user profile in WordPress
Setting up a editable user profile in WordPress on the frontend.
//How to edit a user profile on the front end?
//http://wordpress.stackexchange.com/questions/9775/how-to-edit-a-user-profile-on-the-front-end
//Forcing nickname as display_name in custom edit profile template
//http://wordpress.stackexchange.com/questions/35403/forcing-nickname-as-display-name-in-custom-edit-profile-template
///////
<?php
@ehabdevel
ehabdevel / About > styles.css
Created December 19, 2017 04:30
Scroll Animations with React
***About > styles.css***
------------------------
.about-wrapper {
height: 30em;
width: 100vw;
}
.about-text {
position: relative;
width: 30em;
height: 20em;
@ehabdevel
ehabdevel / functions.php
Created March 30, 2017 00:39
Auto featured images for WordPress posts
<?php
/* * *******Auto featured ******* */
!defined('ABSPATH') and exit;
if (!function_exists('fb_set_featured_image')) {
add_action('save_post', 'fb_set_featured_image');
function fb_set_featured_image() {
if (!isset($GLOBALS['post']->ID)) {
return NULL;