Skip to content

Instantly share code, notes, and snippets.

@sr2ds
sr2ds / febraban_banks.json
Created July 23, 2018 19:17 — forked from talesluna-zz/febraban_banks.json
Lista de Bancos Associados FEBRABAN (json)
[
{
"_id": "59ada9772bc5be4a37aaa435",
"name": "Banco ABC Brasil S.A.",
"febraban": true,
"clearing": true,
"code": "246",
"alias": null
},
{
@bashbunni
bashbunni / .zshrc
Created October 27, 2022 21:41
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@rdenadai
rdenadai / python_expert_path.md
Last active April 20, 2024 00:43
My take into build a basic structure to dictate how to become a Python Expert ... from basic to specialist ?

Python Expert Path

Beginner

  • Basic syntax
    • Variables types:
      • bool, int, float, str, byte, complex, None
    • Conditionals:
      • if, else, elif, for, while, match
  • Functions: simple use, and known what first class citizen is (concept)
@revermax
revermax / .php
Created December 27, 2022 16:09 — forked from scriptdev/.php
PDFDesignNFEView - GERAR RELATÓRIO FPDF
<?php
# FONTE: https://framework.adianti.me/tutor/index.php?class=PDFDesignNFEView&method=onShow
class PDFDesignNFEView extends TPage
{
private $form;
private $pdf;
private $total_produtos;
private $total_icms;
@scyto
scyto / proxmox.md
Last active April 20, 2024 00:37
proxmox cluster proof of concept

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@aamiaa
aamiaa / CompleteMokokoQuest.md
Last active April 20, 2024 00:32
Complete Discord Mokoko Quest

Complete Discord Mokoko Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@scriptdev
scriptdev / .php
Last active April 20, 2024 00:31
ENVIAR DADOS PARA O CAMPO DO FORMULÁRIO
<?php
$objeto = new stdClass();
$objeto->nome = 'FABRICIO';
$objeto->celular = '(83) 98655-6461';
$objeto->idade = '34';
TForm::sendData(self::$formName, $objeto);
@scriptdev
scriptdev / .php
Last active April 20, 2024 00:31
ALTERAR O REGISTRO
<?php
$id = 1;
$cliente = Cliente::find($id);
if($cliente)
{
@scriptdev
scriptdev / .php
Last active April 20, 2024 00:29
CONTAR O NÚMERO DE REGISTROS DE UMA TABELA
<?php
# COM FILTRO
$qtd_produtos = Produto::where('grupo', '=', 'BEBIDAS')->count();
# SEM FILTRO, TODOS OS REGISTROS
$qtd_produtos = Produto::count();