Skip to content

Instantly share code, notes, and snippets.

View netdesignr's full-sized avatar
🎯
@(^-^)@

Mihai Diaconita netdesignr

🎯
@(^-^)@
View GitHub Profile
@netdesignr
netdesignr / Vagrant_up_failed.txt
Created June 13, 2018 14:21
Vagrant up failed, /dev/vboxnetctl: no such file or directory
sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart
@netdesignr
netdesignr / SSL_ERROR_SYSCALL.txt
Created June 13, 2018 14:58
OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to hashicorp-files.hashicorp.com:443
vagrant init geerlingguy/ubuntu1604 --box-version 1.1.7
@netdesignr
netdesignr / remove_a_full_directory_linux_commands.txt
Last active June 16, 2018 20:18
Remove a full directory in Linux
# 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
@netdesignr
netdesignr / macos-terminal-commands.txt
Created June 14, 2018 15:12
MacOS Terminal Commands
# Create directory
mkdir < dirname >
# Remove directory
rm < dirname >
# Remove directory if it's not empty
sudo rm -r < dirname >
@netdesignr
netdesignr / subversion-commands.txt
Last active June 14, 2018 15:18
Subversion commands
# 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 >
@netdesignr
netdesignr / wordpress-plugin-svn-to-git.md
Created June 15, 2018 11:04 — forked from kasparsd/wordpress-plugin-svn-to-git.md
Using Git with Subversion Mirroring for WordPress Plugin Development
@netdesignr
netdesignr / my-personal-wordpress-website-htacess-secure-patch-anti-hack.txt
Created June 16, 2018 20:07
My personal wordpress htaccess secure | patch | anti-hack 2018
## 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]
@netdesignr
netdesignr / README-Template.md
Created August 9, 2018 13:15 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@netdesignr
netdesignr / jsbin.kororer.js
Last active October 17, 2018 12:47
Reverse Integer// source https://jsbin.com/kororer
/*
* 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);
}