- Digitized (http://www.digitized.gr)
- Up North Conference (http://upnorthconf.gr)
- Devit Conference (https://www.devitconf.org)
- JoomlaDay (http://joomladay.gr) -- ON HOLD --
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
Taken from = https://coderwall.com/p/rs63ea | |
For 32-bit system use phantomjs-1.9.0-linux-i686.tar.bz2 | |
For 64-bit system use phantomjs-1.9.0-linux-x86_64.tar.bz2 | |
Go to the SHARE directory cd /usr/local/share |
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
1. Get the file cacert.pem from http://curl.haxx.se/docs/caextract.html | |
2. store it somewhere like /etc/php5/apache2 | |
3. Put this line in your php.ini (/etc/php5/apache/php.ini) | |
curl.cainfo=/etc/php5/apache2/cacert.pem | |
4. All set! |
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
public function fire() | |
{ | |
//// Preventing Cron Job Collision | |
$file = "/var/www/tick/cronlock"; | |
$fp = fopen($file, 'r+'); | |
if(!flock($fp, LOCK_EX | LOCK_NB)) { | |
$this->error('Cron is already running another task...'); | |
exit(-1); | |
} | |
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
> Removed | |
-Dawt.useSystemAAFontSettings=lcd | |
> Added | |
-Dswing.aatext=true | |
-Dawt.useSystemAAFontSettings=gasp | |
-Dsun.java2d.xrender=true |
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 | |
/** | |
* See In nth Email | |
* |
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
// Step 1. Create this class in the middleware folder. | |
<?php namespace App\Http\Middleware; | |
use Closure; | |
class BeforeAutoTrimmer { | |
/** | |
* Handle an incoming request. |
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
clip < ~/.ssh/id_rsa.pub |
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
drush dl restws | |
drush en restws | |
drush role-add-perm 'anonymous user' 'access resource node' |
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
1. Make sure the ssh public key of your development is added to the live server. This way you won't need a passowrd. Test this by connecting to it directly ssh user@liveserver | |
2. Login to live server by `ssh user@liveserver` and create a new ssh key by `ssh-keygen`. MAKE SURE NOT TO INSERT A PASSWORD. | |
3. Add this public key to your bitbucket or github account that your repository is stored. | |
4. Make sure that the deploy.php script connects to git without https, for example = set('repository', 'git@bitbucket.org:gdrakakis/checkout.git'); | |
5. Run dep deploy production -vvv to see exacty the running comands. | |
CPANEL users | |
--------------- | |
If you can't connect to your live server with ssh, make sure that the user can connect to the server with SSH. | |
To do this go to "Manage Shell Access" of WHM, select the user and assign him "Normal Shell*" |