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
openssl x509 -in YOUR_CERT.pem -serial -noout |
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
# Synchronize the state of FPM-services for said PHP-version | |
sudo systemctl enable php7.4-fpm | |
sudo service php7.4-fpm restart |
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
# Enabling proxy | |
ssh -D 8080 -f -C -N username@server | |
# Tunnelling via proxy | |
curl -v --socks5-hostname 0:8080 icanhazip.com | |
# Killing process | |
ps -C ssh | |
kill {PID} |
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
stripe listen --forward-to 192.168.10.10:80/webhook/stripe --headers "host:hostdomain.test" |
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
defaults write com.pixelmatorteam.pixelmator.x scrollToZoomDirectionInverted -bool 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 | |
public function register() | |
{ | |
// Prefered method | |
\Carbon\Carbon::setUTF8(true); | |
\Carbon\Carbon::setLocale(config('app.locale')); | |
setlocale(LC_TIME, config('app.locale')); | |
// If a specific language-pack is installed/to be used |
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
understanding.se | |
literature.se | |
organization.se | |
month.se | |
failure.se | |
population.se | |
category.se | |
finding.se | |
responsibility.se | |
county.se |
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
# Check current values | |
pmset -g | |
# Set a pmset values (must be sudo) | |
pmset -a $key $value | |
# Scan the pmset log for sleep and wake reasons | |
pmset -g log|grep -e " Sleep " -e " Wake " | |
# Try to find reasons for keeping the Mac awake |
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
$data = array_map(function($v) { | |
return str_getcsv($v, ";"); | |
}, file($file)); |
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
./ngrok http 192.168.10.10:80 --host-header=SITE |
NewerOlder