Skip to content

Instantly share code, notes, and snippets.

@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
@kaanra
kaanra / finder-open-tab.md
Last active December 7, 2024 20:58
[Open new Finder tab in same directory] #mac #shortcuts
@kaanra
kaanra / IE11-opacity-jitter-fix.scss
Last active January 10, 2020 16:41
[Firefox opacity jitter bugfix] #css
// stop background image and opacity change flicker in IE11
@include transform(rotate(0));
@kaanra
kaanra / wp-ie-script-conditional.php
Last active January 3, 2018 22:55
[Conditionally include IE scripts] #IE #wordpress
add_action( 'wp_enqueue_scripts', 'wps_enqueue_lt_ie9' );
/**
* Conditionally Enqueue Script for IE browsers less than IE 9
*
* @link http://php.net/manual/en/function.version-compare.php
* @uses wp_check_browser_version()
*/
function wps_enqueue_lt_ie9() {
global $is_IE;
@kaanra
kaanra / sublime-sass-file-icon-fix.md
Last active January 3, 2018 22:31
[Fix SASS file icons with Sublime set as default App (Mac)] #sublime

How to fix SASS file icon associations with Sublime (Mac)

  1. Open /Applications/Sublime Text 2.app/Contents/Info.plist

  2. Add to the top of the array:

    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
    

CFBundleTypeName