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 | |
| # Create "input" and "output" directories. Place m4a files in "input" directory. Run `bash m4a2mp3` and the new mp3 files will be stored in "output". | |
| cd ./input | |
| for filename in ./*; do | |
| tmp="${filename/.m4a/}"; | |
| echo Converting: "$tmp"; | |
| ffmpeg -v 5 -y -i "$filename" -acodec libmp3lame -ac 2 -ab 128k ../output/"$tmp".mp3; | |
| done |
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
| (function ($, Drupal) { | |
| Drupal.behaviors.openRequiredWrappers = { | |
| attach: function (context, settings) { | |
| // Prevent unnecessary multiple reloads. | |
| if (context instanceof HTMLDocument) { | |
| console.log("Test WDDSE-1913"); | |
| var required_items = $('input,textarea,select').filter('[required]'); |
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
| [xdebug] | |
| zend_extension=xdebug.so | |
| xdebug.idekey = PHPSTORM | |
| xdebug.remote_enable = 1 | |
| xdebug.remote_port = 9000 | |
| xdebug.remote_host=host.docker.internal |
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
| IdentityFile ~/.ssh/id_rsa | |
| IdentityFile ~/.ssh/pantheon | |
| IdentityFile ~/.ssh/platform |
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: php | |
| php: | |
| - '7.2' | |
| env: | |
| global: | |
| - MODULE_NAME='example' | |
| - SIMPLETEST_BASE_URL='http://127.0.0.1:8080' | |
| # Ignore Symfony's deprecation notices. |
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
| name: research-academy | |
| recipe: drupal7 | |
| config: | |
| webroot: . | |
| php: '5.6' | |
| xdebug: true | |
| services: | |
| appserver: | |
| build: | |
| - "mkdir -p ~/.drush/site-aliases" |
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 | |
| class rectangle { | |
| public function __construct($size, $width = 0, $height = 0) { | |
| $sizes = $this->getSizes(); | |
| if (isset($sizes[$size])) { | |
| $this->width = $sizes[$size]['width']; | |
| $this->height = $sizes[$size]['height']; |
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
| drush eval "var_dump(Drupal\Component\Utility\Crypt::randomBytesBase64(55))" |
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 | |
| $users = array( | |
| 'username1', | |
| 'username2', | |
| ); | |
| foreach ($users as $username) { | |
| $user = user_load_by_name($username); | |
| $role = user_role_load_by_name("event coordinator"); |
NewerOlder