This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/expect | |
| spawn ssh-add | |
| set timeout -1 | |
| expect "passphrase" | |
| send -- "YOU_KEY_PASS#\r" | |
| expect eof |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Tests\Feature; | |
| use App\User; | |
| use Tests\TestCase; | |
| /** | |
| * AuthTest | |
| * @author David Silva <https://github.com/sr2ds> | |
| * -------------------------------------------------------------------------- | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo '#AbreOsCaminhos' | |
| #Definindo Prompt | |
| #PS1="[\u@:\W]$ " | |
| #export CLICOLOR=1 | |
| # Definindo Alias | |
| alias ll="ls -ltra" | |
| alias tailf="tail -f" | |
| alias updatedb='sudo /usr/libexec/locate.updatedb' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "_id": "59ada9772bc5be4a37aaa435", | |
| "name": "Banco ABC Brasil S.A.", | |
| "febraban": true, | |
| "clearing": true, | |
| "code": "246", | |
| "alias": null | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Este componente monta o DataTable básico em qualquer página | |
| * Por padrão ele busca um elemento table na página e define o básico, mas é possível passar parametros. | |
| * | |
| * @usage @include('admin._components._datatables') | |
| * | |
| * tableName: seletor da tabela | |
| * noTools: se for true nao retorna os botoes de coluna e export | |
| * noSearch: se for true nao habilita o search |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Array com dicionario de Dados para tratativa em gerador automático de DI Siscomex | |
| * Lista completa em texto: http://urlshortener.at/lt179 | |
| * | |
| */ | |
| return | |
| [ | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Anexo Único | |
| (Redação dada pela Instrução Normativa RFB nº 1.268, de 10 de maio de 2012) | |
| 1. Capítulo 12 SEMENTES E FRUTOS OLEAGINOSOS; GRÃOS, SEMENTES E FRUTOS DIVERSOS; PLANTAS INDUSTRIAIS OU MEDICINAIS; PALHAS E FORRAGENS | |
| 1.1. Posição 1201 Soja, mesmo triturada. | |
| Atributos e Especificações de Nível 'P' | |
| 1.1.1. Atributo AA COLORAÇÃO | |
| Especificações: | |
| 0001 Amarela |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function search($input = []) { | |
| $query = $this->model; | |
| if (isset($input['tenant_id'])) | |
| $query = $query->ofTenantId($input['tenant_id']); | |
| if (isset($input['keywords']) && ($k = $input['keywords'])) { | |
| $query = $query | |
| ->where(function ($subquery) use ($k) { | |
| return $subquery | |
| ->where('last_name', 'like', "%{$k}%") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| // Laravel Snippets | |
| "dd": { | |
| "prefix": "dd", | |
| "body": "\ndump(${1:Title!});\ndie();\n", | |
| "description": "Simple DD for Laravel 4.2", | |
| "scope": "php" | |
| }, | |
| // PHP Snippets | |
| "public function - PHP": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <?php | |
| /* | |
| * Este helper entra em todos os arquivos txt do diretorio corrente, abre eles e pega todas as linhas. | |
| * Montando uma estrutura de inserção para uma seeder no Laravel. | |
| * Para ele funcionar bastar inserí-lo dentro do diretorio que contem os .txt e executá-lo no browser. | |
| * A saída da execução (no browser) pode ser copiada direto para o arquivo seeder. | |
| * Nota: O título do arquivo cria uma entrada no banco também, considerando que o seu conteúdo será seus filhos no banco. | |
| * Ex: Administradores.txt -> Criará um comando DB:: com o dado Administradores e criará comandos para cada linha que conter dentro do arquivo, considerando o ID da criação do Pai. |