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
<VirtualHost *:80> | |
ServerName localhost | |
DocumentRoot /var/www/site | |
<Directory /var/www/site> | |
Options Indexes FollowSymLinks | |
Require all granted | |
AllowOverride All | |
</Directory> | |
</VirtualHost> |
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
background: repeating-linear-gradient( | |
45deg, | |
#606dbc, | |
#606dbc 10px, | |
#465298 10px, | |
#465298 20px | |
); |
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
.pretty-underline { | |
color: inherit; | |
text-decoration: none; | |
background: -webkit-gradient(linear, 0 0, 0 100%, from(white), to(white)); | |
background: -webkit-linear-gradient(white, white); | |
background: -moz-linear-gradient(white, white); | |
background: -o-linear-gradient(white, white); | |
background: linear-gradient(white, white), -webkit-linear-gradient(white, white), -webkit-linear-gradient(#333332, #333332); | |
background-size: 0.05em 1px, 0.05em 1px, 1px 1px; | |
background-repeat: no-repeat, no-repeat, repeat-x; |
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
USE database | |
SELECT * FROM INFORMATION_SCHEMA.TABLES | |
WHERE TABLE_NAME LIKE '%attachment%' | |
AND TABLE_TYPE = 'BASE TABLE' |
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
function toggleFullScreen() { | |
var doc = window.document; | |
var docEl = doc.documentElement; | |
var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen; | |
var cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen; | |
if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement) { | |
requestFullScreen.call(docEl); | |
} | |
else { | |
cancelFullScreen.call(doc); |
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 //Adds the format red to CKEditor with defined styles | |
define('GSEDITOROPTIONS', " | |
format_tags: 'p;h2;h3;h4;h5;h6;pre;small;red', | |
format_small: { | |
name: 'Small', | |
element: 'small' | |
}, | |
format_red: { | |
name: 'Red', |
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
# Backup system to /backup.tgz | |
sudo su | |
cd / | |
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys --exclude=/media / |
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
function uuid() { | |
var uuid = "", i, random; | |
for (i = 0; i < 32; i++) { | |
random = Math.random() * 16 | 0; | |
if (i == 8 || i == 12 || i == 16 || i == 20) { | |
uuid += "-" | |
} | |
uuid += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16); | |
} | |
return uuid; |
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
.responsive-iframe { | |
position: relative; | |
padding-bottom: 56.25%; /* 16:9 */ | |
height: 0; | |
} | |
.responsive-iframe iframe { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; |
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
.ace_line { | |
white-space: normal !important; | |
text-indent: -1em; | |
padding-left: 1em; | |
} |