What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-18 17:25:02
bash script wget
#!/bin/sh # Linux wget=/usr/bin/wget tar=/bin/tar apachectl=/usr/sbin/apache2ctl # FreeBSD #wget=/usr/local/bin/wget #tar=/usr/bin/tar #apachectl=/usr/local/sbin/apachectl TXT="GOT TO THE END, YEAH" WORKING_DIR="/var/asl/updates" TA... Add solution -
Javascript 2022-02-11 09:15:17
nodejs dirname
// Source Code: lib/path.js // Description: The path module provides utilities for working with file and // directory paths. It can be accessed using: const path = require('path') path.dirname('/foo/asdf/quux') // Returns: '/foo/asdf' /* ... Add solution -
PHP 2022-02-09 21:25:15
php download all files in directory
Thanks to the help from @maxhud I was able to come up with the complete solution. Here is the final code snippet used to achieve my desired results: <?php /* creates a compressed zip file */ function create_zip($files = array(),$destination = '',$over... Add solution -
Shell/Bash 2022-01-31 01:12:47
count number of lines files .cpp .h
# Show count sum find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec cat {} + | wc -l # Show count sum and stats for each file find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec wc -l {} + Add solution -