This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| // web/console.dart | |
| @JS('console') | |
| library console; | |
| import 'package:js/js.dart'; | |
| external void log(dynamic str); |
| function sendMessage(message){ | |
| const mainEl = document.querySelector('#main') | |
| const textareaEl = mainEl.querySelector('div[contenteditable="true"]') | |
| if(!textareaEl) { | |
| throw new Error('There is no opened conversation') | |
| } | |
| textareaEl.focus() | |
| document.execCommand('insertText', false, message) |
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the | |
| software to the public domain. We make this dedication for the benefit |
| import SwiftUI | |
| import Kingfisher | |
| import UIKit | |
| public struct NetworkImage: SwiftUI.View { | |
| // swiftlint:disable:next redundant_optional_initialization | |
| @State private var image: UIImage? = nil | |
| public let imageURL: URL? |
| #!/usr/bin/env bash | |
| set -xe # Log everything, abort if anything fails | |
| # Simple script to unzip Android Archive libraries (AAR files) | |
| usage() { | |
| echo "Usage: $0 <aar file>" | |
| exit 1 | |
| } |
| #!/usr/bin/env bash | |
| START_TIME=$SECONDS | |
| set -e | |
| echo "-----START GENERATING HLS STREAM-----" | |
| # Usage create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME] | |
| [[ ! "${1}" ]] && echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" && exit 1 | |
| # comment/add lines here to control which renditions would be created | |
| renditions=( |
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps: