Skip to content

Instantly share code, notes, and snippets.

View hamedasemi's full-sized avatar

Hamed Asemi hamedasemi

  • Stockholm, Sweden
View GitHub Profile
@hamedasemi
hamedasemi / post-merge
Created December 13, 2016 18:01 — forked from sindresorhus/post-merge
git hook to run a command after `git pull` if a specified file was changed.In this example it's used to run `npm install` if package.json changed and `bower install` if `bower.json` changed.Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
@hamedasemi
hamedasemi / nginx.conf
Created December 11, 2016 22:27
nginx.conf
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@hamedasemi
hamedasemi / Test Web Applications and APIs.md
Created December 9, 2016 21:14
Test Web Applications and APIs.md

Test Web Applications and APIs

Apegroup Testing Web (BETA) IN PROGRESS

Applications Units, Web Components and Web APIs Integration test Applications Units, Web Components and Web APIs Integration test Web Components (Polymer) Test Web Components (Polymer) Test

@hamedasemi
hamedasemi / Google Cloud Node.js default.yaml
Last active December 9, 2016 21:12
Google Cloud Node.js default.yaml
service: default
runtime: nodejs
env: flex
health_check:
enable_health_check: false
default_expiration: '4d 5h'
@hamedasemi
hamedasemi / Setting up Nginx on Your Local System.md
Last active December 9, 2016 19:22
Setting up Nginx on Your Local System

#Setting up Nginx on Your Local System ###by Keith Rosenberg

##Step 1 - Homebrew The first thing to do, if you're on a Mac, is to install homebrew from http://mxcl.github.io/homebrew/

The command to type into terminal to install homebrew is:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@hamedasemi
hamedasemi / cloudSettings
Last active February 7, 2017 18:41
Visual Studio code settings e65e1309f074b8a5c2babb38c6cbda33 3eb4e69783ec3304c00eb2cc1d7f22d9a7854fbc
{"lastUpload":"2017-02-07T18:41:52.944Z","extensionVersion":"v2.4.3"}