Skip to content

Instantly share code, notes, and snippets.

View IgorDePaula's full-sized avatar
😆

Igor C. de Paula IgorDePaula

😆
View GitHub Profile
@IgorDePaula
IgorDePaula / index.html
Created February 9, 2024 01:49 — forked from aschmelyun/index.html
In AR.js display a video which transitions into an image on completion
<!DOCTYPE html>
<html>
<head>
<title>AR Demo</title>
<script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script>
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<meta name="apple-mobile-web-app-capable" content="yes">
<script>
// We're going to register a custom event listener through a-frame that will fire
@IgorDePaula
IgorDePaula / README.md
Created January 1, 2024 02:14 — forked from shankarshastri/README.md
Setup lambda + API Gateway using localstack
const {DisconnectReason, useMultiFileAuthState} = require("@whiskeysockets/baileys")
const util = require('util')
const makeWASocket = require('@whiskeysockets/baileys').default
async function connectZap(){
const {state, saveCreds} = await useMultiFileAuthState("auth_info_baileys")
const sock = makeWASocket({
printQRInTerminal : true,
auth:state
})
<?php
interface Pass {
public funcion execute();
}
class Pass1 implements Pass{
public funcion execute(){
// todo
}
<?php
$data = [
[
'id'=>2,
'name'=>'asd'
]
];
$strutrura = new stdClass;
{{$titulo}}
<script>
let variavel
function addField(field){
variavel += `<input name="field[${field}]" />`
}
</script>
@IgorDePaula
IgorDePaula / LaravelWhereLikeMacro.php
Created November 26, 2023 13:15 — forked from MrPunyapal/LaravelWhereLikeMacro.php
Laravel Custom 'whereLike' Macro for Dynamic 'LIKE' Searches including relationships
<?php
use Illuminate\Support\ServiceProvider;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
class AppServiceProvider extends ServiceProvider
{
// ...
@IgorDePaula
IgorDePaula / post-receive.sh
Created October 21, 2023 17:33 — forked from lfalmeida/post-receive.sh
Hook post receive com push options
#!/bin/sh
# ---- Config
ENV_NAME="Homologação"
TAG_SUFFIX="homolog"
PROJECT_NAME="Scania Journey Event"
PROJECT_PATH_HOST="/home/lfalmeida/Projects/GitHooks/prod/"
PROJECT_PATH_DOCKER="/src/projeto"
SLACK_WEBHOOK=""
ENABLE_SLACK_POST=0
@IgorDePaula
IgorDePaula / index.html
Created September 25, 2023 15:00
js troca pai pelo filho
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div class="card">
card 1 &nbsp;
openssl genrsa 2048 > private.pem
openssl req -x509 -new -key private.pem -out public.pem
openssl pkcs12 -export -in public.pem -inkey private.pem -out mycert.pfx