Skip to content

Instantly share code, notes, and snippets.

View MoatazAbdAlmageed's full-sized avatar
⌨️
pressing f12 key

Moataz Mohammady MoatazAbdAlmageed

⌨️
pressing f12 key
View GitHub Profile
https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha
.userContentWrapper p {
font-size: 30px
;
}
._2yq #globalContainer {
width: 1412px ;
In brwoser console past this code
```
Array.prototype.unique = function() {
var a = [];
for (i = 0; i < this.length; i++) {
var current = this[i];
if (a.indexOf(current) < 0) a.push(current);
}
return a;
{"lastUpload":"2019-07-30T15:02:53.189Z","extensionVersion":"v3.4.1"}
```
drop database learn;
create database learn;
show databases;
use learn;
show tables;
-- #################### CREATE
CREATE TABLE users (
id int PRIMARY KEY NOT NULL AUTO_INCREMENT,
first_name varchar(25) not null,
@MoatazAbdAlmageed
MoatazAbdAlmageed / killchrome
Last active December 27, 2020 13:03
kill chrome if no memory available
#add those to ~/.bashrc and call `chromekiller`
danger(){
echo "huuu!" ;
#check this for installing say https://askubuntu.com/questions/501910/how-to-text-to-speech-output-using-command-line
say "hello"
sleep 0.5
}
chromekiller(){
makeapp(){
mkdir assets && touch README.md index.html scripts.js styles.css && git init && npm init -y
}
mkcourse(){
mkdir 00.completed 01.talks [Arabic]
echo "source ~/bash/more/youtube.sh" > download.sh
gedit download.sh
{"*":{"_enabled":true,"_rules":{"audio,video":{"width":"100%"}}},"academy.hsoub.com":{"_enabled":true,"_rules":{"#ipsLayout_sidebar":{"display":"none\n"},".hsoubAcademy #elCmsPageWrap article.ipsContained.hsoubArticle":{"max-width":"100%"},".hsoubAcademy .ipsType_richText, .hsoubAcademy #elCmsPageWrap":{"line-height":"4em"},".ipsCode":{"background":"#333","color":"#fff"},".ipsCode *":{"color":"#fff"},".ipsType_richText *":{"font-size":"30px"},"at1":{"at":true,"expanded_text":"","text":"@import url(//fonts.googleapis.com/earlyaccess/notokufiarabic.css);","type":"@import","url":"//fonts.googleapis.com/earlyaccess/notokufiarabic.css"},"h1, h2, h3, h4, h5, h6":{"color":"#fd5f60","font-weight":"bolder"},"table":{"direction":"ltr"}}},"alkawarir.yoo7.com":{"_enabled":true,"_rules":{"*":{"font-size":"20px"}}},"ar.wikipedia.org":{"_enabled":true,"_rules":{"*:not(.fa):not(.dashicons):not(.ab-icon):not(.glyphicon)":{"font-family":"'Noto Kufi Arabic', sans-serif ","line-height":"2em"},"at1":{"at":true,"expanded_text":"",
/*
Instead use this extention https://chrome.google.com/webstore/detail/unfollow-multiple-fb-frie/cbodficgeliglmldlablaoimafadffcp
#unfollow all friends (Only for PC or laptop))
# go to News Feed preferences
# select Unfollow people and groups to hide their posts
# select Friends only
# open browser console and add this code
*/
@MoatazAbdAlmageed
MoatazAbdAlmageed / Post Types
Created March 29, 2020 10:22
researchProjects
{"internal_publication":{"name":"internal_publication","label":"Internal_publications","singular_label":"Internal_publication","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"","rest_controller_class":"","has_archive":"false","has_archive_string":"","exclude_from_search":"false","capability_type":"post","hierarchical":"true","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"","show_in_menu":"true","show_in_menu_string":"","menu_icon":"","supports":["title","editor","thumbnail","comments","revisions","author"],"taxonomies":["research"],"labels":{"menu_name":"\u0627\u0635\u062f\u0627\u0631\u0627\u062a \u062f\u0627\u062e\u0644\u064a\u0629","all_items":"\u0643\u0644 \u0627\u0644\u0627\u0635\u062f\u0627\u0631\u0627\u062a","add_new":"\u0627\u0636\u0627\u0641\u0629","add_new_item":"\u0627\u0636\u0627\u0641\u0629 \u0627\u0635\u062f\u
@MoatazAbdAlmageed
MoatazAbdAlmageed / query
Last active April 6, 2020 14:42
graphqlhub
query graphQLHub($userName: String!, $includeRepos: Boolean!) {
github {
user(username: $userName) {
login
id
avatar_url
repos @include(if: $includeRepos) {
...repoInfo
}
}