Skip to content

Instantly share code, notes, and snippets.


Mina Demian minademian

View GitHub Profile
View ioslocaleidentifiers.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
View addressing vulnerability alert
npm list <pkg>
create npm-shrinkwrap.json file
npm i
View gist:eaa6f4203f00bd0ca053186ce6dfbbba
docker container stop ansible-player &&
docker container rm ansible-player &&
docker rmi $(docker images | grep ansible | awk -F ' ' '{print $3}')
minademian / .babelrc
Last active Jun 14, 2018
Internationalization project - automating the 1) process of checking if existing copy keys are being used, 2) if keys conform to BEM
View .babelrc
"presets": ["es2016"]
minademian / ReplaceSweChar
Created Apr 27, 2018
replace Swedish characters
View ReplaceSweChar
" Replace all Swedish special characters with entities.
" adapted from
nnoremap <silent> ,r :call ReplaceSweChar()<CR>
function! ReplaceSweChar()
silent %s/Å/\&Aring;/eg
silent %s/Ö/\&Ouml;/eg
silent %s/Ä/\&Auml;/eg
silent %s/É/\&Eacute;/eg
silent %s/å/\&aring;/eg
silent %s/ö/\&ouml;/eg
minademian /
Last active Apr 27, 2018 — forked from citrusui/
"Dropdowns" in Markdown
How do I dropdown?
This is how you dropdown.

<summary>How do I dropdown?</summary>
This is how you dropdown.
minademian / duplicate-lines.regex
Created Apr 11, 2018
delete duplicate lines in text editor
minademian / ls-output-cleaner
Last active Apr 11, 2018
cleans up output from GCE Storage Bucket if you copy and paste from browser into text editor
View ls-output-cleaner
View regex scratchpad
^(.*)(\r?\n\1)+$ # search for duplicate lines in file
\: # look for character
\n # put in newline character
View scrolling in tmux
# Add this to your .tmux.conf
set -g mouse on
set-option -g -q mouse on
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
You can’t perform that action at this time.