Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart |
vagrant init geerlingguy/ubuntu1604 --box-version 1.1.7 |
# To remove a directory that contains other files or directories, use the following command | |
rm -r mydir | |
# Delete everything with no prompt messages | |
rm -rf mydir |
ln -s directoryA/directoryB/branches/feature/dev directoryB |
# Create directory | |
mkdir < dirname > | |
# Remove directory | |
rm < dirname > | |
# Remove directory if it's not empty | |
sudo rm -r < dirname > |
# Copy files | |
svn co https://plugins.svn.wordpress.org/plugin-name/trunk | |
# Copy files and create a new folder | |
svn co https://plugins.svn.wordpress.org/plugin-name/trunk < dirname > |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
## Find and replace ** yourdomain ** and add your desired domain name | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] |
/* | |
* Reverse Integer using Javascript ES6 | |
* Built in JS methods: toString(), split(), reduce(), Math.sign() | |
*/ | |
const reverseInt = (n, rev='', final) => { | |
final = n.toString().split('').reduce((acc, inv) => rev = inv + acc, ''); | |
return parseInt(final) * Math.sign(n); | |
} |