Skip to content

Instantly share code, notes, and snippets.

@kaanra
kaanra / sublime-shortcuts.md
Last active March 12, 2023 08:05
[Sublime Text Shortcuts] #sublime

Sublime Text Shortcuts


Selection

Command Key
Select a word. Command + D
Select all instances of a word. Select a code, line, or word first the hit this combo to select the others with the same instances. Command + Ctrl + G
@kaanra
kaanra / scopes.txt
Last active January 3, 2018 22:52 — forked from iambibhas/scopes.txt
[Sublime Text 2 Snippet Scope List] #sublime
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
@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

@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 / 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 / finder-open-tab.md
Last active July 8, 2020 02:05
[Open new Finder tab in same directory] #mac #shortcuts
@kaanra
kaanra / homebrew-mysql.md
Last active October 5, 2022 23:57
[Homebrew mysql] #terminal #homebrew #mysql
@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