Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Oscar Nevarez Leal oscarnevarezleal

🎯
Focusing
Block or report user

Report or block oscarnevarezleal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oscarnevarezleal
oscarnevarezleal / SimpleErrorController.java
Created Sep 20, 2019
SimpleErrorController.java for SpringBot v2.0
View SimpleErrorController.java
package com.app.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.ServletWebRequest;
import org.springframework.web.context.request.WebRequest;
View db-stack.template
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {
"AWS::CloudFormation::Designer": {
"efe6e8a5-83b8-44fe-9a93-c3ea86b57fe7": {
"size": {
"width": 60,
"height": 60
},
"position": {
View autoscaling-instance.json
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "",
"Parameters": {
"VPCCidrBlock": {
"Description": "Select CIDR Block for VPC",
"Type": "String",
"Default": "10.0.0.0/16"
},
"Subnet1Cidrblock": {
@oscarnevarezleal
oscarnevarezleal / .project
Created Sep 6, 2019
.project file for a SpringBoot Application (STS)
View .project
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>gs-accessing-data-jpa-complete</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
View TailWind Chat POC
<div class="w-full max-w-xs bg-white">
<div class="max-w-sm rounded overflow-hidden shadow-lg">
<div class="bg-scroll bg-top h-64 relative" style="background-image:url(https://pbs.twimg.com/profile_images/885868801232961537/b1F6H4KC_400x400.jpg);">
<span class="text-2xl absolute pin-b pin-r font-light text-right align-text-bottom text-white">
Jonathan Reinink
</span>
View Install php 7.1 missing extensions
sudo apt install php7.1-common php7.1-fpm php7.1-cli php7.1-json php7.1-mysql php7.1-curl php7.1-intl php7.1-mcrypt php-pear php7.1-gd php7.1-zip php7.1-xml php7.1-mbstring
View get docker first d
DOCKERID=$(docker ps --format "{{.ID}} {{.Command}}" | awk '{print $1 }')
View prime.php
<?php
/**
* @param $number
* @return bool
*/
function is_prime($number)
{
if ($number < 2) {
return false;
View D8 Modify default homepage
$homeNode = Node::create(array(
'type' => 'node',
'title' => 'Home page',
'langcode' => 'en',
'uid' => '1',
'status' => 1,
'promoted' => 1,
'field_fields' => array(),
));
$homeNode->save();
View designer.html
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
You can’t perform that action at this time.