Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteMokokoQuest.md
Last active April 19, 2024 13:18
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 / .css
Created September 7, 2022 04:35
TÍTULO DO FORMULÁRIO EM MAIÚSCULO
.panel-title.card-title {
text-transform: uppercase !important;
}
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:17
PEGAR O VALOR DO PARÂMETRO NO MÉTODO onShow
<?php
# PASSANDO O PARÂMETRO "VALOR"
$parametros = array(
'telefone' => '(83) 98655-6461',
'mensagem' => 'Olá Mundo'
);
TApplication::loadPage('Formulario', 'onShow', $parametros);
@scriptdev
scriptdev / .html
Created September 13, 2022 00:10
info-box
<!--[main]-->
<div class="info-box">
<span class="info-box-icon bg-{$background}">
<i class="fa fa-{$icon}" aria-hidden="true"></i>
</span>
<div class="info-box-content">
<a href="{{URL}}" target="_blank"><span class="info-box-text">{$title}</span></a>
<span class="info-box-number">{$value}</span>
</div>
@hofmannsven
hofmannsven / README.md
Last active April 19, 2024 13:17
Git CLI Cheatsheet
@scriptdev
scriptdev / .php
Created September 13, 2022 02:19
ABRIR ARQUIVO NO DATAGRID
<?php
public function __construct($param = null)
{
parent::__construct();
$action_onArquivo = new TDataGridAction(array('PessoaList', 'onArquivo'));
$action_onArquivo->setUseButton(true);
$action_onArquivo->setButtonClass('btn btn-default btn-sm');
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:16
BMyComponent - GOOGLE MAPS E GEOLOCALIZAÇÃO
/*
Crie os arquivos PHP Component,PHP Service e um arquivo JavaScript para usar o Google Maps
* Geolocalização
Crie um PHP Service para a buscar as coordenadas no Google, este serviço tem uma
função a ser chamada de qualquer lugar necessário.
Código do PHP Service:
*/
@scriptdev
scriptdev / .css
Last active April 19, 2024 13:16
OCULTAR LINK DE PÁGINAS PÚBLICAS ( LOGIN )
/* TEMPLATE ADMINLTE 2 e ADMINBSB (MATERIAL DESIGN) */
div a{
display: none !important;
}
/* TEMPLATE ADMINLTE 3 */
#wrapper div a {
display: none !important;
}
@Kartones
Kartones / postgres-cheatsheet.md
Last active April 19, 2024 13:15
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@scriptdev
scriptdev / .php
Last active April 19, 2024 13:14
ENVIAR VALOR NO CAMPO DO FORMULÁRIO jQUERY
<?php
$total = 'R$ ' . number_format($preco_total, 2, ',', '.');
TScript::create("$('input[name=\"valor_total\"]').val('{$total}')");