Note: if you already have folder then delete it running rm -r /Users/rupeshti/.oh-my-zsh
- https://rashedul.me | https://elyxxa.com
| add_filter( 'xoo_wsc_suggested_product_price', function( $price_html, $product ) { | |
| // Get the price including tax | |
| $price_incl_tax = wc_get_price_including_tax( $product ); | |
| // Return formatted price | |
| return wc_price( $price_incl_tax ); | |
| }, 10, 2 ); |
- Open Telegram application then search for
@BotFather - Click Start
- Click Menu -> /newbot or type
/newbotand hit Send - Follow the instruction until we get message like so
Done! Congratulations on your new bot. You will find it at t.me/new_bot.
| #!/bin/bash | |
| curl -X POST "https://api.cloudflare.com/client/v4/zones/{$ZONE_ID}/purge_cache" \ | |
| -H "X-Auth-Email: {$EMAIL}" \ | |
| -H "X-Auth-Key: {$API_KEY}" \ | |
| -H "Content-Type: application/json" \ | |
| --data '{"purge_everything":true}' |
The Super Page Cache for Cloudflare plugin has recently added the feature for using the Cache Everything pagerule withing the ?swcfpc=1 cache buster query paramater. This opens up so many new doors where users previously had to use the Cloudflare Workers to remove the cache buster.
With this new option now users are able to take advantage of Cloudflare Cache Everything page rule and take it to the next level by using the new Rulesets released by Cloudflare. Basically this is achived by taking advantage of the all new Cache Rules feature implemented by Cloudflare.
The first thing that you need to do is, log-in to your Cloudflare Dahsbord and go to the domain/zone doe which you are setting up the [Super Page Cache for Cloudflare](https://wordpress.org/plug
| Each YouTube video has 4 generated images. They are predictably formatted as follows: | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg | |
| The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is: | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg |
| /** | |
| * we are going to upload file to s3 via node js by using | |
| * aws-sdk - required | |
| * busboy - required | |
| * uuid - optional - for image renaming purpose | |
| * with this library you can upload any kind of file to s3 via node js. | |
| */ | |
| const AWS = require('aws-sdk'); | |
| const UUID = require('uuid/v4'); |
| // in a new folder be sure to run "npm init -y" and "npm install puppeteer" | |
| const puppeteer = require("puppeteer") | |
| const fs = require("fs/promises") | |
| async function start() { | |
| const browser = await puppeteer.launch() | |
| const page = await browser.newPage() | |
| await page.goto("https://learnwebcode.github.io/practice-requests/") | |
| const names = await page.evaluate(() => { |
| const request = require('request'); | |
| const cheerio = require('cheerio'); | |
| const fs = require('fs'); | |
| const writeStream = fs.createWriteStream('post.csv'); | |
| // Write Headers | |
| writeStream.write(`Title,Link,Date \n`); | |
| request('http://codedemos.com/sampleblog', (error, response, html) => { | |
| if (!error && response.statusCode == 200) { |
| /* | |
| Made by Elly Loel - https://ellyloel.com/ | |
| With inspiration from: | |
| - Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/ | |
| - Andy Bell - https://piccalil.li/blog/a-modern-css-reset/ | |
| - Adam Argyle - https://unpkg.com/[email protected]/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE | |
| Notes: | |
| - `:where()` is used to lower specificity for easy overriding. | |
| */ |
