This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
link "/vagrant/bin/coder_module/coder_sniffer/Drupal" do | |
to "/usr/share/php/PHP/CodeSniffer/Standards/Drupal" | |
link_type :symbolic | |
action :create | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Angular View admin file. | |
*/ | |
function angular_refresh_endpoints($form, &$form_state, $no_js_use = FALSE) { | |
$form['#attached']['css'] = array( | |
drupal_get_path('module', 'angular_refresh') . '/angular_refresh.css', | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Do these steps inside your Vagrant machine. | |
1. Web Server | |
sudo apt-get install apache2 | |
2. PHP5 | |
sudo apt-get install php5 libapache2-mod-php5 | |
3. MySQL | |
sudo apt-get install mysql-server mysql-client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drupal drupalvdd: vagrant up | |
The provider 'virtualbox' that was requested to back the machine | |
'default' is reporting that it isn't usable on this system. The | |
reason is shown below: | |
VirtualBox is complaining that the kernel module is not loaded. Please | |
run `VBoxManage --version` or open the VirtualBox GUI to see the error | |
message which should contain instructions on how to fix this error. | |
Solution: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watch -n 1 "mysql -u <user> -e 'SELECT message, referer, FROM_UNIXTIME('timestamp') FROM watchdog ORDER BY 'timestamp' DESC LIMIT 0,1' <database_name>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# @file | |
# A one directional auto-sync triggered by inotify. | |
# The inotify-utils must be installed in the system | |
# before using this script. | |
# | |
# @source | |
# $SOURCE - A git repository. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Location: ckeditor_plugins/qna/icons | |
This is where you put the plugin icon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$machine_format = 1422969167; | |
echo date('l, F j, Y g:i a', $machine_format); | |
// Output | |
Wednesday, February 4, 2015 12:12 am |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To control the workstation using x2x: | |
ssh -XC user@host x2x -[north,east,south,west] -to :0.0 | |
This requires to have x2x installed on the target machine. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --no-merges --pretty=format:"%h - %an, %ar : %s" --since="February 13 2015" |
OlderNewer