Skip to content

Instantly share code, notes, and snippets.

:electron:
hacking with electron

Ahmed Hassanein a7madgamal

:electron:
hacking with electron
Block or report user

Report or block a7madgamal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@a7madgamal
a7madgamal / sync_git_branches.sh
Last active Jan 18, 2019
stash changes > fetch all branches > pull all branches from remote > merge each local branch with master > pop stash > enjoy!
View sync_git_branches.sh
#!/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
@a7madgamal
a7madgamal / .gitconfig
Created Dec 17, 2018 — forked from arnauldvm/.gitconfig
Git sync all local tracking branches with remotes
View .gitconfig
[alias]
tracking = "!f() { git for-each-ref --format '%(refname:short):%(upstream:short)' 'refs/heads' | grep -Ev ':$'; }; f"
is-clean-workdir = "!f() { git diff --stat --exit-code || { echo \"Workdir dirty\"; exit 1; }; }; f"
is-clean-index = "!f() { git diff --stat --cached --exit-code || { echo \"Index dirty\"; exit 2; }; }; f"
is-clean = "!f() { git is-clean-workdir && git is-clean-index; }; f"
co-merge = "!f() { local=\"$1\"; remote=\"$2\"; git checkout \"$local\"; git merge --ff-only \"$remote\"; }; f"
current-branch = rev-parse --abbrev-ref HEAD
sync = "!f() { git stash push -u -m AUTO_STASH && git is-clean || { echo Aborting sync.; exit 1; }; current=$(git current-branch); git fetch --all; git tracking | while IFS=: read local remote; do echo \"Merging $local with $remote\"; git co-merge \"$local\" \"$remote\"; done 3>&1 1>&2 2>&3 | grep -iE --color 'fatal|$' 3>&1 1>&2 2>&3; git checkout \"$current\"; git stash pop; }; f"
View prettier_log
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 / .zpreztorc
Last active Sep 25, 2019
my Prezto config (zsh shell)
View .zpreztorc
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
@a7madgamal
a7madgamal / stylelintrc.js
Last active Jul 17, 2018
stylelint example
View stylelintrc.js
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 / dark.md
Last active Oct 16, 2019
Dark mode for Slack on MacOS
View dark.md
@a7madgamal
a7madgamal / hireAsoundclouder.json
Created Jul 25, 2017
Hire a Soundclouder spreadsheet as json format
View hireAsoundclouder.json
[
{
"company": "AdMass",
"role": "Data Engineer",
"location": "New York, NY",
"remote": "No",
"jobspec": "https://angel.co/admass/jobs/260672-data-engineer",
"comment": "Social media data is some of the richest behavioral data that exists. People post on social media about what they’re eating, where they’re going, what they’re wearing, who they’re with, etc. However, most brands have very limited access to this data and therefore don’t know how to create the best experiences and ads for their community. AdMass changes this by integrating directly with brands to gather data and help them understand who their customers area. We combine data from several sources, including the brand’s CRM, social media platforms, and web analytics.\n\nWe aren’t looking for someone with a specific degree or number of years of experience in a slew of different technologies. We’re looking for someone that will thrive as a data engineer at our early-stage start up."
}, {
"company": "LAUNCH POTATO",
View resize virtualbox vdisk
VBoxManage clonehd mydrive.vdi newdrive.vdi
VBoxManage modifymedium --resize 8096 newdrive.vdi
You can’t perform that action at this time.