This was tested on:
- Ubuntu 14.04 x64
- Ubuntu 16.04 x64
Install the xvfb server by running
#!/bin/bash | |
#This shell script is moving uids and gids to new server without grabbing the system accounts | |
#The one caveat with this script is confirming the UID start limit and upper limit for your distro | |
#This can be confirmed by checking the /etc/libuser.conf it is denoted there in RHEL distros | |
#This script is to be ran from the /tmp directory as denoted in BASE | |
#This script is valid for 6.5 RHEL and down as is. Change UGIDLIMIT to 1000 for v7.0 | |
#Create directory for migration files | |
BASE=/tmp | |
if [ -d ${BASE}/move ] |
tail -fn0 /var/log/auth.log | \ | |
while read line ; do | |
echo "$line" | grep "password check failed for user" | |
if [ $? = 0 ] | |
then | |
echo "Wrong Login Attempt" | mail -s "Login Password Wrong - GigoLinux" [email protected] | |
fi | |
done |
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.
<?php | |
/* | |
Increase or decrease value in CakePHP with little footprint. | |
Add this to your AppModel. | |
Usage: | |
(in Controller) | |
$this->Model->increase('field_name', 1); |
var gulp = require('gulp'); | |
// Include Our Plugins | |
var jshint = require('gulp-jshint'); | |
var sass = require('gulp-sass'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var minifyCSS = require('gulp-minify-css'); | |
var rename = require('gulp-rename'); | |
var yuidoc = require("gulp-yuidoc"); |
.col-ms-1, | |
.col-ms-2, | |
.col-ms-3, | |
.col-ms-4, | |
.col-ms-5, | |
.col-ms-6, | |
.col-ms-7, | |
.col-ms-8, | |
.col-ms-9, | |
.col-ms-10, |
public function afterFilter(){ | |
parent::afterFilter(); | |
if (class_exists('ConnectionManager') && class_exists('ChromePhp') && Configure::read('debug') > 1) : | |
$logs = ConnectionManager::getDataSource('default'); | |
$this->Oxicode->logs_console($this->request->here, array_reverse($logs->getLog())); | |
endif; | |
} |
#!/bin/bash | |
echo -e "\nbenchmark.sh -n<number of requests> -c<number of concurrency> <URL1> <URL2> ..." | |
echo -e "\nEx: benchmark.sh -n100 -c10 http://www.google.com/ http://www.bing.com/ \n" | |
## Gnuplot settings | |
echo "set terminal png | |
set output 'benchmark_${1}_${2}.png' | |
set title 'Benchmark: ${1} ${2}' |