Skip to content

Instantly share code, notes, and snippets.

View minhuyen's full-sized avatar

Uyen Do minhuyen

  • Astraler
  • Da Nang, Viet Nam
View GitHub Profile
@minhuyen
minhuyen / docker-compose.yml
Created January 9, 2024 06:59
private docker registry
version: '3'
services:
registry:
restart: always
image: registry:2.8.3
# ports:
# - "5000:5000"
environment:
REGISTRY_AUTH: htpasswd
@minhuyen
minhuyen / logger.js
Last active September 15, 2017 04:03 — forked from transitive-bullshit/logger.js
winston logger with filename:linenumber
var winston = require('winston');
const fs = require('fs');
var path = require('path')
var PROJECT_ROOT = path.join(__dirname, '..')
const env = process.env.NODE_ENV || 'development';
const logDir = 'log';
winston.level = 'debug';
// Create the log directory if it does not exist
@minhuyen
minhuyen / bamboo-to-slack.py
Last active August 29, 2015 14:26 — forked from remmelt/bamboo-to-slack.py
Post an Atlassian Bamboo build result to Slack
#!/usr/bin/python
"""
Create a stage in your project, make it the last stage.
Make a task in the stage with this inline script:
#! /bin/bash
/some/path/bamboo-to-slack.py "${bamboo.planKey}" "${bamboo.buildPlanName}" "${bamboo.buildResultsUrl}"