Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| #!/bin/bash | |
| sudo apt-get install qt5-default | |
| wget http://kcachegrind.sourceforge.net/kcachegrind-0.7.4.tar.gz | |
| tar xvf kcachegrind-0.7.4.tar.gz | |
| cd kcachegrind-0.7.4 | |
| qmake && make | |
| sudo install -m 755 qcachegrind/qcachegrind /usr/local/bin | |
| sudo install -m 644 qcachegrind/qcachegrind.desktop \ | |
| /usr/local/share/applications/ |
| # Set variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
| <?php | |
| /* | |
| Install: | |
| 1) create a folder: disablecsrf inside 'plugins/' directory. | |
| 2) place this file there and name it: disablecsrf.php | |
| 3) go to config/config.inc.php, and add it to plugins, like: | |
| $config['plugins'] = array('disablecsrf'); | |
| CSRF should now be disabled for login. | |
| */ |
| <?php | |
| class Text { | |
| /** | |
| * Limits a phrase to a given number of characters. | |
| * | |
| * $text = Text::limit_chars($text); | |
| * | |
| * @param string $str phrase to limit characters of |
| # post_loc.txt contains the json you want to post | |
| # -p means to POST it | |
| # -H adds an Auth header (could be Basic or Token) | |
| # -T sets the Content-Type | |
| # -c is concurrent clients | |
| # -n is the number of requests to run in the test | |
| ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/ |
| <?php | |
| /** | |
| * @file | |
| * gvdump.php | |
| * | |
| * @author: Frédéric G. MARAND <fgm@osinet.fr> | |
| * | |
| * @copyright (c) 2014 Ouest Systèmes Informatiques (OSInet). | |
| * | |
| * @license MIT |
| #!/bin/sh | |
| yum -y groupinstall "Development Tools" | |
| wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm | |
| wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm | |
| rpm -Uvh epel-release-5*.rpm | |
| rpm -Uvh remi-release-5*.rpm | |
| yum -y install python-devel screen | |
| yum --enablerepo=remi install libcurl-devel -y | |
| mkdir /opt/miner | |
| cd /opt/miner |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)$ dig -t txt googleprd._domainkey.yale.edu
; <<>> DiG 9.9.1-P3-RedHat-9.9.1-9.P3.fc17 <<>> -t txt googleprd._domainkey.yale.edu
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12280
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 5
| ----- Esc ----- | |
| Quick change directory: Esc + c | |
| Quick change directory history: Esc + c and then Esc + h | |
| Quick change directory previous entry: Esc + c and then Esc + p | |
| Command line history: Esc + h | |
| Command line previous command: Esc + p | |
| View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
| Print current working directory in command line: Esc + a | |
| Switch between background command line and MC: Ctrl + o | |
| Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |