- SSH to target server
sftp [email protected]
and auth if needed.- cd to the directory the file you want to transfer is
get archive.tar.gz
- to pull out of transfer use
exit
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
about.inc.php | |
The value of key "credits" is the same as the default (Credits... vs. Credits...) | |
The value of key "help_title" is the same as the default (Help... vs. Help...) | |
access.inc.php | |
The key "resource_group_access_contexts" doesn't exists in translated file | |
The key "resource_group_automatic_access" doesn't exists in translated file | |
The key "resource_group_automatic_access_desc" doesn't exists in translated file | |
The key "resource_group_access_admin" doesn't exists in translated file | |
The key "resource_group_access_admin_desc" doesn't exists in translated file |
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 | |
if ($modx->profiler) { | |
echo '<pre>'; | |
foreach ($modx->profiler->timing[modProfiler::VIEW_CHRONOLOGICAL] as $node) { | |
echo $node['namespace'] . '-' . $node['action'] . ' | Start: ' . $node['start'] . ' | Duration: ' . number_format($node['duration'],7) . "s\n"; | |
} | |
echo '</pre>'; | |
} |
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 | |
$eventName = $modx->event->name; | |
switch ($eventName) { | |
case 'OnLoadWebDocument' : | |
$output = $GLOBALS['code_content'] = $modx->resource->get('content'); | |
preg_match_all('/<pre.*?>(.*?)<\/pre>/ims', $output, $matches); | |
$i = 0; | |
$GLOBALS['code_matches'] = array(); | |
foreach ($matches[1] as $key => $match) { |
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 | |
/* Generate random array */ | |
$m = rand(1,100); | |
echo '<p>Answer: '.$m.'</p>'; | |
$list = array(); | |
for ($i=1;$i<=100;$i++) $list[] = $i; | |
unset($list[array_search($m,$list)]); | |
function findMissing ($list, $idx = 1) { |
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
about.inc.php | |
access.inc.php | |
The key "resource_group_access_contexts" doesn't exists in translated file | |
The key "resource_group_automatic_access" doesn't exists in translated file | |
The key "resource_group_automatic_access_desc" doesn't exists in translated file | |
The key "resource_group_access_admin" doesn't exists in translated file | |
The key "resource_group_access_admin_desc" doesn't exists in translated file | |
The key "resource_group_access_anon" doesn't exists in translated file | |
The key "resource_group_access_anon_desc" doesn't exists in translated file |
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
{"fltr":{"":"wmi|assets/images/logo-watermark.png|385x220|20|350|58"}} |
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
Creating a tar gzipped archive: | |
tar -cvzf archive_name.tar.gz dirname/ | |
Extracting a gzipped archive: | |
tar -xvzf archive_name.tar.gz |
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 | |
$mailto = (isset($mailto)) ? $mailto : '@@ DEFAULT EMAIL HERE @@'; | |
$warningMail = '@@ EMAIL TO SEND WARNING TO IN CASE OF A SMALL BACKUP FILE @@'; | |
include MODX_CORE_PATH.'/config/'.MODX_CONFIG_KEY.'.inc.php'; | |
$host = $database_server; // database host | |
$dbuser = $database_user; // database user name | |
$dbpswd = $database_password; // database password | |
$mysqldb = $dbase; // name of database |
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>Hi there!</p> | |
<p>The resource [[+pagetitle]] (ID: [[+id]]) has been [[+mode]].</p> | |
<p>You can login to the manager at www.mysite.com/manager/ to review and if needed publish the resource.</p> | |
<p>Thank you!</p> |