Skip to content

Instantly share code, notes, and snippets.

View davidhoeck's full-sized avatar
🎯
Focusing

David Höck davidhoeck

🎯
Focusing
View GitHub Profile
@davidhoeck
davidhoeck / clean-up-boot-partition-ubuntu.md
Created April 17, 2020 17:58 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@davidhoeck
davidhoeck / app.js
Created July 29, 2018 11:39
Load the Pimcore translations into the Vuei18n Plugin
// import vue and vue i18n
import Vue from 'vue';
import VueI18n from 'vue-i18n';
// --- Add your vue components here ---
// Vue.component('example-components', ExampleComponent);
// ------------------------------------
// use the vue i18n plugin
Vue.use(VueI18n);
@davidhoeck
davidhoeck / layout.html.twig
Created July 29, 2018 11:25
Dumping the Translations array to the window object
{% block footer_scripts deferred %}
<script>
window.app_locale = "{{ app.request.locale }}";
window.app_translations = {{ translation_dumper.dump()|json_encode|raw }};
</script>
{% endblock %}
@davidhoeck
davidhoeck / config.yml
Created July 29, 2018 11:22
TranslationDumper service and twig configuration
twig:
globals:
translation_dumper: '@app.helper.translations_dumper'
<?php
namespace AppBundle\Helper;
use Pimcore\Config;
use Pimcore\Db;
class TranslationsDumper
{
public function dump()
@davidhoeck
davidhoeck / Setup Pimcore 5 with NGINX and PHP7.0 on Ubuntu 16.04.md
Last active February 26, 2020 22:42
Setup Pimcore 5 with NGINX and PHP7.0 on Ubuntu 16.04

Install NGINX

sudo apt-get update
sudo apt-get install nginx 

Install PHP 7.0 and the PHP Packages

@davidhoeck
davidhoeck / Laravel PHP7 LEMP AWS.md
Created September 19, 2017 10:28 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip