Skip to content

Instantly share code, notes, and snippets.

Daniel Fernandes danielpsf

Block or report user

Report or block danielpsf

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
danielpsf /
Last active Aug 31, 2019
Simple Python challenge

Coding challenge

The main goal of the coding challenge is to exercise Python development skills while also improving the knowledge of the broad variety of technologies from Docker to AWS as well as features from Python itself.


  • Python 3.7
  • Pip
  • An IDE (PyCharm, VSCode, VIM, etc)
danielpsf /
Created Jul 19, 2019
Cloud Academy K8s course notes

Kubernetes introduction

After this course I should be able to know how to:

  • Deploy a single or a multiple container application to K8s
  • Configure Service Discovery
  • Expose applications to the public internet (well, if applicable)
  • Deploy probes to monitor containers
  • Bootstrap applications with init containers
  • Manage Secrets
danielpsf /
Last active Jun 10, 2019
ElasticSearch Definitive Guide's notes

Elastic Search’s definitive guide notes

Chapter 1. You know, for search

  • RESTful web service on top of Apache Lucene
  • Has many clients that either uses TrasportClientor HTTP Clients
    • TransportClientis scheduled to be removed on ElasticSearch 8.0
  • Has two kind of query mechanisms
danielpsf /
Last active Apr 30, 2019
A devops small set of questions to be used on interviews

DevOps questions to be asked

Please describe how would you do the deploy of the items below in terms of technologies and deployment (CICD):

  • Deploy a high available Application using EC2
  • Deploy a SPA
danielpsf /
Last active Apr 30, 2019
A devops small challenge to be used on interviews

AWS Security monitoring and alert

After a technical interview where the candidate will have the oportunity to go over these topics this challenge can be used to assess the automation and coding skills as well as the AWS knowledge of a candidate.


  • Although documentation is not mandatory for this challenge it still is quite important
  • Any automation tool can be used, so feel free to use whatever you are most comfortable with, bash script included
  • Although our main development languages are Python and Go, feel free to pick whatever you are most comfortable with
danielpsf /
Created Aug 24, 2018
Simple way of using multiple parameters in Python using argparse
import argparse
parser = argparse.ArgumentParser()
'--potatoes', '-p',
help='Type of potatoes that you like most'
danielpsf / SassMeister-input.scss
Created Aug 5, 2015
Generated by
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
$default-font-color: red;
$default-width: 10px;
$title-font-color: blue;
//Mixins (functions)
danielpsf / specHelper.js
Created Mar 6, 2014
This is my jasmine spec helper
View specHelper.js
'use strict';
beforeEach(function() {
toEqualData: function(expected) {
this.message = function () {
var notText = this.isNot ? " not" : "";
return "Expected " + JSON.stringify(this.actual) + notText + " to be equals that " + JSON.stringify(expected);
return JSON.stringify(this.actual) === JSON.stringify(expected);
danielpsf / app.js
Last active Aug 29, 2015
Just to understand more about binding an event watch to some element into a directive. you can see here:
View app.js
angular.module('myApp', [])
.controller('myCtrl', ['$scope', function($scope) {
$scope.MyProccessedData = "";
.directive('myDirective', [function(){
return function(scope, element, attrs) {
element.bind('keydown', function(event) {
scope.MyProccessedData = scope.$eval(attrs.ngModel);
You can’t perform that action at this time.