What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-15 19:15:03
composser
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '795f976fe0ebd8b75f26a6dd68f78fd3453ce79f32ecb33e7fd087d39bfeb978342fb73ac986cd4f54edd0dc902601dc') { echo '... Add solution -
TypeScript 2021-09-15 15:00:03
delete attachments in nodejs
// NOTE: `file_name` values are obfuscated and uniquely generated by the client. // The actual file name is in data storage. app.post('/delete/:file_name', (req, res) => { const theFile = 'attachments/' + req.params.file_name; var resultHandle... Add solution -
Javascript 2021-09-14 23:48:01
node js download file to folder
var http = require('http'); var fs = require('fs'); var download = function(url, dest, cb) { var file = fs.createWriteStream(dest); var request = http.get(url, function(response) { response.pipe(file); file.on('finish', function() { fil... Add solution -
Shell/Bash 2021-09-14 23:32:02
install composer 2 ubuntu
sudo apt update sudo apt install php-cli unzip cd ~ curl -sS https://getcomposer.org/installer -o composer-setup.php HASH=`curl -sS https://composer.github.io/installer.sig` echo $HASH php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH... Add solution -
Other 2021-09-14 22:10:02
add bottom content below woocommerce product category
/** * @snippet Add new textarea to Product Category Pages - WooCommerce * @how-to Get CustomizeWoo.com FREE * @author ... Add solution -
Javascript 2021-09-09 10:36:02
export mongo to csv node
const json2csv = require('json2csv').parse; //For unique file name const dateTime = new Date().toISOString().slice(-24).replace(/\D/g, '').slice(0, 14); const filePath = path.join(__dirname, "../../../", "public", "exports&quo... Add solution -
Shell/Bash 2021-09-06 17:33:03
brew switch node version
# install LATEST stable version of node $ brew install node # install OLD version of node $ brew install node@8 # check version of installed node $ node -v v10.4.1 # unlink LATEST version of node $ brew unlink node # link OLD version of node $ brew li... Add solution -
Shell/Bash 2021-09-03 15:08:04
linux remove symbolic link without deleting directory
unlink {symlink} Add solution