#GIT
git config --global user.name "Alex Gonzalez"
git config --global user.email [email protected]
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
#GIT
git config --global user.name "Alex Gonzalez"
git config --global user.email [email protected]
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
## Android | |
set --export ANDROID_HOME $HOME/Android/Sdk | |
set -gx PATH $ANDROID_HOME/emulator $PATH; | |
set -gx PATH $ANDROID_HOME/tools $PATH; | |
set -gx PATH $ANDROID_HOME/tools/bin $PATH; | |
set -gx PATH $ANDROID_HOME/platform-tools $PATH; | |
# When finished run: source ~/.config/fish/config.fish |
<?php | |
/** | |
* @file | |
* Functions to support theming in the Pattern Lab theme. | |
*/ | |
function mycustom_theme_preprocess_page(array &$variables) { | |
// Prepare the intro values | |
$variables['intro_logo'] = file_url_transform_relative(file_create_url(theme_get_setting('intro_logo', 'mycustom_theme'))); |
//#1 | |
var images = document.getElementsByTagName('img'); | |
var l = images.length; | |
for (var i = 0; i < l; i++) { | |
images[0].parentNode.removeChild(images[0]); | |
} | |
//#2 | |
for (var i= document.images.length; i-->0;) | |
document.images[i].parentNode.removeChild(document.images[i]); |
#Nginx.conf file | |
server { | |
listen 80; | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name site.local; | |
ssl_certificate /etc/ssl/certs/site.local.crt; | |
ssl_certificate_key /etc/ssl/private/site.local.key; |
# Remove the older version of vagrant. | |
sudo apt-get remove --auto-remove vagrant | |
rm -r ~/.vagrant.d | |
#Download Vagrant package and install it manually. | |
#Vagrant download page provides the latest version of Vagrant | |
https://www.vagrantup.com/downloads.html | |
#This example used debian package x86_64 | |
1. wget https://releases.hashicorp.com/vagrant/2.2.0/vagrant_2.2.0_x86_64.deb |
How to install VirtualBox 5.2 on Ubuntu | |
#Open a terminal "Ctrl + Alt + t" and remove Virtualbox 5.1. | |
sudo apt remove virtualbox virtualbox-5.1 | |
#Debian-based Linux distributions | |
#Add a new repository | |
#According of the distribution, replace '<mydist>' with 'artful', 'zesty', 'yakkety', 'xenial', 'trusty', 'stretch', 'jessie', or 'wheezy' (older versions of VirtualBox supported different distributions) | |
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian <mydist> contrib" >> /etc/apt/sources.list.d/virtualbox.list' | |
or add in /etc/apt/sources.list. |
## Sublime Text 3 Serial key build is 3176 | |
> * Added these lines into /etc/hosts | |
127.0.0.1 www.sublimetext.com | |
127.0.0.1 license.sublimehq.com | |
> * Used the license key | |
----- BEGIN LICENSE ----- |
<?php | |
/** | |
* @file | |
* Contains \Drupal\my_contact\Form\ContactForm. | |
*/ | |
namespace Drupal\my_contact\Form; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; |
sudo apt-get update | |
sudo apt-get install nodejs | |
sudo apt-get install npm | |
## Use n module from npm in order to upgrade node | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable |