ip -o -f inet addr show | awk '/scope global/ {print $4}'
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
$excelDateTime = 45292.29566316; | |
// Calculate the number of seconds since January 1, 1900 (Excel base date) | |
$secondsSince1900 = ($excelDateTime - 25569) * 86400; | |
// Create a DateTime object using the calculated timestamp | |
$date = new DateTime("@$secondsSince1900"); | |
echo $date->format('Y-m-d H:i:s'); // Output in desired format |
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
[ | |
{ | |
"context": "Workspace", | |
"bindings": { | |
"shift shift": "workspace::ToggleBottomDock" | |
} | |
}, | |
{ | |
"context": "Editor", | |
"bindings": { |
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 | |
function ssl_encrypt($source, $key) | |
{ | |
$maxlength = 117; | |
$output = ''; | |
while($source) { | |
$input = substr($source, 0, $maxlength); | |
$source = substr($source, $maxlength); |
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
Source - https://stackoverflow.com/a/37266353
Remember to commit everything you've changed before you do this!
git rm -rf --cached .
git add .
git commit -m "commit name"
Source - https://stackoverflow.com/a/25436481
Install phpredis
git clone https://www.github.com/phpredis/phpredis.git
cd phpredis
phpize && ./configure && make && sudo make install
Add extension=redis.so
in your php.ini