This file contains hidden or 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
client_session_key.aes | |
*.db3 |
This file contains hidden or 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
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE QuasiQuotes #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE TypeFamilies #-} | |
import Data.Text (Text) | |
import Data.Time.Clock | |
import Yesod | |
This file contains hidden or 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
CREATE USER root WITH PASSWORD 'root'; | |
CREATE DATABASE yesod; | |
GRANT ALL PRIVILEGES ON DATABASE yesod TO root; |
This file contains hidden or 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
SELECT * | |
FROM company | |
LEFT OUTER JOIN group_membership | |
ON (company.id = group_membership.company_id AND group_membership.user_id=1) | |
WHERE group_membership.company_id IS NULL | |
This file contains hidden or 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
// $this->entityManager->getStorage('og_membership') | |
// ->willReturn($this->entityStorage->reveal()); | |
// | |
// $this->entityManager->getEntityTypeFromClass('Drupal\og\Entity\OgMembership') | |
// ->willReturn('og_membership'); | |
// | |
// // Create a mocked Og Membership entity. | |
// $membership_entity = $this->prophesize(OgMembershipInterface::class); | |
// |
This file contains hidden or 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
print '<div class="debug">'; | |
print_r($some_val); | |
print '</div>'; | |
print_r($this->getSession()->getPage()->find('css', '.debug')->getHtml()); |
This file contains hidden or 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 | |
drush si --account-pass=admin -y && drush en devel kint og_ui -y | |
drush php-eval "\Drupal\og\Og::groupTypeManager()->addGroup('node', 'page');" | |
drush php-eval "\Drupal\og\Og::createField(\Drupal\og\OgGroupAudienceHelper::DEFAULT_FIELD, 'node', 'article');" | |
drupal create:users authenticated --limit="10" --password="5" --time-range="604800" | |
drupal create:nodes page --limit="25" --title-words="5" --time-range="604800" |
This file contains hidden or 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
elm-package install krisajenkins/elm-exts -y | |
elm-package install elm-community/json-extra -y |
This file contains hidden or 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
alias phpcs="./vendor/bin/phpcs" | |
phpcs --config-set installed_paths /Library/WebServer/Documents/Danel/vendor/drupal/coder/coder_sniffer | |
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md modules |
This file contains hidden or 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
# | |
# Virtual Hosts | |
# | |
# If you want to maintain multiple domains/hostnames on your | |
# machine you can setup VirtualHost containers for them. Most configurations | |
# use only name-based virtual hosts so the server doesn't need to worry about | |
# IP addresses. This is indicated by the asterisks in the directives below. | |
# | |
# Please see the documentation at | |
# <URL:http://httpd.apache.org/docs/2.2/vhosts/> |