This file contains 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
docker-compose up -d | |
Creating network "drupal8_default" with the default driver | |
Creating drupal8_traefik_1 ... | |
Creating drupal8_mailhog_1 ... | |
Creating drupal8_portainer_1 ... | |
Creating drupal8_mariadb_1 ... | |
Creating drupal8_php_1 ... | |
Creating drupal8_mariadb_1 | |
Creating drupal8_traefik_1 | |
Creating drupal8_php_1 |
This file contains 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 | |
for i in $(cat urls.txt); do | |
content=$(curl -I -s "{$i}") | |
echo "URL: $i" >> output.txt | |
echo "$content" >> output.txt | |
done |
This file contains 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 | |
// Array of user IDs to email. | |
$uids = array('1'); | |
// Loop through array of uids and attempt to send password reset emails. | |
foreach ($uids as $uid) { | |
// Load a user. | |
$account = user_load($uid); | |
// Invoke the email. It will be queued along with other system mail to be sent during cron |
This file contains 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
<h3>Description</h3> | |
Description goes here | |
<h3>Technical Notes</h3> | |
Technical notes go here | |
<h3>Testing Instructions</h3> | |
ordered list item 1 |
This file contains 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
// Add a sync folder to sync local drush folder to the vm. | |
vagrant_synced_folders: | |
- local_path: ~/.drush | |
destination: /home/vagrant/.drush | |
type: nfs | |
create: true |
The easiest way to get the ClamAV package is using Homebrew
$ brew install clamav
Before trying to start the clamd
process, you'll need a copy of the ClamAV databases.
Create a freshclam.conf
file and configure as so
This file contains 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
$form['who_are_you'] = array( | |
'#type' => 'fieldset', | |
'#title' => t('Who are you?'), | |
'#weight' => 5, | |
); | |
$form['who_are_you']['first_name'] = array( | |
'#type' => 'textfield', | |
'#title' => 'First Name', | |
'#required' => TRUE, | |
'#maxlength' => 255, |
This file contains 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
@IBAction func submitButton(_ sender: AnyObject) { | |
// Set the greeting intro. | |
let greetingIntroText = "Hi, " | |
// Set the complete greeting for display. | |
textGreetingLabel.text = greetingIntroText + nameField.text! | |
nameField.text = "" | |
} |
This file contains 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 | |
##### Preparations ##### | |
#----------------------- | |
# Description is available at http://mlayer.org/tech/2014/11/25/setup-mac-os-x.html | |
# install homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install caskroom/cask/brew-cask # makes available to install apps as packages | |
brew tap caskroom/versions # for beta version available through cask |