# root
php artisan cache:clear
php -i | grep USER
chown -R www-data:www-data storage
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
<link rel="shortcut icon" href="/images/favicons/favicon.ico" /> | |
<link rel="apple-touch-icon" sizes="57x57" href="/images/favicons/apple-touch-icon-57x57.png"> | |
<link rel="apple-touch-icon" sizes="114x114" href="/images/favicons/apple-touch-icon-114x114.png"> | |
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicons/apple-touch-icon-72x72.png"> | |
<link rel="apple-touch-icon" sizes="60x60" href="/images/favicons/apple-touch-icon-60x60.png"> | |
<link rel="apple-touch-icon" sizes="120x120" href="/images/favicons/apple-touch-icon-120x120.png"> | |
<link rel="apple-touch-icon" sizes="76x76" href="/images/favicons/apple-touch-icon-76x76.png"> | |
<link rel="apple-touch-icon" sizes="152x152" href="/images/favicons/apple-touch-icon-152x152.png"> | |
<link rel="icon" type="image/png" href="/images/favicons/favicon-196x196.png" sizes="196x196"> | |
<link rel="icon" type="image/png" href="/images/favicons/favicon-160x160.png" sizes="160x160"> |
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
http_port 3128 | |
cache deny all | |
hierarchy_stoplist cgi-bin ? | |
access_log none | |
cache_store_log none | |
cache_log /dev/null | |
refresh_pattern ^ftp: 1440 20% 10080 | |
refresh_pattern ^gopher: 1440 0% 1440 |
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
# Local to Remote: rsync [OPTION]... -e ssh [SRC]... [USER@]HOST:DEST | |
# Remote to Local: rsync [OPTION]... -e ssh [USER@]HOST:SRC... [DEST] | |
# remote -> local | |
rsync -havz -e ssh user@12.12.12.12:/var/wwww/livesite/ /var/www/localsite/ | |
# local -> remote | |
rsync -havz -e ssh /var/www/localsite/ user@12.12.12.12:/var/www/livesite/ | |
# dry run |
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
grep -R 'class="close-btn"' . | |
# limiting searches to files with a specific extension | |
grep '.ad' **/*.css | |
# grepping inside vim | |
:grep -F '.ad' **/*.css |
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
# http://patorjk.com/software/taag/#p=display&f=Bloody&t=Good%0AEvening | |
h=`date +%H` | |
if [ $h -lt 12 ]; then | |
echo ' | |
▄████ ▒█████ ▒█████ ▓█████▄ | |
██▒ ▀█▒▒██▒ ██▒▒██▒ ██▒▒██▀ ██▌ | |
▒██░▄▄▄░▒██░ ██▒▒██░ ██▒░██ █▌ | |
░▓█ ██▓▒██ ██░▒██ ██░░▓█▄ ▌ |
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
// ============================================ | |
// Media Break Points | |
// Usage: @media #{$small-screen} { code here } | |
// ============================================ | |
$smaller-only-screen: "only screen and (max-width : 20em)"; | |
$small-only-screen: "only screen and (max-width : 45em)"; | |
$small-screen: "only screen and (min-width : 30em)"; | |
$medium-screen: "only screen and (min-width : 45em)"; | |
$large-screen: "only screen and (min-width : 60em)"; |
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
#!/bin/bash | |
DATE=$(date "+%Y%m%d%H%M%S") | |
DBUSER=$1 | |
DBPASS=$2 | |
DBNAME=$3 | |
mysqldump -u $DBUSER --password=$DBPASS $DBNAME | gzip > /path/to/dump/$DBNAME$DATE.sql.gz |
Dry run
php srdb.cli.php -h <172.21.0.4> -n <database_name> -u <database_user> -p <database_password> --port <database_port> -s <search_string> -r <replace_query> -z
Run
php srdb.cli.php -h <172.21.0.4> -n <database_name> -u <database_user> -p <database_password> --port <database_port> -s <search_string> -r <replace_query>
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
javascript:(function(){"use strict";function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}function Watermelon(e){var t=[],o=void 0,r=void 0,n={colors:5,threshold:255},a=e?e:n,l={position:"absolute",width:"100%",height:"100%","z-index":99999},i={display:"inline-block",position:"relative","margin-bottom":"-5px",height:"100%",width:a.size+"%",transition:"all 0.3s ease"},c=function(e){return console.log(e)},d=function(){var e=50+Math.floor(Math.random()*a.threshold),t=50+Math.floor(Math.random()*a.threshold),o=50+Math.floor(Math.random()*a.threshold);return"rgb( "+e+", "+t+", "+o+" )"},s=function(e){var t="";for(var o in e)e.hasOwnProperty(o)&&(t+=o+":"+e[o]+";");return t},u=function(e,t,o){var r=o|t<<8|e<<16;return"#"+(16777216+r).toString(16).slice(1)},m=function(e){return e.substring(4,e.length-1).replace(/ /g,"").split(",")},p=function(){document.getElementById("exocarp")&&document.getElementById("exocarp").remove();var e=docum |
NewerOlder