Skip to content

Instantly share code, notes, and snippets.

View HolimaX's full-sized avatar
💭
Looking for new TPM/SRE/DevOps opportunities! :)

Linards HolimaX

💭
Looking for new TPM/SRE/DevOps opportunities! :)
View GitHub Profile
@mipaca
mipaca / downloadArtifacts.sh
Created October 9, 2019 21:43 — forked from eddiewebb/downloadArtifacts.sh
Download CircleCI Artifacts with directory structure
#!/usr/bin/env bash
#
# Download all artitacts for given build, mimicing structure locally.
#
# Batch size is slighly misleading, as it;s only how many URLs to attempt before momentary pause
#
# Can be used on CCI builds with parallelism and will only download the files for matcing index.
#
#
USAGE="$0 username/repo 123 [bitbucket] [batch_size]"
@azihsoyn
azihsoyn / circle.yml
Created March 23, 2018 12:43
example circleci 2.0 with go 1.10
version: 2
jobs:
build:
working_directory: /go/src/github.com/your_company/your_app
docker:
- image: circleci/golang:1.10.0
environment:
- GOCACHE: "/tmp/go/cache"
- DEP_VERSION: 0.4.1
steps:
@tdegrunt
tdegrunt / walk.go
Created September 29, 2014 11:53
Replace some text in a bunch of files with golang
package main
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
)