Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
read base_name <<< $( echo $1 | awk -F "\." '{print $1}' )
size=$(convert "$1" -print "%wx%h\n" /dev/null)
read width height <<< $( echo $size | awk -F'[x]' '{print $1" "$2}' )
export IFS=","
prev_label=""
@orotemo
orotemo / draw_rect.sh
Last active December 21, 2016 09:22
draws rectangles with labels. example input provided. expects the input image to have similarly named `.csv` file next to it
#!/bin/bash
read base_name <<< $( echo $1 | awk -F "\." '{print $1}' )
size=$(convert "$1" -print "%wx%h\n" /dev/null)
read width height <<< $( echo $size | awk -F'[x]' '{print $1" "$2}' )
export IFS=","
prev_label=""
set t_Co=256
colorscheme distinguished
set hlsearch
set colorcolumn=80
autocmd BufRead,BufNewFile *.skim set filetype=slim
autocmd BufRead,BufNewFile *.hamlc set filetype=haml
autocmd BufRead,BufNewFile *.json set filetype=javascript
autocmd BufRead,BufNewFile [A-Z]*file set filetype=config
autocmd BufRead,BufNewFile *.vcl set filetype=config
Plug 'slim-template/vim-slim'
Plug 'groenewege/vim-less'
Plug 'vim-erlang/vim-erlang-runtime'
Plug 'vim-erlang/vim-erlang-omnicomplete'
Plug 'vim-erlang/vim-erlang-compiler'
Plug 'vim-erlang/vim-erlang-tags'
Plug 'vim-erlang/vim-erlang-skeletons'
Plug 'elixir-lang/vim-elixir'
Plug 'guns/vim-clojure-static'
Plug 'derekwyatt/vim-scala'
CREATE DATABASE yourdbname;
CREATE USER youruser WITH ENCRYPTED PASSWORD 'yourpass';
GRANT ALL PRIVILEGES ON DATABASE yourdbname TO youruser;
@orotemo
orotemo / il.json
Created February 12, 2023 09:39
shopify hebrew translation file
{
"general": {
"password_page": {
"login_form_heading": "הכנס לחנות באמצעות סיסמה:",
"login_password_button": "הכנס באמצעות סיסמה",
"login_form_password_label": "סיסמה",
"login_form_password_placeholder": "סיסמתך",
"login_form_error": "סיסמה שגוייה!",
"login_form_submit": "הכנס",
"admin_link_html": "האם אתה בעל החנות? <a href=\"/admin\" class=\"link underlined-link\">התחבר כאן</a>",