-
First 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
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 *.
-
- Instead of using
suto runulimiton the nginx account, useps aux | grep nginxto locate nginx's process IDs. Then query each process's file handle limits usingcat /proc/pid/limits(wherepidis the process id retrieved fromps). (Note:sudomay be necessary on your system for thecatcommand here, depending on your system.)
- Instead of using
- Added
fs.file-max = 70000to /etc/sysctl.conf - Added `nginx soft nofile 1
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)
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
| <?php | |
| declare(strict_types=1); | |
| namespace My\Queue; | |
| use Pheanstalk\Pheanstalk; | |
| use Exception; | |
| class BeanstalkdWorker |
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
| 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 |
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
| <?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 |
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
| ## 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 |
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
| // 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"}); |
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
| 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' | |
| } |