This file contains 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/sh | |
### BEGIN INIT INFO | |
# Provides: jmeter-server | |
# Required-Start: $syslog $local_fs | |
# Required-Stop: $syslog $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Apache JMeter Remote Server | |
# Description: Apache JMeter Remote Server runs JMeter tests issued from a remote server. | |
### END INIT INFO |
This file contains 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
#!/usr/bin/php | |
<?php | |
class EventWrapper { | |
public function __construct($vars) { | |
foreach ($vars as $name => $val) $this->$name = $val; | |
} | |
public function __get($name) { | |
return property_exists($this, $name)? $this->$name: null; | |
} |
This file contains 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 | |
cd ~/ | |
wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.65.tar.gz | |
tar -zxf mysql-5.1.65.tar.gz | |
cd mysql-5.1.65 | |
./configure '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-system-type=debian-linux-gnu' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-fast-mutexes' '--with-big-tables' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--without-readline' '--with-ssl' '--without-docs' '--with-extra-charsets=all' '--with-plugins=max' '--with-embedded-server' '--with-embedded-privilege-control' | |
make |
This file contains 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
<?php | |
// Account number goes here | |
$account_num = 'LJ123456'; | |
// Your ZIP code | |
$zip = '12345'; | |
// Path to eBooks | |
$path = 'C:/eBooks/Linux Journal'; | |
// eBook download format: pdf, epub, mobi | |
$format = 'pdf'; |
This file contains 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 | |
nmap -sT --open -oG - -p 2068,5900 172.16.1.1-254 | grep open |
This file contains 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/sh | |
./configure \ | |
--prefix=/usr \ | |
--with-apxs2=/usr/bin/apxs2 \ | |
--with-config-file-path=/etc/php5/apache2 \ | |
--with-config-file-scan-dir=/etc/php5/apache2/conf.d \ | |
--build=x86_64-linux-gnu \ | |
--host=x86_64-linux-gnu \ | |
--sysconfdir=/etc \ |
This file contains 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
<?php | |
error_reporting(E_ALL); | |
class AsyncWebRequest extends Thread { | |
public $url; | |
public $num; | |
public $data; | |
public function __construct($url, $num){ | |
$this->url = $url; |
This file contains 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 | |
cd "$( dirname "${BASH_SOURCE[0]}" )" | |
COMPOSER=$(which composer || echo "$(pwd)/../composer.phar") | |
if [ ! -f "$COMPOSER" ]; then | |
echo "Installing composer" | |
cd .. | |
curl -sS https://getcomposer.org/installer | php |
This file contains 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
# Git integration | |
# https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh | |
# You should edit ~/.bashrc and set `force_color_prompt=yes`, then add | |
# this this to the end: if [ -f ~/.bash_git ]; then . ~/.bash_git; fi | |
LIGHT_WHITE="\[\033[1;37m\]" | |
WHITE="\[\033[0;37m\]" | |
GRAY="\[\033[1;30m\]" | |
BLACK="\[\033[0;30m\]" | |
RED="\[\033[0;31m\]" |
This file contains 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/sh | |
# | |
# nginx - this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /usr/local/nginx/conf/nginx.conf | |
# pidfile: /usr/local/nginx/logs/nginx.pid |