This file contains 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
export $(cat .env | xargs) && docker-compose exec -T mysql mysql -p$MYSQL_PASS <<< "show databases\G" |
This file contains 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
-- begin extract | |
awful.key({modkey}, "Left", | |
function() | |
focus_next_horizontal_client("left") | |
end, | |
{description = "focus left", group = "client"} | |
), | |
awful.key({modkey}, "Right", | |
function() | |
focus_next_horizontal_client("right") |
This file contains 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
curl -SL https://github.com/DarthSim/overmind/releases/download/v2.0.3/overmind-v2.0.3-linux-amd64.gz | sudo gunzip > ./overmind && sudo chmod +x ./overmind & sudo mv ./overmind /usr/local/bin |
This file contains 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
function! s:saveas() | |
return ":saveas ". expand("%:r") . "_COPY." .expand("%:e") | |
endfunction | |
nnoremap <expr> <leader>sa <SID>saveas() |
This file contains 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
" Overwrite default Markdown Fold function | |
function! MarkdownFold() | |
let line = getline(v:lnum) | |
" Regular headers | |
let depth = match(line, '\(^#\+\)\@<=\( .*$\)\@=') | |
if depth > 0 | |
return ">" . depth | |
endif |
This file contains 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
<head> | |
<link href="https://unpkg.com/netlify-cms/dist/cms.css" rel="stylesheet"/> | |
</head> | |
<body> | |
<script src="https://unpkg.com/netlify-cms/dist/cms.js"></script> | |
<script> | |
var PublishControl = createClass({ | |
handleClick: function(e) { |
This file contains 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
image: "ruby:2.4" | |
simple_test: | |
script: | |
- apt-get update -qq && apt-get -yqq install gnupg2 | |
- git clone https://github.com/mipmip/blackbox | |
- cd blackbox | |
- make manual-install | |
- cd .. | |
- gpg -v --import <(echo "$GPG_PRIVATE_KEY") |
This file contains 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
# Check the Id of the job you want to debug in the typo3 backend | |
# cd to the TYPO3 document root | |
# Then run: | |
./typo3cms scheduler:run --task-id 4 --force |
This file contains 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
on basename(thePath) -- Requires POSIX path | |
if thePath ends with "/" then | |
set nameIndex to -2 | |
else | |
set nameIndex to -1 | |
end if | |
set ASTID to AppleScript's text item delimiters | |
set AppleScript's text item delimiters to "/" | |
set thePath to text item nameIndex of thePath | |
set AppleScript's text item delimiters to ASTID |
This file contains 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
map <silent> ,w :silent w<CR> :!pandoc '%' -o '%.docx'<CR><CR> |
NewerOlder