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( |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.time.LocalTime; | |
import java.time.ZoneId; | |
import java.time.ZoneOffset; | |
import java.time.ZonedDateTime; | |
import java.util.Calendar; | |
import java.util.Date; |
public static Date localToGMT() { | |
Date date = new Date(); | |
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); | |
sdf.setTimeZone(TimeZone.getTimeZone("UTC")); | |
Date gmt = new Date(sdf.format(date)); | |
return gmt; | |
} | |
public static Date gmttoLocalDate(Date date) { |
import java.time.LocalTime; | |
import java.time.ZoneId; | |
import java.time.ZoneOffset; | |
import java.time.ZonedDateTime; | |
public class HelloWorld{ | |
public static void main(String []args){ | |
System.out.println("Hello World"); | |
LocalTime time = LocalTime.parse("10:00:00"); // 10 AM |