See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
// | |
// main.cpp | |
// Lab | |
// | |
// Created by Nermin Sehic on 10/30/16. | |
// Copyright © 2016 Nermin Sehic. All rights reserved. | |
// | |
// Stack using array | |
#include <iostream> |
// | |
// main.cpp | |
// Lab | |
// | |
// Created by Nermin Sehic on 10/30/16. | |
// Copyright © 2016 Nermin Sehic. All rights reserved. | |
// | |
#include<iostream> | |
using namespace std; |
<?php // only copy if needed | |
/** | |
* Example: Add order meta to the REST API | |
* WC 2.6+ | |
* | |
* @param \WP_REST_Response $response The response object. | |
* @param \WP_Post $post Post object. | |
* @param \WP_REST_Request $request Request object. | |
* @return object updated response object |
upstream docker-mirror-upstream { | |
server upstream.example.com; | |
} | |
proxy_cache_path /var/lib/docker-mirror/cache levels=1:2 max_size=10g inactive=48h keys_zone=cache:10m; | |
server { | |
listen 80 default_server; | |
listen 443 ssl default_server; |
#!/bin/bash | |
# Install Shadowsocks on CentOS 7 | |
echo "Installing Shadowsocks..." | |
random-string() | |
{ | |
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1 | |
} |
const formidable = require('formidable'); | |
const fs = require('fs'); | |
var Minio = require('minio'); | |
let minioClient = new Minio.Client({ | |
endPoint: config.MINIO.ENDPOINT, | |
port: config.MINIO.PORT, | |
accessKey: config.MINIO.ACCESS_KEY, |
#!/bin/sh | |
# | |
# Copyright (C) 2017 Upper Stream. | |
# | |
# See the bottom of this file for licensing conditions. | |
# | |
#set -x | |
set -e |
Just plug in your own values for registry and repo/image name.
registry='localhost:5000'
name='my-image'
curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$(
curl -sSL -I \
-H "Accept: application/vnd.docker.distribution.manifest.v2+json" \