Skip to content

Instantly share code, notes, and snippets.

View robertofd1995's full-sized avatar

Roberto Fernandez Diaz robertofd1995

  • Asturias , Spain
View GitHub Profile
@robertofd1995
robertofd1995 / copy_and_paste.py
Created September 28, 2020 11:26
Recover Connection with database from old screen
import django.db; django.db.close_old_connections()
@robertofd1995
robertofd1995 / README.md
Last active November 5, 2019 11:43
Copy S3 bucket objects across AWS accounts with confidence using aws cli
@robertofd1995
robertofd1995 / gist:3bbb3122110b1757ec98f3e04a1c209d
Created May 7, 2018 11:04
Downloading an Entire Web Site with wget
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains website.org \
--no-parent \
www.website.org/tutorials/html/
@robertofd1995
robertofd1995 / template_requirement.md
Created January 31, 2018 14:27
Template for manage requirements

Requirements

#Theme

Feature related to the theme

Type of requirement (Functional,Non Functional ,etc...)

ID Name

@robertofd1995
robertofd1995 / Service_Worker.md
Last active August 6, 2017 11:49
Service Worker and How to add service worker to your app

Service Worker

We will see how to set up a service working on angular, to allow our web app to have offline capabilities.

A Service worker is a special script which runs in the background in the browser and manages network requests to a given origin. It's originally installed by an app and stays resident on the user's machine/device. It's activated by the browser when a page from its origin is loaded and has the option to respond to HTTP requests during the page loading

Add Service Worker to our app Angular 2+

First in case you are consulting mobile.angular.io the flag --mobile doesn't work anymore.