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
sudo phpbrew install 5.4.45 \ | |
+default \ | |
+mysql \ | |
+hash \ | |
+iconv \ | |
+gd \ | |
+apxs2=/usr/bin/apxs -- \ | |
--with-gd \ | |
--enable-gd-natf \ | |
--with-jpeg-dir \ |
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
Label: Comments | |
Machine name: comment | |
Descritpion: This field manages configuration and presentation of comments on an entity. | |
Provider: comment | |
--- | |
Label: Date | |
Machine name: datetime | |
Descritpion: Create and store date values. | |
Provider: datetime | |
--- |
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 script production following aliases. | |
# | |
# alias ..='cd ../' | |
# alias ...='cd ../../' | |
# alias ....='cd ../../../' | |
# alias .....='cd ../../../../' | |
# alias ......='cd ../../../../../' | |
# alias .......='cd ../../../../../../' | |
# alias ........='cd ../../../../../../../' | |
# alias .........='cd ../../../../../../../../' |
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
#!/bin/bash | |
drush -y sql-dump --structure-tables-key=common --gzip --result-file=path/based/on/drupal/root/to/your/backup.sql |
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
# Make sure you have pv and zcat already installed | |
pv my_database.sql.gz | zcat | drush sqlc | |
# Example output: | |
# 433kB 0:00:00 [ 658kB/s] [============================================================================================>] 100% |
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
#!/bin/sh | |
# Get IP address from latest docker instance | |
exec docker inspect --format '{{ .NetworkSettings.IPAddress }}' "$@" |
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
#!/bin/sh | |
# Created by: Alex Saavedra | |
# Date created: 2011-05-11 | |
# Last modified: 2010-05-11 | |
# Purpose: ProcessMaker backup. | |
# Change log: | |
# Syntax: | |
# backup.sh <periodicity> <period> | |
# Parameters: | |
# <periodicity> = weekly, monthly, yearly |
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
<?php | |
define('INDENT', ' '); | |
// Radio list | |
$radiostations = [ | |
'trojka' => 'mms://stream.polskieradio.pl/program3_wma10', | |
'dwojka' => 'mms://stream.polskieradio.pl/program2_wma10', | |
'jedynka' => 'mms://stream.polskieradio.pl/program1_wma10', | |
'luz' => 'http://radioluz.pwr.wroc.pl/listen.pls', |
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
#!/bin/bash | |
# Obviously change name and pass values and example.com domain | |
curl --insecure \ | |
--cookie ./cookie.txt \ | |
--cookie-jar ./cookie.txt \ | |
-e example.com \ | |
-d "name=admin" \ | |
-d "pass=admin" \ | |
-d "form_id=user_login" \ | |
https://example.com/user |
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
default: | |
paths: | |
features: 'features' | |
extensions: | |
Behat\MinkExtension\Extension: | |
goutte: ~ | |
selenium2: ~ | |
base_url: https://production.server/ | |
Drupal\DrupalExtension\Extension: | |
blackbox: ~ |