Skip to content

Instantly share code, notes, and snippets.

View meabed's full-sized avatar
👨‍💻
Coding

Mohamed Meabed meabed

👨‍💻
Coding
View GitHub Profile

Keybase proof

I hereby claim:

  • I am meabed on github.
  • I am meabed (https://keybase.io/meabed) on keybase.
  • I have a public key ASAvNrbN71mNb_HIQ7pdBC2khdaTS3RBuGUFi3lRSwCG9wo

To claim this, I am signing this object:

@meabed
meabed / .zshrc
Last active June 29, 2020 08:14
Easy zsh / oh-my-zsh up and running
# zsh, oh-my-zsh, antigen setup for mac
# on mac you need to install:
# brew install zsh antigen zsh-completions
# find more information @ https://meabed.com/zsh-oh-my-zsh-up-and-running
source /usr/local/share/antigen/antigen.zsh
export LSCOLORS='exfxcxdxbxegedabagacad'
export CLICOLOR=true
export SUBLIME=subl

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@meabed
meabed / es6_features.md
Created January 9, 2019 11:51
ES6 Features
1. Default Parameters in ES6
@meabed
meabed / ipsec
Last active November 5, 2018 10:44
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
cat >./vpn.env <<EOL
VPN_IPSEC_PSK=ipsec_shared_key
VPN_USER=admin
VPN_PASSWORD=vpn_pass
VPN_DNS_SRV1=1.1.1.1
VPN_DNS_SRV2=1.0.0.1
VPN_DNS_SRV3=8.8.8.8
- name: uname task
command: "uname -a"
- name: dist task
command: "cat /etc/*issue"
- name: lookup task
command: "nslookup 10.152.152.20"
- name: dig google.com
#!/usr/bin/env bash
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs
mkdir node-curl && cd node-curl && rm -rf node_modules && npm i -f node-libcurl --build-from-source
echo "
var Curl = require('node-libcurl').Curl;
var curl = new Curl();
@meabed
meabed / gist:41da736f985672c556ab8f65902e55e2
Last active May 8, 2018 04:01
node 10.0.0 => npm i node-libcurl
root@c23b560300f0:/var/www/test# npm i node-libcurl
> node-libcurl@1.3.1 install /var/www/test/node_modules/node-libcurl
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/JCMais/node-libcurl/releases/download/v1.3.1/node_libcurl-v1.3.1-node-v64-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-libcurl@1.3.1 and node@10.0.0 (node-v64 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/var/www/test/node_modules/node-libcurl/build'
CXX(target) Release/obj.target/node_libcurl/src/node_libcurl.o
In file included from ../src/node_libcurl.cc:25:0:
@meabed
meabed / new_user.sh
Last active August 14, 2017 13:50
OVH Ubuntu Kernel
#!/bin/bash
#
# #############################################################################
# Create new SSH user (Ubuntu)
# 1) Download the "raw" with - wget -O createNewSSHUser.sh
# 2) Make it executable with - chmod a+x createNewSSHUser.sh
# 5) Immediately set a new password by logging in once with -
# su newUsrName
# #############################################################################
#