Skip to content

Instantly share code, notes, and snippets.

View webmasterdevlin's full-sized avatar
👨‍💻
coding 24/7

Devlin Duldulao webmasterdevlin

👨‍💻
coding 24/7
View GitHub Profile
@webmasterdevlin
webmasterdevlin / Startup.cs
Created June 13, 2020 11:35
ASP.NET Core 3.1
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseHttpsRedirection();
app.UseRouting();
@webmasterdevlin
webmasterdevlin / main.tf
Created June 13, 2020 11:04
Terraform AWS
provider "aws" {
region = "us-east-2"
}
resource "aws_launch_configuration" "test" {
image_id = "ami-0c55b159cbfafe1f0"
instance_type = "t3.micro"
security_groups = [aws_security_group.test.id]
user_data = <<-EOF
@webmasterdevlin
webmasterdevlin / main.tf
Created June 13, 2020 11:03
Terraform GCP
provider "google" {
credentials = file("service-account.json") # the file that holds your credentials
project = var.project_name
region = var.region
zone = var.region_zone
}
resource "random_id" "instance_id" {
byte_length = 4
}
@webmasterdevlin
webmasterdevlin / main.tf
Created June 13, 2020 11:02
Terraform Azure
terraform {
required_version = ">= 0.12"
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "dev" {
name = "localterraformdemorg"
@webmasterdevlin
webmasterdevlin / main.tf
Created June 13, 2020 11:01
Terraform Auth0
provider "auth0" {}
resource "auth0_email" "my_email_provider" {
name = "ses"
enabled = true
default_from_address = "[email protected]"
credentials {
access_key_id = "AKIAXXXXXXXXXXXXXXXX"
secret_access_key = "7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
@webmasterdevlin
webmasterdevlin / docker-compose.yml
Created March 17, 2020 17:22
MS SQL Server Docker Compose
version: "3.7"
services:
mssql:
image: "mcr.microsoft.com/mssql/server"
container_name: MS_SQL_Server
restart: always
environment:
SA_PASSWORD: "Pass123!"
ACCEPT_EULA: "Y"
import 'react-native-gesture-handler';
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
} from 'react-native';
import * as React from 'react';
import { NavigationNativeContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import LoginScreen from '../auth/LoginScreen';
const Stack = createStackNavigator();
const RootNavigation = () => {
return (
<NavigationNativeContainer>
import React from 'react';
import { View, Text } from 'react-native'
import { Button } from 'react-native-paper';
const LoginScreen = () => {
return (<View>
<Text>Hello LoginScreen</Text>
<Text>Hello LoginScreen</Text>
<Text>Hello LoginScreen</Text>
<Button icon="camera" mode="contained" onPress={() => console.log('Pressed')}>
<script>
import { onMount } from "svelte";
import { heroStore } from "./hero.store.js";
import { navigate } from "svelte-routing";
import Loader from "../shared/Loader.svelte";
let heroForm = {
firstName: "",
lastName: "",
house: "",
knownAs: ""