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
Load up Terminal (Applications > Utilities > Terminal.app) and type the following. | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist | |
To turn it back on, just do the opposite: | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist |
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
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
#!/usr/bin/env ruby | |
# A script that will pretend to resize a number of images | |
require 'optparse' | |
# This hash will hold all of the options | |
# parsed from the command-line by | |
# OptionParser. | |
options = {} | |
optparse = OptionParser.new do|opts| |
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
<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
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
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 |
NewerOlder