./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: yourapp | |
# Required-Start: nginx | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: The main django process | |
# Description: The gunicorn process that receives HTTP requests | |
# from nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check for merge conflicts | |
# Tested on Linux and Mac | |
# Simple check for merge conflics | |
conflicts=`git diff --cached --name-only -G"<<<<<|=====|>>>>>"` | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
AWS_ACCOUNT_ID=<ENTER_YOUR_ACCOUNT_ID_HERE> | |
REGION=us-west-2 | |
ORPHANED_SNAPSHOTS_COUNT_LIMIT=10 | |
WORK_DIR=/tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Sample configuration for app in /home/myuser/app dir | |
"uid": "app", | |
"max": 5, // restart the app successively maximum of 5 times | |
"spinSleepTime": 1000, // time to wait until a next restart is attempted (in ms) | |
"append": true, // append the logs, do not overwrite | |
"watch": true, // watch for changes and restart if they occur | |
"script": "server.js", // main startup script (almost like issuing node server.js) | |
"sourceDir": "/home/myuser/app", // the dir where your entire app code resides (dir structure is recursively traversed) | |
"args": ["--myAPIKey", "xBlzdn84fa"] // pass any arguments to your app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7-fpm-alpine | |
RUN apk --update add --virtual build-dependencies build-base openssl-dev autoconf \ | |
&& pecl install mongodb \ | |
&& docker-php-ext-enable mongodb \ | |
&& apk del build-dependencies build-base openssl-dev autoconf \ | |
&& rm -rf /var/cache/apk/* | |
# Time Zone | |
RUN echo "date.timezone=${PHP_TIMEZONE:-UTC}" > $PHP_INI_DIR/conf.d/date_timezone.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Author: Ahad Sheriff | |
Description: | |
Python script to add users to Linux groups. You can easily change the content | |
of this script to fit your needs. | |
Sample CSV file that I used to test is | |
included as `sampleAccounts.csv` | |
Data: | |
The data in the csv file must be of the form: | |
"Full Name", "Office Number", "Phone Extension #", "Department Name" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -I -X OPTIONS \ | |
-H "Origin: http://EXAMPLE.COM" \ | |
-H 'Access-Control-Request-Method: GET' \ | |
http://EXAMPLE.COM/SOMETHING 2>&1 | grep 'Access-Control-Allow-Origin' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* text=auto | |
###### Git | |
.gitattributes text | |
.gitignore text | |
.gitconfig text | |
.gitmodules text | |
##### Windows | |
*.bat text eol=crlf |
OlderNewer