Skip to content

Instantly share code, notes, and snippets.

View penyaskito's full-sized avatar

Christian López Espínola penyaskito

View GitHub Profile
Running bash [-c /tmp/test_ddev.sh]
OS Information: Linux jahanzaib-Latitude-7530 5.14.0-1049-oem #56-Ubuntu SMP Fri Aug 12 10:23:08 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
User information: uid=1001(jahanzaib) gid=1001(jahanzaib) groups=1001(jahanzaib),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),120(lpadmin),131(sambashare)
DDEV version: ITEM VALUE
DDEV version v1.20.0
architecture amd64
db drud/ddev-dbserver-mariadb-10.4:v1.20.0
dba phpmyadmin:5
ddev-ssh-agent drud/ddev-ssh-agent:v1.20.0
docker 20.10.17
@penyaskito
penyaskito / xhprof.rb
Last active January 31, 2020 11:54 — forked from hannesl/xhprof.rb
A Homebrew formula for installing the latest Xhprof from Github.
require 'formula'
class Xhprof <Formula
url 'https://github.com/facebook/xhprof.git'
homepage 'http://mirror.facebook.net/facebook/xhprof/doc.html'
version 'master'
depends_on 'pcre'
def install
@penyaskito
penyaskito / .gitignore
Created July 15, 2015 19:12
Global gitignore file
# Patch/diff artifacts.
*.orig
*.rej
*interdiff*.txt
*.patch
# emacs artifacts.
*~
\#*\#

It's a Community Hack Day!

Welcome! No matter what you're level of Symfony, we have plenty of things we need help with! This document will guide you through everything:

Where are we meeting?

We're meeting on Freenode in the #symfony channel. Come hang out!

What can I work on?

@penyaskito
penyaskito / gist:5978131
Created July 11, 2013 18:51
Drupal Core development with feature branches in git
# Create a branch for your issue.
git checkout -b my-core-issue-123213
# Apply latest existing patch if any and commit to your branch.
wget http://drupal.org/files/my-core-issue-123213-1.patch
git apply my-core-issue-123213-1.patch
git commit -m "Comment #1"
# Fix whatever you are doing....
@penyaskito
penyaskito / gist:5977938
Created July 11, 2013 18:31
Install/Clean Drupal 8
# Get a clean D8 install in minutes:
git clone --recursive --branch 8.x http://git.drupal.org/project/drupal.git;
cd drupal;
drush si --db-url=mysql://sprintweekend:pass1@localhost/sprintweekend --db-su=root --db-su-pw=pass2 --locale=en-US --site-name="Sprint Weekend" --account-mail=user@example.com --account-pass=pass3;
# If you are experiencing permission issues
chmod -R 777 sites/default/files;
# Note: pass1 & pass3 do not exist yet. Use the ones you want to set up. pass2 is your root database user's password.
# Note2: change root for the name of administrator's username for your MySQL server.
diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index 49b1a44..d8f471f 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -680,6 +680,7 @@ function simpletest_script_get_test_list() {
simpletest_script_print_error('No valid tests were specified.');
exit;
}
+ // I only want to run one test class! :)
+ $test_list = array('Drupal\book\Tests\BookTest');
@penyaskito
penyaskito / gist:3777798
Created September 24, 2012 19:27
Save menu item programatically with i18n
$item = array(
'menu_name' => $menu_name,
'link_path' => $link_path,
'link_title' => $link_title,
'options' => array(
'attributes' => array('title' => ''),
'langcode' => $langcode,
'alter' => TRUE
),
'customized' => 1,