Skip to content

Instantly share code, notes, and snippets.

View felicianotech's full-sized avatar

Ricardo N Feliciano felicianotech

View GitHub Profile
@felicianotech
felicianotech / gist:46264d0ddc8fbdd2fb64
Created November 23, 2015 14:13
Example scenario of running `rm * .xml`
felicianotech@articuno:~/Sandbox$ ls -la
total 4
drwxrwxr-x 2 felicianotech felicianotech 83 Nov 23 09:11 .
drwxr-xr-x 8 felicianotech felicianotech 4096 Nov 23 09:10 ..
-rw-rw-r-- 1 felicianotech felicianotech 0 Nov 23 09:11 binary
-rw-rw-r-- 1 felicianotech felicianotech 0 Nov 23 09:11 chicken.txt
-rw-rw-r-- 1 felicianotech felicianotech 0 Nov 23 09:10 example.xml
-rw-rw-r-- 1 felicianotech felicianotech 0 Nov 23 09:10 second.xml
-rw-rw-r-- 1 felicianotech felicianotech 0 Nov 23 09:11 .xml
felicianotech@articuno:~/Sandbox$ rm * .xml
@felicianotech
felicianotech / .ciignore
Created June 15, 2016 04:51
An example Git hook to automate when to use [skip ci] in commit messages. This particular hook uses patterns from a file called .ciignore
logs/*
@felicianotech
felicianotech / newer-go-on-circle-example.txt
Created November 14, 2016 21:52
An example of how to use Go versions newer than v1.6.2 on CircleCI.
machine:
environment:
GODIST: "go1.7.3.linux-amd64.tar.gz"
post:
- mkdir -p downloads
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf download/$GODIST
@felicianotech
felicianotech / gist:56ad8f63156e233e6a16df50fe6d4791
Created August 22, 2017 23:02
Using AWS ECR with CircleCI 2.0 (docker executor)
version: 2
jobs:
build:
docker:
- image: circleci/openjdk:8-jdk
steps:
- checkout
- setup_remote_docker
- run:
name: install aws
@felicianotech
felicianotech / gist:2a558f1e0e365d445d6ffb5e38b9455c
Created April 30, 2018 18:15
CircleCI Go Project Config Sample
workflows:
version: 2
build-and-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
....................................................................................................
@felicianotech
felicianotech / cci-node-multiversion-before-example.yml
Created November 16, 2018 14:54
An example CircleCI 2.0 config building with multiple versions of Node.js.
workflows:
version: 2
main:
jobs:
- unit-node6
- unit-node8
- unit-node10
- lint
- integration
- ui
@felicianotech
felicianotech / cci-node-multiversion-after-example.yml
Created November 16, 2018 15:05
An example CircleCI 2.1 config building with multiple versions of Node.js.
version: 2.1
workflows:
main:
jobs:
- unit-tests:
version: 6
- unit-tests:
version: 8
- unit-tests:
@felicianotech
felicianotech / gist:e81d86c0ef69524562ed2c1ff9c2d84b
Created December 19, 2019 16:27
Packages installed in cimg/go:1.13.4
----Main-----
- Go v1.13.4
- GoTestSum v0.4.0
-----Apt-----
NAME VERSION SIZE
-adduser 3.116ubuntu1 624K
-apparmor 2.12-4ubuntu5.1 1.8M
steps:
- restore_cache:
keys:
- gatsby-build-v1-{{ .Branch }}-
- run:
environment:
DATA_SOURCE_URL: << parameters.data-source-url >>
name: Gatsby Build (incremental)
# yarn or npm uses the same scripts section at package.json
# we are safe to use this command as main execution