Skip to content

Instantly share code, notes, and snippets.

View pmcarlos's full-sized avatar

Carlos Peña pmcarlos

View GitHub Profile
@pmcarlos
pmcarlos / gist:960093b480441b1d0e8c97ade497105c
Created October 21, 2019 18:16 — forked from sdeering/gist:8437725
Some .bashrc git alias commands
#-------------------------------------------------------------
# Git Alias Commands
#-------------------------------------------------------------
alias g="git status"
alias ga="git add"
alias gaa="git add ."
alias gau="git add -u"
alias gc="git commit -m"
alias gca="git commit -am"
alias gb="git branch"
import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:guardhouse_app/models/app_state.dart';
import 'package:guardhouse_app/redux/actions/navigation_actions.dart';
class AuthDialog extends StatelessWidget {
final String title, description;
final bool granted;
final Function callback;
@pmcarlos
pmcarlos / main.dart
Created March 18, 2019 18:50
Flutter implementation flutter_clean_calendar
import 'package:flutter/material.dart';
import 'package:flutter_clean_calendar/flutter_clean_calendar.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
@pmcarlos
pmcarlos / RunAProxyOnAmazonEC2VPC.md
Created January 22, 2018 01:05 — forked from webinista/RunAProxyOnAmazonEC2VPC.md
Create a proxy server on an Amazon EC2 (VPC) instance

This will create a proxy server in whatever your availability zone your VPC is in. For me, that's us-east-1b. For you, that may be something different. Steps 10+ should more or less work regardless of your provider since those steps cover the setup and configuration of TinyProxy.

  1. Click the Launch Instance button.
  2. Choose Ubuntu Server 14.04 LTS (HVM), SSD Volume Type. This isn't strictly necessary. If you choose another OS, check its documentation for how to install new packages.
  3. On the Choose an Instance Type screen, select t2.micro. It's Free Tier eligible.
  4. Click the Next: ... buttons until you reach the Configure Security Group screen.
    • You may wish to reduce the amount of storage on the Add Storage screen. This is optional.
    • You may wish to add a tag on the Tag Instance screen. This is also optional.
  5. On the Configure Security Group screen:
  • Select Create a new security group.