Skip to content

Instantly share code, notes, and snippets.

On vacation

Maciej Sypień egel

On vacation
Block or report user

Report or block egel

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
egel / pre-commit
Last active Mar 20, 2017
Block to commit if user's email not match
View pre-commit
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
# To enable this hook, rename this file to "pre-commit".
AUTHOR="Maciej Sypień <>"
if [ -z "$_command" ]; then
printf "clear|install|uninstall\n"
exit 1

Keybase proof

I hereby claim:

  • I am egel on github.
  • I am egel ( on keybase.
  • I have a public key ASB3Kr8PUznjDEU8aZvR9gsFDFtaxahivFn5vgs8ttHgTQo

To claim this, I am signing this object:

egel / pre-push
Last active Jul 6, 2016
Git pre-push guardian to prevent push to protected branches.
View pre-push
# General colors
green='\x1B[0;32m' # '\e[1;32m' is too bright for white bg.
egel /
Created Apr 11, 2016
Simple script that help you to insert multiple csv data into MySQL database table
read -r -p "Type MySQL user (root): " USER
if [ -z "$USER" ]; then
read -r -p "Type MySQL $USER password: " PASS
read -r -p "Type MySQL database name: " DBNAME
read -r -p "Type MySQL database table: " DBTABLE
egel / angular-lodash.js
Created Mar 4, 2016
angular-lodash provider
View angular-lodash.js
'use strict';
function _lodashProvider() {
return {
$get: function($window) {
function _getLodash() {
return $window._
return {
egel / include.html
Created Mar 4, 2016 — forked from pmanijak/include.html
Minimal template example with AngularJS
egel / index.html
Created Mar 3, 2016
Minimal angular example with ui.router
View index.html
<!doctype html>
<html ng-app="project">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<script src=""></script>
<script src=""></script>
<script src="scripts.js"></script>
egel /
Created Feb 21, 2016 — forked from jimothyGator/
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
You can’t perform that action at this time.