Skip to content

Instantly share code, notes, and snippets.

Avatar
😆

Igor C. de Paula IgorDePaula

😆
View GitHub Profile
View key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCnyeIEn0XKcQ9NCeOfRvk/BjYbUAshbzKjpbIwQy4dBQuN6VusU+FY6xl4D3NGBvfhDC5IwuRD0xmNJZgouU/vCHmxaoRO81ALyTwVsEcYKvww3F5LWhbC/+NMd22tHzPCEHRwV70EcE2iShlefNRtjnBQFzonHMTtbmB0nJQgezaCDSM+OymyRMnqtmZlNRb/foopJFNHMmzHYrqpvFcoxz2fqPhUPpIfY0WixasOgAwX9Q5wd/uskGZ0nX2lmXdcvRqbrGUzRkqngFZxLTv96ndfuv1z56EHNm70XMSroDazVQaahJgcl8Urr+7Ffw0lMbooS+3bw7Axyhpd0Zmb igor@developer
View git-banner
#!/bin/sh
printf '%s\n' "He he he $USER! You haven't permission to logged in this folder"
exit 128
EOF
View githook.pos-commit
#!/bin/bash
TARGET="/var/www/"
GIT_DIR="/home/{{mysqlUser}}/laravel.git"
BRANCH="master"
GREEN='\033[0;32m' # green, in true
NC='\033[0m' # No Color
BLUE='\033[0;34m'
@IgorDePaula
IgorDePaula / main.go
Created Feb 22, 2021 — forked from srbry/main.go
Golang lambda authorizer
View main.go
package main
import (
"errors"
"strings"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
)
@IgorDePaula
IgorDePaula / colors.go
Created Jan 28, 2021 — forked from ik5/colors.go
Simple golang expirement with ANSI colors
View colors.go
package main
// http://play.golang.org/p/jZ5pa944O1 <- will not display the colors
import "fmt"
const (
InfoColor = "\033[1;34m%s\033[0m"
NoticeColor = "\033[1;36m%s\033[0m"
WarningColor = "\033[1;33m%s\033[0m"
ErrorColor = "\033[1;31m%s\033[0m"
DebugColor = "\033[0;36m%s\033[0m"
View AWSLambdaGenerateKeyPair.go
// Sample code used to generate a cryptographic key pair via an AWS Lambda function.
// (C) 2019 Nabla Zero Labs
// MIT License
package main
import (
"crypto/rand"
"crypto/rsa"
"crypto/x509"
@IgorDePaula
IgorDePaula / build.yml
Last active Jan 27, 2021
build config to github action and aws code build - images docker
View build.yml
# build docker image on github actions and push to AWS ECR
name: Build
on: [push]
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
@IgorDePaula
IgorDePaula / Random-string
Created Jan 20, 2021 — forked from 6174/Random-string
Generate a random string in JavaScript In a short and fast way!
View Random-string
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
View Click.vue
<template>
<div class="btn-classic">
oid
</div>
</template>
<script>
export default {
name: "Click"
}
@IgorDePaula
IgorDePaula / Rabbitmq.php
Last active Jan 12, 2021
Rabbitmq service
View Rabbitmq.php
<?php
namespace App\Services;
use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Message\AMQPMessage;
class Rabbitmq