- Copy content of
vsix-bookmarklet, create a bookmark in your browser. - Navigate to the web page of the VS Code extension you want to install.
- Click the bookmark you just created, then click the download button.

- After download finished, rename the file extension to
*.vsix. - In VS Code, select Install from VSIX... in the extension context menu.

| /** | |
| * Change the placeholder image | |
| */ | |
| add_filter('woocommerce_placeholder_img_src', 'custom_woocommerce_placeholder_img_src'); | |
| function custom_woocommerce_placeholder_img_src( $src ) { | |
| $upload_dir = wp_upload_dir(); | |
| $uploads = untrailingslashit( $upload_dir['baseurl'] ); | |
| // replace with path to your image | |
| $src = $uploads . '/2012/07/thumb1.jpg'; |
| <?php | |
| /* | |
| * Plugin Name: WooCommerce Add Taxonomy to Export | |
| * Plugin URI: https://gist.github.com/helgatheviking/114c8df50cabb7119b3c895b1d854533/ | |
| * Description: Add a custom taxonomy to WooCommerce import/export. | |
| * Version: 1.0.1 | |
| * Author: Kathy Darling | |
| * Author URI: https://kathyisawesome.com/ | |
| * | |
| * Woo: 18716:fbca839929aaddc78797a5b511c14da9 |
| <?php | |
| /** | |
| * File Manager Script | |
| */ | |
| // Default language ('en' and other from 'filemanager-l10n.php') | |
| $lang = 'en'; | |
| // Auth with login/password (set true/false to enable/disable it) | |
| $use_auth = true; |
source: https://savedlog.com/uncategorized/letsencrypt-ssl-certificate-namecheap-hosting/
The “Positive SSL” certificate I bought along with my domain is invalid with any of my subdomains and cannot be used with wildcards. One annoying thing is that namecheap doesn’t offer auto installation of free let’s encrypt certificates, even though, they are saying “Namecheap is dedicated to data security and privacy for all internet users. We believe the movement to encrypt nearly all web traffic is a positive direction. As more sites embrace HTTPS and use of security products, providers of free SSL are beginning to come online.”
Let me show you what it needs to be done in order to “encrypt nearly all web traffic”.
First, not required but it’s helpful to enable ssh access, it is not enabled by default on the base hosting plans, just go an start a live chat and request ssh access.
Download, but don't run, the Sierra installer from the Mac App Store. This places the installer at
/Applications/Install\ macOS\ Sierra.app/.
Now run the following commands to build a suitable VM image from the installer:
git clone https://github.com/jonanh/osx-vm-templates
cd osx-vm-templates/packer
sudo ../prepare_iso/prepare_vdi.sh -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install\ macOS\ Sierra.app/ .
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
| const http = require('http'); | |
| const {promisify} = require('util'); | |
| http.get[promisify.custom] = function getAsync(options) { | |
| return new Promise((resolve, reject) => { | |
| http.get(options, (response) => { | |
| response.end = new Promise((resolve) => response.on('end', resolve)); | |
| resolve(response); | |
| }).on('error', reject); | |
| }); |
| #htaccess apache .htaccess file notes, last tested in Apache 2.4.26 | |
| ################# | |
| # Disable index | |
| ################# | |
| Options -Indexes | |
| ################# | |
| # SSI Support | |
| ################# |