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
| alias l="ls -AFGhlO " | |
| alias ll="ls -alFgeh " | |
| alias lll="ls -alFgeh@@ " | |
| alias hig="history | grep " | |
| alias less="less -i -~ " | |
| alias ci="vi " | |
| alias bb="bbedit" | |
| alias gdc="godoc -http=:6060; open \"http:\\\\localhost:6060\\\"" | |
| function lg(){ |
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
| set nocompatible | |
| set backspace=indent,eol,start | |
| set backup | |
| set backupdir=~/tmp,/tmp,. | |
| set directory=~/tmp,/tmp,. | |
| set history=1000 | |
| set ruler | |
| set showcmd | |
| set mouse=a | |
| set autoindent |
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/bash | |
| # | |
| # Copyright 2013 Vlad Didenko | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
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
| In a rush to patch a hot issue developers may deploy | |
| a dirty codebase build. Dirty in a sense that the build | |
| happens while there are changes to the code which are | |
| not committed to the repository, even if local. If that | |
| dirty build goes to production while source code gets | |
| more changes before committing, one will never have | |
| certainty why that production build behaves a certain | |
| way should a problem arise. | |
| A full write-up on files in this solution is at: |
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/bash | |
| # As detailed at http://blog.didenko.com/2010/08/locking-for-daemons-in-bash.html | |
| pidf=/tmp/$(basename ${0}).pid | |
| exec 221>${pidf} | |
| flock --exclusive --nonblock 221 || | |
| { | |
| echo "Another instance is apparently running." | |
| 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
| on run argv | |
| tell application "iTerm" | |
| if exists current window then | |
| tell current window | |
| create tab with default profile | |
| end tell | |
| else | |
| create window with default profile | |
| end if | |
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
| diff --git a/assets/js/main.js b/assets/js/main.js | |
| index 6044dc5..c27e37f 100644 | |
| --- a/assets/js/main.js | |
| +++ b/assets/js/main.js | |
| @@ -215,6 +215,9 @@ | |
| // Main. | |
| var $main = $('#main'); | |
| + var popupMargin = $main.attr("data-popup-margin"); | |
| + if (popupMargin == 0) popupMargin = 50; |
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
| powershell.exe -nologo -command "&" C:\bin\confirm.ps1 shutdown /r /t 15 /f /d p:0:0 |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://cdn.rawgit.com/knsv/mermaid/7.0.0/dist/mermaid.min.js"></script> | |
| <script>mermaid.initialize({ startOnLoad: true });</script> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css?family=Dosis'); | |
| body { width: 95%; margin: 1em auto; text-align: center; } | |
| .note { width: 180px; } | |
| .noteText { font-family: 'Dosis', sans-serif; } |
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/bash | |
| #---------------------------------------------------- | |
| # | |
| # Copyright (C) 2017 Vlad Didenko | |
| # | |
| # This Source Code Form is subject to the terms | |
| # of the Mozilla Public License, v. 2.0. If a copy | |
| # of the MPL was not distributed with this file, | |
| # You can obtain one at https://mozilla.org/MPL/2.0/ |
OlderNewer