Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nate Fonseka nfons

🏠
Working from home
View GitHub Profile
View optimize.js
var syncDep;
function getLottery() {
return new Promise((resolve, reject) =>{
if (syncDep === undefined) { //check of we already have this data...if not THEN go get
setTimeout(function() {
syncDep = [1,22,34,56,5];
resolve(syncDep);
}, 2000);
} else {
View OuterLambda.js
var out = Date.now();
exports.handler = (event, context, callback) => {
// TODO implement
var intime = Date.now();
console.log(out);
console.log(intime);
callback(null, 'Hello from Lambda');
};
View ingress-rc.yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx-ingress-controller
labels:
k8s-app: nginx-ingress-lb
spec:
replicas: 1
selector:
k8s-app: nginx-ingress-lb
View php.ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
You can’t perform that action at this time.