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
sudo nginx -t && sudo service nginx reload |
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
/Applications/MAMP/Library/bin/mysqld --port=3306 --socket=/Applications/MAMP/tmp/mysql/mysql.sock --skip-grant-tables | |
/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot |
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 log --pretty=format:"%cn||%h||%cd||%s" --after="2014-1-1" --before="2015-8-30" > git_log.csv |
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
sudo adduser username | |
sudo usermod -a -G groupname username | |
sudo usermod -d /var/www/[path to specific domain] username |
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
@mixin reset-styles(){ | |
margin: 0; | |
padding: 0; | |
} | |
@mixin image-2x($image, $width, $height) { | |
@media (min--moz-device-pixel-ratio: 1.3), | |
(-o-min-device-pixel-ratio: 2.6/2), | |
(-webkit-min-device-pixel-ratio: 1.3), | |
(min-device-pixel-ratio: 1.3), |
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
cp -R stage stage.live | |
chmod -R 777 workdir pdftemp logs | |
chmod -R 777 zf-cache silverstripe-cache | |
mv live live.{date} | |
mv stage.live live |
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
if(session_id() == '') { | |
session_start(); | |
} | |
if(isset($_GET['demo'])){ | |
if($_GET['demo'] == 'on'){ | |
$_SESSION['demo'] = 1; | |
}else{ | |
unset($_SESSION['demo']); | |
} |
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
<%-- | |
<% cached SiteRevisionCacheID %> | |
<% if $DontIncludeSuperNav %> | |
<% else %> | |
<% with $DontIncludeSuperNav %> | |
<nav style="display:none!important;"> | |
<% if not $software %><% include SoftwareSuperNav %><% end_if %> | |
<% if not $customer %><% include CustomerSuperNav %><% end_if %> | |
<% if not $resources %><% include ResourcesSuperNav %><% end_if %> |
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 config --global http.sslVerify false |
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
<script type="text/javascript"> | |
/** | |
enable the use of the x-cms-edit-link with | |
use: ctrl+e | |
use: alt+e | |
*/ | |
function doc_keyUp(e) { | |
//console.log(e.keyCode); | |
// ctl + e //if (e.ctrlKey && e.keyCode == 69 || | |
if(e.altKey && e.keyCode == 69) { // alt + e |