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
| # tmux config for ultimate winning | |
| # make tmux display things in 256 colors | |
| #set -g default-terminal "screen-256color" | |
| # use this if italic enabled in term profile | |
| set -g default-terminal "tmux-256color" | |
| # set just true color without custom term | |
| #set -ga terminal-overrides ",xterm-256color:Tc" | |
| # fixes bug: https://github.com/tmux/tmux/issues/435 | |
| #set -ga terminal-overrides ',xterm*:sitm=\E[3m' |
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
| # so docker cloud now has swarms fleet mgmt | |
| # and you can use something like this to connect from cli to your swarm via docker remote api: | |
| docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST dockercloud/client bretfisher/swarm1 | |
| # but maybe we can put that in a bash alias to make it easier | |
| alias cswarm="docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST dockercloud/client" | |
| #then | |
| cswarm bretfisher/dude-swarm1 |
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
| @echo off | |
| REM Automation of Steps to Reset Windows Updates | |
| REM Tested on Server 2012 R2, likely works on everything Win7/2008R2 and up | |
| REM by Bret Fisher bret@bretfisher.com | |
| REM also find this info and more in a blog article at http://www.fishbrains.com/2015/01/29/untitled/ | |
| REM Origional Steps (identical to this): http://support.microsoft.com/kb/971058 | |
| REM This file Copyright MIT License | |
| REM Stop Services |
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
| # connect to tty on Docker for Mac VM | |
| screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty | |
| # disconnect that session but leave it open in background | |
| Ctrl-a d | |
| # list that session that's still running in background | |
| screen -ls | |
| # reconnect to that session (don't open a new one, that won't work and 2nd tty will give you garbled screen) |
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
| # first install pygmentize to the mac OS X or macOS system with the built-in python | |
| sudo easy_install Pygments | |
| # then add alias to your ~/.bash_profile or ~/.bashrc or ~/.zshrc etc. | |
| alias pcat='pygmentize -f terminal256 -O style=native -g' |
NewerOlder