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)| One bugfix | |
| http://www.sencha.com/forum/showthread.php?23615-Grid-Search-Plugin&p=799141&viewfull=1#post799141 | |
| For datecolumns like: | |
| ,{ | |
| text:'date', | |
| dataIndex:'datecreated', | |
| xtype:'datecolumn', | |
| format:'d.m.Y H:i' | |
| } |
| // This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
| var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
| // Open (or create) the database | |
| var open = indexedDB.open("MyDatabase", 1); | |
| // Create the schema | |
| open.onupgradeneeded = function() { | |
| var db = open.result; | |
| var store = db.createObjectStore("MyObjectStore", {keyPath: "id"}); |
| ## Sublime Text 3 Serial key build is 3103 | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 | |
| B085E65E 2F5F5360 8489D422 FB8FC1AA |
| <?php | |
| $pidFile = __DIR__ . '/push-notify.pid'; | |
| $localSockAddr = __DIR__ . '/push-notify.sock'; // used for sending updates | |
| $publicSockAddr = 'tcp://0.0.0.0:1337'; // bind address for push clients | |
| $remoteSockAddr = 'tcp://127.0.0.1:1337'; // push client remote address for testing |
| Step by step installation guide for nginx + PHP 7.1 on CentOS 7 | |
| 1. Add and enable Remi repos | |
| yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
| yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
| yum install yum-utils | |
| yum-config-manager --enable remi-php71 | |
| 2. Install php 7.1 and required modules | |
| yum install php71-php-fpm |
| <?php | |
| declare(strict_types=1); | |
| namespace My\Queue; | |
| use Pheanstalk\Pheanstalk; | |
| use Exception; | |
| class BeanstalkdWorker |
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)On Tue Oct 27, 2015, history.state.gov began buckling under load, intermittently issuing 500 errors. Nginx's error log was sprinkled with the following errors:
2015/10/27 21:48:36 [crit] 2475#0: accept4() failed (24: Too many open files) 2015/10/27 21:48:36 [alert] 2475#0: *7163915 socket() failed (24: Too many open files) while connecting to upstream...
An article at http://www.cyberciti.biz/faq/linux-unix-nginx-too-many-open-files/ provided directions that mostly worked. Below are the steps we followed. The steps that diverged from the article's directions are marked with an *.
su to run ulimit on the nginx account, use ps aux | grep nginx to locate nginx's process IDs. Then query each process's file handle limits using cat /proc/pid/limits (where pid is the process id retrieved from ps). (Note: sudo may be necessary on your system for the cat command here, depending on your system.)fs.file-max = 70000 to /etc/sysctl.confFirst get to the existing directory
$ cd my/folder/
Now start a new git repository
$ git init
Identify if the current elements on the directory are needed or not and add them to the .gitignore file. When ready...
$ vim .gitignore
When ready create the first commit on the server