Skip to content

Instantly share code, notes, and snippets.

command:
name: test:example
description: 'Update code'
commands:
- command: exec
options:
working-directory: "/Users/leandro/git/DrupalConsole"
arguments:
file: "./my_cool_commands.sh"
commands:
command:
name: develop:update:code
description: 'Update code'
commands:
- command: exec
options:
working-directory: "/Users/leandro/git/DrupalConsole"
arguments:
bin: "git checkout master"
- command: exec
@novia713
novia713 / radiocarcoma.com
Created September 22, 2017 18:08
obtener el horario de radiocarcoma en ruby según la hora actual
require 'open-uri'
require 'ruby-cheerio'
require "terminal-table"
require "colored"
source = open("https://radiocarcoma.com/programacion").read
html = RubyCheerio.new(source)
time = Time.new
table = Terminal::Table.new
<?php
require "vendor/autoload.php";
use Pimple\Container;
$container = new Container();
$container['hello'] = function() {
return function($name) {
@novia713
novia713 / numerales2.md
Created October 30, 2016 09:42
Correlatos 2,5, 8, 9, 10
español farsi nepali hindi breton welsh pashto albanian gheg scottish gaelic czech 1 romani armenian mirandese
dos du din dio daou dau dwa dy da dva duj yerku dous
cinco panch panch pak pamp pump pindze pês cóig pet panzh hing cinco
ocho hast at ath eizh wyth até tet ochd osm oxto uth uito
nueve noh nau nau nav naw ne nan naoi devet inja inn nuobe
diez dah das das dek deg les det deich deset desh tas
@novia713
novia713 / numerales1.md
Last active October 30, 2016 09:40
numerales-comparados-1
españ batua ibérico labortano suletino turco húngaro estonio danés nenets ket
uno bat ban bat bat bir egy üks en nob qok/qus
dos bi bin biga bi iki kettö kaks to syidya in
tres hiru irur/(k)ilu(n) hirur iru üç három kolm tre nyaxr don
cuatro lau lau(r) laur lau dört négy neli fire tyet sik
cinco bost bors(te) bortz bost bes öt viis fem samplyank qak
seis sei śei sei sei alti hat kuus seks matq a
siete zazpi sisbi zazpi zazpi
@novia713
novia713 / Supporting Drush Commands in DrupalConsole.md
Last active July 25, 2018 09:22
Supporting Drush Commands in DrupalConsole

UNFINISHED ~~ WORK IN PROGRESS this list comes from hechoendrupal/drupal-console#1522

Drush Command Description Equivalent Will not Implement Notes
archive-dump Backup your code, files, and database into a single file. PR that is been work on - #766
archive-restore Expand a site archive into a Drupal web site #1524
browse Display a link to a given path or open link in a browser
cache-clear Clear a specific cache, or all drupal caches cache:rebuild
cache-get Fetch a cached object and display it
@novia713
novia713 / shortener-how-to.md
Last active September 4, 2016 18:32
Little Big URL Shortener Instalation

#Little Big URL Shortener Instalation#

  • Clone the repo
  • Set up your /etc/hosts and your httpd.conf Mine looks like:
<VirtualHost *:80> 
  DocumentRoot "/home/leandro/public_html/leash" 
  ServerName leash.dev
  
@novia713
novia713 / Settings.php
Created May 31, 2016 16:17
Settings service
<?php
namespace Drupal\Console\Utils;
use Drupal\Console\Utils\Site;
use Symfony\Component\Filesystem\Filesystem;
/**
* Class Settings
* @package Drupal\Console\Utils
*/
@novia713
novia713 / ModeCommand.php
Last active May 31, 2016 16:15
ModeCommand.php
<?php
// we should wrap all this in a method or something ....
$yaml = new Yaml();
$settings = $this->get('settings');
$services_file = $settings->getServicesFile();
// Copy default.services.yml in sites/default/ into sites/default/services.yml
//@TODO: handle it if services.yml exists
if (!$settings->exists($services_file)) {
$settings->rename(