Skip to content

Instantly share code, notes, and snippets.

View fedecarg's full-sized avatar
🥄
There is no spoon

Federico Cargnelutti fedecarg

🥄
There is no spoon
View GitHub Profile
@fedecarg
fedecarg / notifications_rules.md
Last active May 23, 2018 15:31
Notifications

Notifications

Collections

The purpose of the notification-feed-all collection is to allow the client to retrieve a list of manual and automatic collections, including:

  • notification-feed-info (manual)
  • notification-feed-new-shows (automatic)
    • Sort: Shows - has new episodes
  • notification-feed-expiring-shows (automatic)

Commerce Prototype - Project Overview

  • The goal of the project is to build an optimised version of the Commerce Journey to improve the user experience and maximise conversion. Why? Because in the last 4 months, less than 6% of all visits to the pass pages resulted in a sale.

  • We will create a fully working interactive prototype of the desired Commerce Journey using mocked data on a production environment with production ready code.

  • We will use extensive usability research, purchase funnel and commercial requirements to build the prototype.

  • The prototype will consist of a single responsive web application alongside multiple variants.

$ sudo npm install pm2 -g
/opt/bitnami/nodejs/bin/pm2 -> /opt/bitnami/nodejs/lib/node_modules/pm2/bin/pm2
/opt/bitnami/nodejs/bin/pm2-dev -> /opt/bitnami/nodejs/lib/node_modules/pm2/bin/pm2-dev
/opt/bitnami/nodejs/bin/pm2-runtime -> /opt/bitnami/nodejs/lib/node_modules/pm2/bin/pm2-runtime
/opt/bitnami/nodejs/bin/pm2-docker -> /opt/bitnami/nodejs/lib/node_modules/pm2/bin/pm2-docker
+ pm2@3.0.0
added 242 packages in 15.45s
bitnami@~/www/commerce-api$ pm2
@fedecarg
fedecarg / zshrc.sh
Last active October 18, 2019 20:32
# Path to your oh-my-zsh installation.
export ZSH="/Users/fed/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Set list of themes to pick from when loading at random
@fedecarg
fedecarg / gam.md
Last active November 26, 2019 10:39
Google Ad Manager

International

URL

/2019/06/25/health/gallery/festivals-environment-waste-eco-friendly-intl/index.html?googfc

Google Publisher Console

8663477 >  CNNi >  health > photos
Slot size: 300x600, 300x250Out of Page: FalseFormat: DivService: Ad Manager
code --install-extension christian-kohler.path-intellisense
code --install-extension davidbwaters.macos-modern-theme
code --install-extension dbaeumer.vscode-eslint
code --install-extension esbenp.prettier-vscode
code --install-extension formulahendry.code-runner
code --install-extension jpoissonnier.vscode-styled-components
code --install-extension kumar-harsh.graphql-for-vscode
code --install-extension mikaelkristiansson87.react-theme-vscode
code --install-extension msjsdiag.debugger-for-chrome
code --install-extension nemesarial.dust
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import throttle from 'lodash.throttle';
import { Container, Placeholder } from './scroll-container.styles';
const ScrollContainer = ({ children, mode, offsetTop }) => {
const [containerPosition, setContainerPosition] = useState('static');
const [placeholderHeight, setPlaceholderHeight] = useState(null);
const placeholderRef = React.useRef(null);
git checkout master \
&& git fetch -p origin \
&& git branch -r --merged master \
| egrep -v "^ *origin/(master|develop|HEAD -> origin/master)$" \
| grep origin | sed 's/origin\///' \
| xargs -n 1 git push --delete origin

Introduction

Goal of the SRE team

The main goal of the Site Reliability Engineering (SRE) team is to create scalable and highly reliable software systems that fit any particular situation, and feedback mechanisms to provide insight into options for optimising these systems.

The contribution of the SRE team results in strict improvements across the following areas: software development, availability, performance, efficiency, change management, monitoring, emergency response, and capacity planning.

Responsibilities of the SRE team

@fedecarg
fedecarg / lerna_changed.sh
Last active November 26, 2019 10:56
Lerna: validate only the packages that have changed since the last tagged release
function lerna_lint() {
npx lerna exec $(for package_dir in `npx lerna changed -p`; do echo -n " --scope $(basename ${package_dir})"; done) -- yarn lint
}
function lerna_test() {
npx lerna exec $(for package_dir in `npx lerna changed -p`; do echo -n " --scope $(basename ${package_dir})"; done) -- yarn test
}
function validate() {
lerna_lint