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
DELETE FROM dbo.Orchard_MediaProcessing_FileNameRecord | |
WHERE id in ( | |
SELECT id | |
FROM ( | |
SELECT | |
path, id, | |
ROW_NUMBER() OVER (PARTITION BY path ORDER BY id) AS intRow | |
FROM dbo.Orchard_MediaProcessing_FileNameRecord | |
) AS d | |
WHERE intRow != 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
# copy from local machine to remote machine | |
scp localfile user@host:/path/to/whereyouwant/thefile | |
# copy from remote machine to local machine | |
scp user@host:/path/to/remotefile localfile |
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
// in theme functions.php | |
<?php | |
add_action('gform_after_submission', 'createPaymentForm', 10, 2); | |
function createPaymentForm($entry, $form) { | |
$valuesFound = false; | |
$fieldId = -1; | |
$fieldTotalId = -1; | |
$fieldCounter = 0; |
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
<httpErrors existingResponse="Replace" errorMode="Custom"> | |
<remove statusCode="404" subStatusCode="-1" /> | |
<error statusCode="404" prefixLanguageFilePath="" path="/404.aspx" responseMode="ExecuteURL" /> | |
</httpErrors> |
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
$("#marksradio").change(function () { | |
var selectedValue = $("#marksradio option:selected").val(); // or .text(); | |
// do some shit with selectedValue | |
}) |
NewerOlder