brew cask install google-cloud-sdk
Go to this page https://cloud.google.com/sdk/install and follow instructions.
gcloud components install beta
brew cask install google-cloud-sdk
Go to this page https://cloud.google.com/sdk/install and follow instructions.
gcloud components install beta
| version: 2 | |
| jobs: | |
| test: | |
| docker: | |
| - image: gobuffalo/buffalo:v0.12.3 | |
| working_directory: /go/src/github.com/our/app | |
| steps: | |
| - checkout | |
| - run: | |
| q := tx.PaginateFromParams(c.Params()) | |
| … | |
| c.Set("pagination", q.Paginator) |
| <%= partial("partials/page-indicator.html", {plural: "Cats", basePath: catsPath({humanSlug: currentHuman.Slug})}) %> |
| <div class="pagination-label"> | |
| <span class="opacity">Displaying <%= pagination.Offset + 1 %> - <%= pagination.Offset + pagination.CurrentEntriesSize %> of <%= pagination.TotalEntriesSize %> <%= plural %></span> | |
| <i class="per-page-separator">|</i> | |
| <span class="per-page-<%= paginator.perPage %>"> | |
| <a href="<%= basePath %>?per_page=25"><i class="opacity per-page-25-number per-page-option">25</i></a> | |
| <a href="<%= basePath %>?per_page=50"><i class="opacity per-page-50-number per-page-option">50</i></a> | |
| <a href="<%= basePath %>?per_page=100"><i class="opacity per-page-100-number per-page-option"> 100</i></a> | |
| <i class="opacity"><%= plural %> per page.</i> | |
| </span> | |
| </div> |
| const webpack = require("webpack"); | |
| const glob = require("glob"); | |
| const path = require("path"); | |
| const CopyWebpackPlugin = require("copy-webpack-plugin"); | |
| const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
| const ManifestPlugin = require("webpack-assets-manifest"); | |
| const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); | |
| const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); | |
| const CleanWebpackPlugin = require("clean-webpack-plugin"); | |
| var MODE = process.env.NODE_ENV || "development"; |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| git log $(git describe --tags $(git rev-list --tags --max-count=1))...HEAD --pretty=format:'* %s ' --reverse | grep -v Merge | cat - CHANGELOG.md > temp && mv temp CHANGELOG.md | |
| echo "\n**** Version $1" | cat - CHANGELOG.md > temp && mv temp CHANGELOG.md | |
| git tag -a $1 -m "Version $1 released" | |
| echo "$1" > version |
| # Initialization for a ruby project | |
| PROJECTS_DIR="/Users/$(whoami)/Projects" | |
| rubyinit(){ | |
| PROJECT_NAME="$1" | |
| PROJECT_FOLDER="$2" | |
| if [ -z "$PROJECT_NAME" ]; then | |
| echo "| ERROR You must specify a project name!" | |
| return |
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Add Docker PPA and install latest version | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
| sudo apt-get update | |
| sudo apt-get install lxc-docker -y |