This file contains hidden or 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
| # 1. Copy the certificates to a location that's shared between Vagrant and your local filesystem | |
| cd /etc/ssl/certs | |
| cp ca.homestead.homestead.pem /home/vagrant/code | |
| # 2. Add the certificates to you browser of choice (Firefox: Certificate Manager -> Import). |
This file contains hidden or 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 --add remote.origin.fetch +refs/heads/BRANCH_NAME:refs/remotes/origin/BRANCH_NAME | |
| git fetch origin BRANCH_NAME | |
| git checkout -b BRANCH_NAME origin/BRANCH_NAME | |
| # Via @tylerwiegand on Laracasts.com (https://laracasts.com/discuss/channels/forge/change-a-github-branch-for-a-site-already-setup-with-forge) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder