Skip to content

Instantly share code, notes, and snippets.

Miguel David minac

Block or report user

Report or block minac

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:370c8a12c593736976dc0673206d0d66
O Website teria 6-10 páginas (não queremos "single page apps" para poder ver onde é que as pessoas vão parar) com a seguinte informação:
Header:
- “DevOpsDays Portugal”
- botão tickets para o ti.to
- botão CFP para o paper call
- links youtube/twitter/facebook-email
- menu para páginas abaixo
Página principal:
View gist:d39aa8dfc2a81ed7cba48e2aaf69f219
# Run k8s-tools deploy from anywhere
function k8s-tools() {
DOCKER_EXTRA_ARGUMENTS="${DOCKER_EXTRA_ARGUMENTS:-}"
# check if STDIN is a terminal
if [[ -t 0 ]]; then
DOCKER_EXTRA_ARGUMENTS="$DOCKER_EXTRA_ARGUMENTS --interactive"
fi
# check if STDOUT is a terminal
View gitflow.sh
#!/bin/bash
## Originally Lee Jones's workflow, adapted to Miguel David on 12/07/2019
# My general workflow is:
#
# 1. `branch-me [name of new branch]` - this creates a new branch with my initials prefixed and replaces
# spaces with hyphens
# 2. I make changes to the codebase and commit my work.
# 3. `merge-me` - pushes the current branch and opens the GitHub PR page - it attempts to set a human friendly
# title (e.g. removes my initials, removes hyphens, capitalizes each word)
@minac
minac / recommendationsforportugal.md
Last active Mar 26, 2019
Recommendations for Portugal
View recommendationsforportugal.md

Recommendations for Portugal

Carly and I are fortunate enough to know people from different parts of the World. Since Portugal and specifically Porto became famous in the tourist circuit we keep getting asked for recommendations, so we joined together a bunch of things we had written to different friends and make it a blog post so that it's easily shareable. We hope it is useful for you. If you like it then (shameless plug), consider coming on one of our food tours in Porto to get to know the local culture through food and wine with amazing guides.

DISCLAIMER: This is Carly and Miguel's research and opinion, not Taste Porto's, nor any formal guidebooks. Different people think and prefer different things, so proceed as you will.

Portugal sea and surf

The sea/ocean off the western coast of Portugal is cold year round, the Atlantic has no warm currents here, and there is a frequent nortada (north wind) which makes swimming quite cold. The positive side of it is that

View lambda-delete-old-snaps-from-our-instance-only
// Browse through ALL snapshots
for (var i = 0; i < data.instanceSnapshots.length; i++) {
var backupFromInstance = data.instanceSnapshots[i].fromInstanceName;
backupDate = new Date(data.instanceSnapshots[i].createdAt);
backupDaysTillNow = Math.floor((now - backupDate) / oneDay);
// Select the ones from our instance alone
if (backupFromInstance == instanceName) {
// Select old snapshots
if (backupDaysTillNow > backupDaysMax) {
View gist:9b6a7c01d42f7d387eeae0e83abbff4d
- basicSSHUserPrivateKey:
scope: GLOBAL
id: myssh
username: myuser
passphrase: ""
description: "myssh"
privateKeySource:
directEntry:
privateKey: {{ my_ssh_key }}
View gist:0fae4d9a51f6833fc4040896458ad30a
stethoscope-app (master) $ yarn start
yarn run v1.12.3
$ nf start -p 12000
[OKAY] Loaded ENV .env File as KEY=VALUE Format
11:51:54 electron.1 | npm
11:51:54 electron.1 | WARN lifecycle The node binary used for scripts is /var/folders/y3/1_12qtq13xg1bw7tn8llmdtw0000gn/T/yarn--1541764312058-0.12696208982929513/node but npm is using /usr/local/Cellar/node/11.1.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
11:51:54 react.1 | npm WARN lifecycle The node binary used for scripts is /var/folders/y3/1_12qtq13xg1bw7tn8llmdtw0000gn/T/yarn--1541764312058-0.12696208982929513/node but npm is using /usr/local/Cellar/node/11.1.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
11:51:54 electron.1 | > Stethoscope@2.1.0 electron:start /Users/migueldavid/Downloads/stethoscope-app
11:51:54 electron.1 | > node src/start-react
11:51:54 react.1 | > Ste
View jenkins-casc
---
apiVersion: v1
kind: ConfigMap
metadata:
name: jenkins-configuration-as-code
data:
configuration-as-code.yaml: |
jenkins:
systemMessage: "Jenkins managed by Configuration as Code"
numExecutors: 0
View helmvalues
Master:
...
ContainerEnv:
- name: CASC_JENKINS_CONFIG
value: /var/jenkins_home/casc_configs/configuration-as-code.yaml
...
Persistence:
Enabled: true
ExistingClaim: "jenkins-home-pvc"
volumes:
View configmap
---
apiVersion: v1
kind: ConfigMap
metadata:
name: jenkins-configuration-as-code
data:
configuration-as-code.yaml: |
jenkins:
systemMessage: "Jenkins managed by Configuration as Code"
You can’t perform that action at this time.