Git clone without deep history make cloning faster when we only need the latest code.
First run
| #!/bin/sh | |
| # .git/hooks/commit-msg | |
| test "" != "$(egrep '[A-Z]{3,}-\d+' "$1")" || { | |
| echo >&2 Commit message requires JIRA code. | |
| exit 1 | |
| } |
| # maximum capability of system | |
| user@ubuntu:~$ cat /proc/sys/fs/file-max | |
| 708444 | |
| # available limit | |
| user@ubuntu:~$ ulimit -n | |
| 1024 | |
| # To increase the available limit to say 200000 | |
| user@ubuntu:~$ sudo vim /etc/sysctl.conf |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| ''' | |
| Follow these steps to configure the webhook in Slack: | |
| 1. Navigate to https://<your-team-domain>.slack.com/services/new | |
| 2. Search for and select "Incoming WebHooks". |
| - name: Make sure the sites-available, sites-enabled and conf.d directories exist | |
| file: | |
| path: "{{nginx_dir}}/{{item}}" | |
| owner: root | |
| group: root | |
| mode: 0755 | |
| recurse: yes | |
| state: directory | |
| with_items: ["sites-available", "sites-enabled", "conf.d"] |
| #!/bin/bash | |
| ROOT_UID=0 | |
| SUCCESS=0 | |
| E_USEREXISTS=70 | |
| # Run as root, of course. (this might not be necessary, because we have to run the script somehow with root anyway) | |
| if [ "$UID" -ne "$ROOT_UID" ] | |
| then | |
| echo "Must be root to run this script." | |
| exit $E_NOTROOT |