Installing Xcode and the command line tools need to be done first because it installs gcc
.
https://developer.apple.com/xcode/features/
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Joomla files | |
/.htaccess | |
/configuration.php | |
/tmp | |
/cache | |
/administrator/cache | |
docman.config.php | |
dmdocuments/ | |
<?php | |
/** | |
* By default joomla display 10 pages in pagination. This file allows | |
* us to customize the number of displayed pages. | |
* | |
* Simply add this file to $template/html/pagination.php and | |
* change $displayedPages variable. | |
*/ | |
defined('_JEXEC') or die('Restricted access'); |
Installing Xcode and the command line tools need to be done first because it installs gcc
.
https://developer.apple.com/xcode/features/
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
async function logTime(url, hour, min, date, desc) { | |
console.group('Log', Array.prototype.slice.call(arguments).join(',')); | |
const logTimeAPI = url + 'log-time?action=add&log_id='; | |
const formId = await $.get(logTimeAPI).then(res => { | |
const html = $('<div/>').html(res); | |
return html.find('#form_id').val();; | |
}); | |
console.log('Submitting time...'); |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title></title> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/fonts"> |
#!/usr/bin/env bash | |
# Environment variables | |
# EB_ENV="website-qa" | |
# S3_BUCKET="qa-selfmade-assets" | |
# CLOUDFRONT_ID="E1B4KQ9M175W9L" | |
if [ -z "$EB_ENV" ] || [ -z "$S3_BUCKET" ] || [ -z "$CLOUDFRONT_ID"]; | |
then | |
echo "" |