Check this out on Dev.to
- How to handle SSH keys with ec2-github actions https://zellwk.com/blog/github-actions-deploy/
- SSH_PRIVATE_KEY
- HOST_NAME / IP_ADDRESS
Check this out on Dev.to
| #!/usr/bin/env python | |
| import base64 | |
| from Crypto import Random | |
| import boto3 | |
| from Crypto.Cipher import AES | |
| PAD = lambda s: s + (32 - len(s) % 32) * ' ' | |
| /** | |
| * This is a demo of KMS. | |
| * | |
| * This demo includes the following two features: | |
| * 1. encrypt and decrypt using CMK (Customer Master Key) | |
| * 2. encrypt and decrypt using data key (Envelope encryption using AWS KMS) | |
| * | |
| */ | |
| 'use strict'; |
An exploration of the different render methods available in react-enzyme.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Basic interactive video with HTML5 and vanilla JavaScript</title> | |
| </head> | |
| <body> | |
| <!-- Read my blog post on interactive videos: https://mostlydevstuff.com/2018/basic-interactive-video-with-html5-and-javascript/ --> | |
| <style> |
| /* ******************************************************************************************* | |
| * THE UPDATED VERSION IS AVAILABLE AT | |
| * https://github.com/LeCoupa/awesome-cheatsheets | |
| * ******************************************************************************************* */ | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |
| import 'dart:async'; | |
| import 'package:flutter/material.dart'; | |
| import 'dart:isolate'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( |
| // Enable component-scanning and auto-configuration with @SpringBootApplication Annotation | |
| // It combines @Configuration + @ComponentScan + @EnableAutoConfiguration | |
| @SpringBootApplication | |
| public class FooApplication { | |
| public static void main(String[] args) { | |
| // Bootstrap the application | |
| SpringApplication.run(FooApplication.class, args); | |
| } | |
| } |
| /* | |
| * Handling Errors using async/await | |
| * Has to be used inside an async function | |
| */ | |
| try { | |
| const response = await axios.get('https://your.site/api/v1/bla/ble/bli'); | |
| // Success 🎉 | |
| console.log(response); | |
| } catch (error) { | |
| // Error 😨 |