Skip to content

Instantly share code, notes, and snippets.

@bombel2
bombel2 / build.sh
Created February 18, 2019 17:19 — forked from bobbytables/build.sh
Protocol Buffer build script for multiple folders
#!/usr/bin/env bash
# This script is meant to build and compile every protocolbuffer for each
# service declared in this repository (as defined by sub-directories).
# It compiles using docker containers based on Namely's protoc image
# seen here: https://github.com/namely/docker-protoc
set -e
REPOPATH=${REPOPATH-/opt/protolangs}
CURRENT_BRANCH=${CIRCLE_BRANCH-"branch-not-available"}
@bombel2
bombel2 / windows_10_dynamic_ports_fix.txt
Created January 16, 2019 01:08
Windows 10 fix dynamic port allocation
netsh int ipv4 set dynamicport tcp start=49152 num=16384
netsh int ipv4 show dynamicport tcp
@bombel2
bombel2 / Jenkinsfile
Created January 14, 2019 20:41 — forked from bvis/Jenkinsfile
Jenkin pipeline definition example to be integrated with Docker Swarm cluster in our CI/CD environment
pipeline {
agent { node { label 'swarm-ci' } }
environment {
TEST_PREFIX = "test-IMAGE"
TEST_IMAGE = "${env.TEST_PREFIX}:${env.BUILD_NUMBER}"
TEST_CONTAINER = "${env.TEST_PREFIX}-${env.BUILD_NUMBER}"
REGISTRY_ADDRESS = "my.registry.address.com"
SLACK_CHANNEL = "#deployment-notifications"
@bombel2
bombel2 / cloudSettings
Last active August 25, 2020 18:11
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-25T18:10:39.833Z","extensionVersion":"v3.4.3"}
@bombel2
bombel2 / logger.ps1
Created March 25, 2018 00:38 — forked from barsv/logger.ps1
Logging in powershell with log rotation
# all logging settins are here on top
$logFile = "log-$(gc env:computername).log"
$logLevel = "DEBUG" # ("DEBUG","INFO","WARN","ERROR","FATAL")
$logSize = 1mb # 30kb
$logCount = 10
# end of settings
function Write-Log-Line ($line) {
Add-Content $logFile -Value $Line
Write-Host $Line