Skip to content

Instantly share code, notes, and snippets.

View a7madgamal's full-sized avatar

Ahmed Hassanein a7madgamal

View GitHub Profile
@a7madgamal
a7madgamal / google-meet-friendly ascii art.txt
Created January 25, 2021 11:16
ascii art for Google Meet
┈┈┈┈┈┈▕▔╲
┈┈┈┈┈┈┈▏▕
┈┈┈┈┈┈┈▏▕▂▂▂
▂▂▂▂▂▂╱┈▕▂▂▂▏
▉▉▉▉▉┈┈┈▕▂▂▂▏
▉▉▉▉▉┈┈┈▕▂▂▂▏
▔▔▔▔▔▔╲▂▕▂▂▂I
@a7madgamal
a7madgamal / sync_git_branches.sh
Last active January 18, 2019 10:32
stash changes > fetch all branches > pull all branches from remote > merge each local branch with master > pop stash > enjoy!
#!/usr/bin/env bash
I="\e[96m"
E="\e[90m"
echo -e "🤖$I starting sync.. $E";
CURRENT_BRANCH="`git rev-parse --abbrev-ref HEAD`"
STASH_RESULT="`git stash push -u -m AUTO_STASH | grep Saved`"
if [ -n "$STASH_RESULT" ]; then
yarn run v1.9.2
$ prettier '**/*.{js,jsx,json,css,scss,less,md,ts,tsx}' --write
__mocks__/fileMock.js 30ms
__mocks__/mocks.js 9ms
__mocks__/styleMock.js 4ms
.stylelintrc.js 5ms
app/FakeRouting.ts 213ms
app/src/common/actionCreators/accessToken.ts 13ms
app/src/common/actionCreators/config.ts 7ms
app/src/common/actionCreators/requestsTimestamp.ts 7ms
@a7madgamal
a7madgamal / stylelintrc.js
Last active July 17, 2018 10:20
stylelint example
module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-css-modules'],
plugins: ['stylelint-scss'],
rules: {
// ########################################### important rules ###########################################
'declaration-block-no-duplicate-properties': null,
'property-no-unknown': null,
'selector-pseudo-element-no-unknown': null,
'unit-no-unknown': null,
'font-family-no-duplicate-names': null,
@a7madgamal
a7madgamal / git_push_pull.sh
Last active March 29, 2018 14:45
shell script to commit local git repo,push current branch and pull on remote repo
#!/bin/bash
# usage:
# . /path/to/git_push_pull.sh "/local/git/repo/path" "remote/git/repo/path" "remoteuser@remotehost" "OPTIONAL:remote/source/folder" "OPTIONAL:remote/destination/location"
# it's better to create a separate script and name it project_name.sh for each project with this code:
#. /path/to/git_push_pull.sh "/local/git/repo/path" "remote/git/repo/path" "remoteuser@remotehost" "OPTIONAL:remote/source/folder" "OPTIONAL:remote/destination/location"
#the optional parameters are useful if you need to copy a folder from the repo (after pulling) to another location and not the whole git folder
  • yarn add --dev flow-bin
  • yarn run flow init
"atom-beautify":
prettyName: "Atom Beautify"
homepage: "https:/atom.io/packages/atom-beautify"
"atom-material-syntax-dark":
prettyName: "Atom Material Syntax Dark"
homepage: "https:/atom.io/packages/atom-material-syntax-dark"
"atom-material-ui":
prettyName: "Atom Material Ui"
homepage: "https:/atom.io/packages/atom-material-ui"
VBoxManage clonehd mydrive.vdi newdrive.vdi
VBoxManage modifymedium --resize 8096 newdrive.vdi
@a7madgamal
a7madgamal / open_commit_in_gitlab.sh
Created December 21, 2016 14:29
Sourcetree action - Open commit in Gitlab
#!/bin/sh
# a sourcetree custom action to open the selected commit in gitlab (easy to change to a similar url)
# 1- download this file somewhere and make sure it's executable
# 2- sourcetree > prefreances > custom actions > add > 'Open commit in gitlab' as title > select script > $SHA in params
#
# Ahmed Hassanein - Tickaroo
gitRemote=$(git config --get remote.origin.url)
if [ "$gitRemote" == "" ]
then