Skip to content

Instantly share code, notes, and snippets.

View omero's full-sized avatar
💭
I write code and play video games

Omar Aguirre omero

💭
I write code and play video games
  • @OctahedroidHQ
  • Mexico , Monterrey
View GitHub Profile
@omero
omero / Adding custom path
Last active August 29, 2015 14:06
Setting Custom Path
diff --git a/src/Command/GeneratorModuleCommand.php b/src/Command/GeneratorModuleCommand.php
index 48000a7..a7cda17 100644
--- a/src/Command/GeneratorModuleCommand.php
+++ b/src/Command/GeneratorModuleCommand.php
@@ -49,6 +49,11 @@ class GeneratorModuleCommand extends GeneratorCommand
}
}
+ $module_path = $input->getOption('module-path');
+ if(!is_dir($module_path)){
@omero
omero / gist:8823a3da58536371de94
Created February 10, 2015 02:29
Drupal 8 links demo
dsads
@omero
omero / boot2docker-nfs.rb
Last active August 29, 2015 14:27 — forked from mattes/boot2docker-nfs.rb
docker-machine/ boot2docker with NFS instead of vboxsf
#!/usr/bin/env ruby
# Usage
# $ docker-machine create my-machine123 -d virtualbox
# $ ruby <(curl -L https://git.io/vvvco) my-machine123
# https://gist.github.com/mattes/4d7f435d759ca2581347
require 'erb'
bootlocalsh = %Q(#/bin/bash
@omero
omero / github.js
Created October 20, 2015 22:21
Contributors
$(document).ready(function() {
gitHubContributors();
});
function gitHubContributors() {
var
howMany = 70,
baseUrl = 'https://api.github.com/repos/hechoendrupal/DrupalConsole/contributors?per_page=' + howMany + '&callback=?',
$contributorsOutput = $("#contributors-list"),
@omero
omero / _grid-settings.scss
Created December 2, 2015 17:42
Settings grid site AXTEL
@import "../../../../bower_components/neat/app/assets/stylesheets/neat-helpers";
// Neat Overrides
$column: em(100);
$gutter: em(20);
$grid-columns: 12;
$max-width: em(1400);
// Neat Breakpoints
$mobile-screen: em(480);
@omero
omero / menu-example.html
Created December 3, 2015 18:06
menu-example.html
<ul class="menu">
<li class="first expanded">
<a href="http://axtel.mx/residencial" title="">Residencial</a>
<ul class="menu">
<li class="first expanded">
<span class="nolink" title="">Internet</span>
<ul class="menu">
<li class="first leaf">
<a href=
"http://axtel.mx/residencial/internet/axtel-x-tremo">Internet
@omero
omero / php.ini
Last active December 4, 2015 21:39
tamadre
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
<?php
$databases['default']['default'] = array (
'database' => 'campgdl',
'username' => 'campgdl',
'password' => 'campgdl',
'prefix' => '',
'host' => '127.0.0.1',
'port' => '3306',
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
@omero
omero / instructions.bash
Last active December 28, 2015 19:49
Drupal Console Install Instructions
# Run this in your terminal to get the latest project version:
curl https://drupalconsole.com/installer -L -o drupal.phar
# Or if you don't have curl:
php -r "readfile('https://drupalconsole.com/installer');" > drupal.phar
# Accessing from anywhere on your system:
mv drupal.phar /usr/local/bin/drupal
# Apply executable permissions on the downloaded file:
@omero
omero / Lightbox gallery.markdown
Created February 12, 2016 08:19
Lightbox gallery