Skip to content

Instantly share code, notes, and snippets.


Oscar Nevarez Leal oscarnevarezleal

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 /
Created Sep 20, 2019 for SpringBot v2.0
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": ""
"Subnet1Cidrblock": {
oscarnevarezleal / .project
Created Sep 6, 2019
.project file for a SpringBoot Application (STS)
View .project
<?xml version="1.0" encoding="UTF-8"?>
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(;">
<span class="text-2xl absolute pin-b pin-r font-light text-right align-text-bottom text-white">
Jonathan Reinink
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
* @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(),
View designer.html
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
:host {
position: absolute;
width: 100%;
height: 100%;
You can’t perform that action at this time.