Courtesy: lindows2008@superuser.com
$ sudo apt-get install dmg2img
Courtesy: lindows2008@superuser.com
$ sudo apt-get install dmg2img
<?php | |
/** | |
* Adding Custom post type counts in 'Right now' Dashboard widget. | |
* Acording this changes : | |
* - https://core.trac.wordpress.org/ticket/26571 | |
* - https://core.trac.wordpress.org/ticket/26495 | |
* now you can't use 'right_now_*' action API to show your custom post type count from your Dashboard. | |
* But if you running WP 3.8 or above, you can use 'dashboard_glance_items' instead. | |
* | |
* @package Wordpress |
#!/bin/bash | |
# Based on https://gist.github.com/edouard-lopez/503d40a5c1a49cf8ae87 | |
set -e | |
# Installing dependencies | |
apt-get -q -y install build-essential automake libtool git | |
buildDir="/tmp/sass-build" |
function docker-start | |
{ | |
docker-machine start docker-vm | |
docker-machine env docker-vm --shell powershell | Invoke-Expression | |
} |
Verifying my Blockstack ID is secured with the address 1Mt1if5X7f8NWAbYhc7TbdY1iD372EKj34 https://explorer.blockstack.org/address/1Mt1if5X7f8NWAbYhc7TbdY1iD372EKj34 |
artisan serve
) along side webpack-dev-server
in single commandstorage/app/public
without creating symlink to public
directorychild_process
to spawn artisan serve
command while starting webpack-dev-serverIt always slightly niggled that I couldn’t just stick a *.localhost
entry in /etc/hosts
and have all subdomains of localhost resolve to 127.0.0.1. But setting up a local nameserver, and making sure external domains still got resolved properly, always seemed like too much faff. It turns out though, thanks to dnsmasq, that it’s actually very straightforward. (Instructions are for Ubuntu but dnsmasq runs on most *nix systems.)
Install dnsmasq, a DNS forwarder which you can configure to reply to certain queries locally and forward all others on to your external nameservers:
sudo aptitude install dnsmasq
Configure it to resolve all localhost domains to 127.0.0.1. By default, dnsmasq will include all files in /etc/dnsmasq.d/
so create a new file here with a sensible name like /etc/dnsmasq.d/localhost.conf
and add the following line:
<?php | |
if ( ! function_exists( 'twbs_comment_form_defaults' ) ) { | |
/** | |
* Customize default wp comment form. | |
* | |
* @link https://developer.wordpress.org/reference/hooks/comment_form_defaults/ | |
* @link https://codex.wordpress.org/Function_Reference/comment_form | |
* | |
* @param array $defaults |
# Start the old vagrant | |
vagrant@host:~$ sudo su | |
root@host:/home/vagrant# sudo wget -c http://download.virtualbox.org/virtualbox/4.3.10/VBoxGuestAdditions_4.3.10.iso -O VBoxGuestAdditions_4.3.10.iso | |
root@host:/home/vagrant# mount VBoxGuestAdditions_4.3.10.iso -o loop /mnt | |
mount: block device /home/vagrant/VBoxGuestAdditions_4.3.10.iso is write-protected, mounting read-only | |
root@host:/home/vagrant# cd /mnt | |
root@host:/mnt# sh VBoxLinuxAdditions.run --nox11 | |
root@host:/mnt# cd ~ | |
root@host:/mnt# VBoxGuestAdditions_4.3.10.iso | |
root@host:/mnt# ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions |
#!/usr/bin/env sh | |
[ -d ~/.nvm ] && rm -rf ~/.nvm | |
git clone -q https://github.com/creationix/nvm.git ~/.nvm | |
cd ~/.nvm && git checkout -q `git describe --abbrev=0 --tags` |