Skip to content

Instantly share code, notes, and snippets.


Igor C. de Paula IgorDePaula

View GitHub Profile
IgorDePaula / index.js
Created Aug 20, 2022
create telegram notification by channels and supergroups
View index.js
const { Api,TelegramClient } = require("telegram");
const { StringSession, StoreSession} = require("telegram/sessions");
const input = require("input");
const { NewMessage } = require('telegram/events')
const util = require('util')
const apiId = 0;
const apiHash = "0";
const stringSession = new StoreSession("telegram_session");
(async () => {
View prompt.js
const { promisify } = require('util');
const readline = require("readline");
let rl = readline.createInterface({ input: process.stdin, output: process.stdout });
rl.question[promisify.custom] = (question) => {
return new Promise((resolve) => {
rl.question(question, resolve);
rl.questionSync = promisify(rl.question);
IgorDePaula / slide.html
Created Jan 26, 2022
call slide google
View slide.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title><!DOCTYPE html>
<title>Google Slides API Quickstart</title>
<meta charset="utf-8" />
IgorDePaula / docs.html
Created Jan 26, 2022
call to google docs
View docs.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
Google Docs API Quickstart
<!--Add buttons to initiate auth sequence and sign out-->
View ProductPage.js
import React from 'react'
import {Fragment, useState, useEffect} from 'react'
import {Dialog, Disclosure, Popover, RadioGroup, Tab, Transition} from '@headlessui/react'
import {MenuIcon, SearchIcon, ShieldCheckIcon, ShoppingBagIcon, XIcon} from '@heroicons/react/outline'
import {CheckIcon, ChevronDownIcon, PlusSmIcon, QuestionMarkCircleIcon, StarIcon} from '@heroicons/react/solid'
import MainLayout from "../src/Layouts/Main";
import {useTranslation} from "react-i18next";
import {API} from 'aws-amplify'
import {listColors, listSizes, listCategories} from "../src/graphql/queries";
View api-auth-nexths.js
import NextAuth from 'next-auth'
import Providers from 'next-auth/providers'
import {Auth} from 'aws-amplify'
export default NextAuth({
pages: {
error: "/login", // Changing the error redirect page to our custom login page
callbacks: {
async session(session, token) {
View BoletoReader.php
namespace App\Services\BankFileReaders\Itau\Retorno\Boleto;
class Boleto
private $file;
View AuthContext.js
import {createContext, useState} from "react";
export const AuthContext = createContext()
export const AuthProvider = ({children}) => {
const [user, setUser] = useState({})
return <AuthContext.Provider value={[user, setUser]}>
View git-banner
printf '%s\n' "He he he $USER! You haven't permission to logged in this folder"
exit 128
View githook.pos-commit
GREEN='\033[0;32m' # green, in true
NC='\033[0m' # No Color