Skip to content

Instantly share code, notes, and snippets.

View cgzdevelopments's full-sized avatar
💭
I may be slow to respond.

Cesar Garcia Zurita (cgzdevelopments) cgzdevelopments

💭
I may be slow to respond.
View GitHub Profile
@cgzdevelopments
cgzdevelopments / 2019-https-localhost.md
Created March 3, 2022 19:13 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

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).

@cgzdevelopments
cgzdevelopments / http_upload_with_progress.dart
Created July 13, 2023 19:15 — forked from orestesgaolin/http_upload_with_progress.dart
How to upload file to S3 with http library and progress updates (Flutter/Dart)
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:meta/meta.dart';
import 'package:mime/mime.dart';
import 'package:path/path.dart';
import 'package:http/http.dart' as http;
abstract class ApiClient {
@cgzdevelopments
cgzdevelopments / index.html
Last active April 15, 2024 23:30 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>En Mantenimiento | Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>