How to fetch remote changes?
> git fetch --all
> git fetch --tags
How to move and push a tag?
#!/bin/bash | |
FILES="config.js app.js" | |
function initialize { | |
for file in $FILES | |
do | |
echo "moved $file to /app" | |
mv $file app | |
done |
body { | |
padding-bottom: 25px; | |
font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, sans-serif; | |
} | |
.text-danger { | |
color: #D64242; | |
} | |
.text-warning { |
html, | |
body { | |
font-family: Consolas, Menlo, Monaco, monospace; | |
font-size: 13px; | |
color: #c0C5ce; | |
line-height: 1.4; | |
white-space: pre; | |
background-color: #2b303b !important; | |
} |
# Put app to offline. | |
$ heroku maintenance:on --app APP | |
# Put app back online. | |
$ heroku maintenance:off --app APP |
" .vimrc | |
" Disable Vi compatibility | |
set nocompatible | |
if has("syntax") | |
" Enable syntax highlighting | |
syntax enable | |
" Set colorscheme | |
silent! colorscheme base-16 |
$ sudo docker run ubuntu:14.04 /bin/echo 'Hello world' | |
# The -t flag assigns a pseudo-tty or terminal inside our new container and the -i flag allows us to make an interactive connection by grabbing the standard in (STDIN) of the container. | |
$ sudo docker run -t -i ubuntu:14.04 /bin/bash | |
# A Daemonized Hello world | |
$ sudo docker run -d ubuntu:14.04 /bin/sh -c "while true; do echo hello world; sleep 1; done" | |
1e5535038e285177d5214659a068137486f96ee5c2e85a4ac52dc83f2ebe4147 | |
$ sudo docker ps |
#!/bin/bash | |
set -e | |
set -u | |
pkg_install () { | |
YUMPKG=( | |
curl-devel | |
expat-devel | |
gettext-devel |
# Redis configuration file example | |
# Note on units: when memory size is needed, it is possible to specify | |
# it in the usual form of 1k 5GB 4M and so forth: | |
# | |
# 1k => 1000 bytes | |
# 1kb => 1024 bytes | |
# 1m => 1000000 bytes | |
# 1mb => 1024*1024 bytes | |
# 1g => 1000000000 bytes |