Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Gambardella heygambo

  • Fanmio
  • Berlin
View GitHub Profile
View AWS_MAGENTO_README.md

Cloudformation settings

The Cloudformation ran with those settings:

https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?templateUrl=https%3A%2F%2Faws-quickstart.s3.amazonaws.com%2Fquickstart-magento%2Ftemplates%2Fmagento-master.template&stackName=Magento&param_AccessCIDR=0.0.0.0%2F0&param_AdminEmail=christian%40fanmio.com&param_AdminFirstName=admin&param_AdminLastName=user&param_AdminUserName=admin&param_AvailabilityZones%5B%5D=us-east-1a&param_AvailabilityZones%5B%5D=us-east-1b&param_BastionAMIOS=Ubuntu-Server-18.04-LTS-HVM&param_BastionInstanceType=t2.small&param_DBAutoMinorVersionUpgrade=true&param_DBBackupRetentionPeriod=7&param_DBEngineType=Amazon%20Aurora&param_DBInstanceClass=db.r4.large&param_DBMasterUsername=admin&param_DBMultiAZ=true&param_DBName=magento&param_DNSName=&param_ElastiCacheAutomaticFailover=true&param_ElastiCacheNodeType=cache.m4.large&param_ElastiCacheNodes=2&param_KeyPairName=2020-gambo&param_MagentoCurrency=USD&param_MagentoLanguage=en_US&pa
@heygambo
heygambo / lwp-cloudflare-dyndns.sh
Created Mar 17, 2020
Cloudflare as Dynamic DNS (revised)
View lwp-cloudflare-dyndns.sh
#!/bin/bash
# Cloudflare as Dynamic DNS
# From: https://letswp.io/cloudflare-as-dynamic-dns-raspberry-pi/
# Based on: https://gist.github.com/benkulbertis/fff10759c2391b6618dd/
# Original non-RPi article: https://phillymesh.net/2016/02/23/setting-up-dynamic-dns-for-your-registered-domain-through-cloudflare/
# Fixed and documented version by Christian Gambardella (https://gambo.io)
# 1. Create a cloudflare account
# 2. Create a zone and a record with any ip address.
# It will be updated by the script.
@heygambo
heygambo / firebase-mock-list-collections-specs.log
Created Jan 15, 2020
firebase-mock-list-collections-specs.log
View firebase-mock-list-collections-specs.log
(feature/add-list-collections) firebase-mock ツ npm run test
> firebase-mock@2.3.0 test /Users/gambo/code/github/firebase-mock
> gulp lint && gulp test
[11:00:45] Using gulpfile ~/code/github/firebase-mock/gulpfile.js
[11:00:45] Starting 'lint'...
[11:00:46] Finished 'lint' after 1.15 s
[11:00:49] Using gulpfile ~/code/github/firebase-mock/gulpfile.js
[11:00:49] Starting 'test'...
@heygambo
heygambo / cloudSettings
Last active Jul 1, 2020
VS Code Settings
View cloudSettings
{"lastUpload":"2020-07-01T09:50:01.168Z","extensionVersion":"v3.4.3"}
@heygambo
heygambo / onetime.ts
Last active Feb 9, 2019
Assure the firebase function is only being processed once if invoked multiple times.
View onetime.ts
import { CollectionReference } from "@google-cloud/firestore"
const wait = (seconds: number): Promise<void> => new Promise(resolve => setTimeout(resolve, seconds * 1000))
export interface CreateThisOneTimeOptions {
collectionRef: CollectionReference,
}
export interface ThisOneTimeOptions {
docKey: string,
@heygambo
heygambo / dev.env.js
Created Oct 27, 2016
Environment variables for vue webpack frontends
View dev.env.js
// src/config/dev.env.js
export default {
GOOGLE_MAPS_API_KEY: 'THE KEY'
}
@heygambo
heygambo / logger.js
Created Oct 12, 2016
Vuex 1.0.0 logger.js
View logger.js
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
var asyncGenerator = function () {
function AwaitValue(value) {
View vue-factory.js
var VueFactory = {
components: {},
registerComponent: function(name, component) {
this.components[name] = component;
},
getComponent: function(name) {
return this.components[name];
},
vue: function(name, options) {
if (typeof options !== "object") {
@heygambo
heygambo / Function.bind.polyfill.js
Created Oct 26, 2015 — forked from edeustace/Function.bind.polyfill.js
A polyfill for function.bind for IE8
View Function.bind.polyfill.js
if (!Function.prototype.bind) {
Function.prototype.bind = function (oThis) {
if (typeof this !== "function") {
// closest thing possible to the ECMAScript 5 internal IsCallable function
throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
}
var aArgs = Array.prototype.slice.call(arguments, 1),
fToBind = this,
fNOP = function () {},
View frontendDevlopmentBookmarks.md
You can’t perform that action at this time.