This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%"---"%> | |
created: <% tp.file.creation_date('YYYY-MM-DD HH:MM:ssSS') %> | |
updated: <% tp.file.creation_date('YYYY-MM-DD HH:MM:ssSS') %> | |
cloud_host: "pcloud" | |
tags: | |
- video | |
- youtube | |
<%* | |
/* | |
REMEMBER: Save this file as 'Video - YouTube.md' (strip the '.txt' extension) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"command": "vscode-neovim.compositeEscape1", | |
"key": "j", | |
"when": "neovim.mode == insert && editorTextFocus", | |
"args": "j" | |
}, | |
{ | |
"command": "vscode-neovim.compositeEscape2", | |
"key": "k", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for i in {0..255}; do | |
printf "\x1b[38;5;${i}mcolour${i}\x1b[0m\n" | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
FILES='(js|css|rb|slim|haml|jsx)' | |
FORBIDDEN='(binding.pry|console.log|\!important|binding.pry_remote)' | |
GREP_COLOR='4;5;37;41' | |
if [[ $(git diff --cached --name-only | grep -E $FILES) ]]; then | |
git diff --cached --name-only | grep -E $FILES | \ | |
xargs grep --color --with-filename -n -E $FORBIDDEN && \ | |
echo "Looks like you are trying to commit something you shouldn't. Please fix your diff, or run 'git commit --no-verify' to skip this check, if you must." && \ | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let i = 1 | |
while i <= 9 | |
execute 'nnoremap <Leader>' . i . ' :' . i . 'wincmd w<CR>' | |
let i = i + 1 | |
endwhile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT TABLE_NAME AS "Table Name", | |
table_rows AS "Quant of Rows", ROUND( ( | |
data_length + index_length | |
) /1024, 2 ) AS "Total Size Kb" | |
FROM information_schema.TABLES | |
WHERE information_schema.TABLES.table_schema = '<DATABASENAME>' | |
LIMIT 0 , 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
table_schema as `Database`, | |
table_name AS `Table`, | |
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` | |
FROM information_schema.TABLES | |
ORDER BY (data_length + index_length) DESC; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple Ruby server | |
ruby -run -e httpd -- -p 5000 . | |
# Simple Python Server | |
python -m SimpleHTTPServer 5000 | |
# alias entries | |
alias start-webserver-python='python -m SimpleHTTPServer 8000' | |
alias start-webserver-ruby='ruby -run -e httpd . -p 5000' |