Skip to content

Instantly share code, notes, and snippets.

@kaanra
kaanra / statamic2-homebrew-7.4.md
Created November 7, 2023 17:16
[Statamic 2 PHP 7.4 + Homebrew PHP]

Homebrew How to Switch Local PHP Version

Switch from latest PHP (might be 8.2) to 7.4
brew unlink php && brew link php@7.4 --force --overwrite && php -v

Switch from PHP 7.4 to latest PHP (might be 8.2)
brew unlink php@7.4 && brew link php --force --overwrite && php -v

Check the PHP version with php -v

@kaanra
kaanra / webp-convert.md
Created July 25, 2023 17:13
[Covert Images to WebP using cwebp] #images #webp #terminal
@kaanra
kaanra / my-gist.md
Created November 9, 2022 00:00
[My Gist] #shortcut

This is my gist

Here's some code code

@kaanra
kaanra / bash-profile-sources.md
Last active November 9, 2021 23:13
[Bash Profile and Terminal Colours] #terminal
@kaanra
kaanra / mac-mouse-speed.md
Last active November 21, 2022 16:35
[Increase Mac Mouse Speed] #mac

Change the last value to whatever speed you want

defaults write -g com.apple.mouse.scaling 16

@kaanra
kaanra / sublime-search-exclude.md
Last active February 7, 2020 21:26
[Sublime Text Search Exclude] #sublime

CMD + SHIFT + F

-*.css,-*.scssc,-node_modules

@kaanra
kaanra / valet-firefox-ssl.md
Last active January 10, 2020 21:59
[Fix Valet Firefox SSL Warning] #valet #laravel #ssl #firefox

Fix Valet Firefox SSL Warning

Credit: laravel/valet#296 (comment)

IMPORT valet's CA to Firefox's certificate Authorities

  1. Firefox > Preferences
  2. Privacy & Security > View Certificates
  3. Authorities > Import
  4. CMD + SHIFT + G ~/.config/valet/CA/ > LaravelValetCASelfSigned.pem
@kaanra
kaanra / mysql-terminal-commands.md
Last active January 10, 2020 21:30
[MySQL Terminal Commands] #mysql #terminal

Log into mysql

mysql -u root -p

List databases

SHOW DATABASES;

Current system variable values actually used by the server as it runs

SHOW VARIABLES;

See some statistical and status indicators for a running server

@kaanra
kaanra / bitbucket-pipeline.yml
Last active April 18, 2022 18:34
[Bitbucket Pipelines Git-ftp] #git #bitbucket #pipelines
# https://www.savjee.be/2016/06/Deploying-website-to-ftp-or-amazon-s3-with-BitBucket-Pipelines/
# https://github.com/git-ftp/
#
# If using plain FTP, switch sftp to ftp and remove --insecure flag
#
# $VARIABLES: These are bitbucket repo variables. Set under Your Bitbucket Repo > Settings > Repository variables
#
# $SFTP_HOST example: sftp://myhostnamehere/public_html/staging
#
# --insecure flag: Set due to error "curl failed to verify the legitimacy of the server and therefore could not
@kaanra
kaanra / homebrew-mysql.md
Last active October 5, 2022 23:57
[Homebrew mysql] #terminal #homebrew #mysql