Skip to content

Instantly share code, notes, and snippets.

View sinan's full-sized avatar
🌀

Sinan Yasar sinan

🌀
View GitHub Profile
@sinan
sinan / mac-defaults-on-a-new-setup
Last active January 5, 2024 01:26
Defaults to make mac usable on a new setup
# get rid of press and hold character popup
defaults write -g ApplePressAndHoldEnabled -bool false
# delay until a key repeats
defaults write -g InitialKeyRepeat -int 25
# duration between repeats after repeat initiation
defaults write -g KeyRepeat -int 1
# remove default shadow from window screenshots
defaults write com.apple.screencapture disable-shadow -bool true
// not yet tried but looking good
Fuzzy File Path
tabnine
Console Wrap
// installed
"A File Icon",
"Alignment",
"All Autocomplete",
"ayu",
{
"Set Local Environment Vars" : true,
"Working Directory" : "\/Users\/sinan",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 0.60392159223556519,
"Blue Component" : 0.56470590829849243,
"Red Component" : 0.63921570777893066
},
"Rows" : 25,
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
@sinan
sinan / Babel.sublime-build
Created May 6, 2018 00:01
sublime text babel build system with npx
{
"shell_cmd": "npx babel-node \"$file\"",
"selector": "source.js",
"path": "/usr/local/bin:$PATH",
"quiet": true
}
@sinan
sinan / hubspot retina image support
Last active December 20, 2017 17:58
a workaround for showing responsive images in hubspot
# in your custom module you can create two images
# e.g. widget.image and widget.image2x
# then use them in a responsive img tag as below.
# basic idea
{% if widget.image.src %}
<img src="{{ widget.image.src }}" srcset="{{ widget.image.src }} 1x, {{ widget.image2x.src }} 2x" />
{% endif %}
0x986c2dbc198904269871854f29f7519c7e44f78b
0x782EFBD01960FC86bbcE975dd6381152e5F18294
0x64c590dc81215bf882c6f4b403562bf2780c87bd
0x183b8a531d1acdae4de18db7431b0db539690756