This file contains 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
find . -type f -size +10000k -exec ls -lh {} \; | awk '{ print $9 $7 $6 $4 ": " $5 }' |
This file contains 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
/* | |
Hoje não deixaremos mais ninguém no vácuo no whatsapp | |
Para utilizar: | |
- Abra o web.whatsapp.com; | |
- Abra o console e cole o código que está no gist; | |
- Aguarde e verá uma mensagem sendo enviada a cada momento que alguém te enviar alguma mensagem. | |
Confira também como ser chato no whatsapp: https://gist.github.com/mathloureiro/4c74d60f051ed59650cc76d1da0d32da |
This file contains 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
// na view | |
{!! Form::open(['method' => 'post', 'action' => 'GermoManager@storeAcesso', $germo->id]) !!} | |
fields... | |
{!! Form::close() !!} | |
// la em routes.php | |
Route::get('/cadastrar-acesso-germoplasma/{germo_id}', 'GermoManager@createAcesso'); | |
Route::post('/cadastrar-acesso-germoplasma/{germo_id}/salvar', 'GermoManager@storeAcesso'); | |
This file contains 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
// | |
// main.cpp | |
// dijkstra | |
// | |
// Created by Mahmut Bulut on 11/11/13. | |
// Copyright (c) 2013 Mahmut Bulut. All rights reserved. | |
// | |
#include <unordered_map> | |
#include <vector> |
This file contains 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
$dir = "path/to/targetFiles"; | |
$dirNew = "path/to/destination/files"; | |
// Open a known directory, and proceed to read its contents | |
if (is_dir($dir)) { | |
if ($dh = opendir($dir)) { | |
while (($file = readdir($dh)) !== false) { | |
echo '<br>File: '.$file; | |
//exclude unwanted | |
if ($file==".") continue; | |
if ($file=="..")continue; |
This file contains 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
$zip = new ZipArchive(); | |
$file = "myZipFile.zip"; | |
$dir = "./dst_folder"; | |
$zip->open($file); | |
if ( $zip->extractTo($dir) ) { | |
echo "Unzip successfuly"; | |
} | |
else { |