SnippetVamp

Because spending time searching snippets sucks.



PHP 2 Windows 2 batch 2 commandes 2 disque 1 fichiers 1 images 1 info 1 linux 2 listing 1 montage 1 optimisation 1 renommer 1

.

Derniers snippets

Welcome to my SnippetVamp space !

Aspirer les PDF d'un site

wget -r -H -nd --random-wait --load-cookies --follow-ftp  --no-check-certificat -l 4 -t 2 --user-agent="Mozilla/4.0 (Windows; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)" -A "*.pdf" siteaexplorer.com

commandes linux

http://aegirs.fr/explorer-un-site-et-recuperer-tous-les-fichiers-pdf-de-facon-automatique.html

<iframe width="100%" height="200" src="http://geekz0ne.fr/snippetvamp/index.php?embed=581791559af3b" type="text/html"></iframe>

Texte seul - Permalink - Snippet public posté le 31/10/2016

Windows - Optimisation images

\\ Download both jpegtran.exe and pngout.exe. You can use the version in the zip file on this post or replace them with newer #versions
#Put the files in C:/Program Files/Image Optimization.
#Use Notepad to create a simple script file called optimize.bat, and place it inside of C:/Program Files/Image Optimization.
#Copy and paste the following into optimize.bat:

@echo none
cd %1
forfiles /M *.jpg /s /c "cmd /c @\"C:\Program Files\Image Optimization\jpegtran.exe\" -optimize -progressive -copy all @file @file"
forfiles /M *.png /s /c "cmd /c @\"C:\Program Files\Image Optimization\pngout.exe\" @file"

#Now to add the option to the context menu. Open the registry editor (regedit).
#Navigate to HKEY_CLASSES_ROOT\Directory\shell\ in the registry.
#Right click “Shell” and select New -> Key. Enter a name for the command that will appear in the context menu, I’ve named mine #“Optimize Images”.
#Create another key called command under the key you just created.
#In command set the value data for the default data as "C:\Program Files\Image Optimization\optimize.bat" "%1"

Windows batch images optimisation

<iframe width="100%" height="452" src="http://geekz0ne.fr/snippetvamp/index.php?embed=56f5334dad970" type="text/html"></iframe>

Texte seul - Permalink - Snippet public posté le 02/01/2018

Windows - Listing fichiers

dir "c:\program files">c:\list.txt

Windows commandes fichiers listing

<iframe width="100%" height="200" src="http://geekz0ne.fr/snippetvamp/index.php?embed=56f532e179475" type="text/html"></iframe>

Texte seul - Permalink - Snippet public posté le 25/03/2016

Linux - Montage disque réseau au démarrage

à mettre dans /etc/fstab

//192.168.1.20/l$/ /media/Download cifs username=ixeygrek,password=************ 0 0
//192.168.1.20/wd2to2/ /media/Séries cifs username=ixeygrek,password=************ 0 0
//192.168.1.20/wd2to1/ /media/Films cifs username=ixeygrek,password=************ 0 0
//192.168.1.20/documents /media/Documents cifs username=ixeygrek,password=************ 0 0
//192.168.1.20/m$/ /media/Backup cifs username=ixeygrek,password=************ 0 0

batch linux montage disque

<iframe width="100%" height="308" src="http://geekz0ne.fr/snippetvamp/index.php?embed=56f5322898576" type="text/html"></iframe>

Texte seul - Permalink - Snippet public posté le 25/03/2016

PHP info

<?php echo phpinfo(); ?>

PHP info

<iframe width="100%" height="200" src="http://geekz0ne.fr/snippetvamp/index.php?embed=56f53200d4801" type="text/html"></iframe>

Texte seul - Permalink - Snippet public posté le 25/03/2016

Renommage PHP

<?php
$dossier='.';// à modifier
$d=scandir($dossier);
unset($d[0]);// suppr .
unset($d[1]);// suppr ..
foreach($d as $f){
if(strlen($f)>34){
rename($f, substr($f, 33) );
}
}
?>

// by oros

PHP renommer

<iframe width="100%" height="416" src="http://geekz0ne.fr/snippetvamp/index.php?embed=56f531df83adf" type="text/html"></iframe>

Texte seul - Permalink - Snippet public posté le 29/03/2016

Flux RSS de cette page


SnippetVamp 1.84 par Bronco - Page générée en 0.009 s