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
Hello, this is the content of your gist! |
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
ROLE="User Access Administrator" | |
SUBSCRIPTION=$(az account show --query id -otsv) | |
if [ ! -z "$RESOURCE_GROUP" ]; then | |
SCOPE="/providers/Microsoft.Subscription/subscriptions/$SUBSCRIPTION/resourceGroups/$RESOURCE_GROUP" # Group-scoped | |
echo "Scope (Group): $SCOPE" | |
else | |
SCOPE="/providers/Microsoft.Subscription/subscriptions/$SUBSCRIPTION" # Subscription-scoped | |
echo "Scope (Subscription): $SCOPE" |
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
CONNECTED(00000003) | |
--- | |
Certificate chain | |
0 s:/C=AU/ST=New South Wales/L=Sydney/O=NSW Department of Education/CN=j11-lb.dev.det.nsw.edu.au | |
i:/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - SHA256 - G2 | |
-----BEGIN CERTIFICATE----- | |
MIIItzCCB5+gAwIBAgIMW3wPhcvPqPbH85MMMA0GCSqGSIb3DQEBCwUAMGYxCzAJ | |
BgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTwwOgYDVQQDEzNH | |
bG9iYWxTaWduIE9yZ2FuaXphdGlvbiBWYWxpZGF0aW9uIENBIC0gU0hBMjU2IC0g | |
RzIwHhcNMTkwNTE0MjMwMTIwWhcNMjEwNzMwMDE1MTA0WjCBgjELMAkGA1UEBhMC |
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
$('[data-duplicate-check]').on('keyup change', '.email input', _.debounce(function () { | |
if($email.val().length < 3) { | |
return; | |
} | |
$.ajax({ | |
url: '/web/api/checkout/duplicate/email', | |
data: {id: $('.email').attr('data-id'), email: $email.val()} | |
}).done(function (data) { | |
$email.parent().find('.alert-box').remove(); | |
if (!$.isEmptyObject(data)) { |
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
$('[data-duplicate-check]').on('keyup change', '[data-duplicate-check-url]', _.debounce(function () { | |
var $field = $(this); | |
if($field.val().length < 3) { | |
return; | |
} | |
$.ajax({ | |
url: $field.attr('data-duplicate-check-url'), | |
data: {value: $field.val()} | |
}).done(function (data) { | |
$field.parent().find('.alert-box').remove(); |
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
<p>Should you have any log in issues, content issues or need clinical support, please contact <strong>[email protected]</strong>.</p> | |
<p>For navigational help please copy and paste this link into your search engine | |
<em>http://eremote.crana.org.au/moodle/site_wide_files/UserGuide_eRemote_Vxx.pdf</em></p> | |
<p>This will take you to a user guide to be printed or saved to your computer to help you navigate around the | |
program.</p> | |
{% endif %} | |
<p>Regards,</p> | |
<p>eRemote Coordinator<br> |
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 Contact | |
{ | |
/* @var Order[] */ | |
private $orders; | |
/** @var bool */ | |
private $deleted; | |
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 | |
$doctrine = ...; | |
foreach ($entities as $entity) { | |
$metadata = $doctrine->getEntityManager()->getClassMetadata($entity); | |
$query = $doctrine->getEntityManager()->getRepository($entity)->createQueryBuilder('o'); | |
foreach ($metadata->getAssociationMappings() as $association) { | |
$query->setFetchMode($entity, $association, 'EAGER'); | |
} | |
try { |
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 | |
/** | |
* Requires "google/apiclient" | |
*/ | |
class GoogleDriveRestore | |
{ | |
/** @var Google_Client */ | |
private $client; |
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
[2015-02-11 08:31:02] request.CRITICAL: Uncaught PHP Exception PDOException: "SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)" at .../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 {"exception":"[object] (PDOException(code: 2003): SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111) at .../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40)"} {"token":"-daed1082","user":"Anonymous"} | |
[2015-02-11 08:31:02] request.CRITICAL: Uncaught PHP Exception PDOException: "SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111)" at .../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 40 {"exception":"[object] (PDOException(code: 2003): SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (111) at .../vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40)"} {"token":"-daed0da1","user":"Anonymous"} | |
[2015-02-11 08:31:05] request.CRITICAL: Uncaught PHP Exception PDOException: |
NewerOlder