Skip to content

Instantly share code, notes, and snippets.

View VesperDev's full-sized avatar
🎯
Focusing

Edgar Mendoza VesperDev

🎯
Focusing
View GitHub Profile
@t2wu
t2wu / gist:ce286e0883fe10cd54b664be17bf63fe
Created January 6, 2022 12:52
Create secret for K8S to access AWS ECR
kubectl create secret docker-registry regcred \
--docker-server=<aws-account-id>.dkr.ecr.<aws-region>.amazonaws.com \
--docker-username=AWS \
--docker-password=$(aws ecr get-login-password) \
-o yaml
# This creates the regcred secret and at the same time output YAML to standard output which you
# can store elsewhere. In my case I have two machines, one having aws and the other having kubectl.
# So I run "aws ecr get-login-password" on one machine and paste the result to replace
# $(aws ecr get-login-password).
@asimmon
asimmon / ionic-login-form.css
Created November 20, 2015 14:21
Centered login form with Ionic Framework CSS
#login {
background: #1c2627 url("../img/login_bg.jpg") no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
.scroll-content {
display: table !important;
width: 100% !important;
@asimmon
asimmon / ionic-login-form.html
Created November 20, 2015 14:20
Centered login form with Ionic Framework HTML
<ion-view id="login" hide-nav-bar="true">
<ion-content padding="true" scroll="false">
<form>
<div class="row responsive-md">
<div class="col col-50 col-offset-25">
<div class="header padding text-center">
<img src="img/logo.png" alt="Your logo here"/>
</div>
@brianberlin
brianberlin / AWS Cognito + Facebook Login JavaScript Example
Created July 29, 2015 17:14
AWS Cognito + Facebook Login JavaScript Example
<!DOCTYPE html>
<html>
<head>
<title>AWS Cognito + Facebook Login JavaScript Example</title>
<meta charset="UTF-8">
</head>
<body>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1.41.min.js"></script>
<script>
@wpsmith
wpsmith / get-cookie.js
Created July 5, 2015 21:50
JavaScript: Get Cookie By Name