<ul>
<#list renderRequest.getAttributeNames() as name >
<li>${name}</li>
</#list>
</ul>
import groovy.io.FileType | |
if ( args.length < 2 ) { | |
println "Scan's thread dump *.log files from directory"; | |
println ""; | |
println "Usage:"; | |
println "groovy ThreadDumpAnalyzer.groovy <directory> <first value to look from thread dump> <second value to look from thread dump> <third value to look from thread dump>"; | |
println ""; | |
return; | |
} |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# config.vm.box = "Ubuntu-16LTS" | |
config.vm.box = "ubuntu/xenial64" | |
config.vbguest.auto_update = false | |
config.vm.network "forwarded_port", guest: 8080, host: 8090 |
user name: liferay passwod : liferay
Commands:
Setting keyboard:
setxkbmap en_US
... so I do not forget the next time I have to figure this stuff out. And perhaps to help other poor souls fiddling with v6/v4 xen setups in a Hetzner network environment.
You can basically follow along the Xen Project Beginners Guide.
Install Debian Wheezy via Hetzner's installimage
on the rescue system, the only important part about partitioning is that you have an LVM volume group named vg0
with enough space for your guests' disks.
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: plexconnect | |
# Required-Start: plexmediaserver networking | |
# Required-Stop: plexmediaserver networking | |
# Default-Start: 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: This is the Plex Connect daemon | |
# Description: This script starts the Plex Connect | |
# Python scripts in a detached screen. |
SearchContext searchContext = new SearchContext(); | |
searchContext.setCompanyId(companyId); | |
// omit groups to search entire portal | |
searchContext.setGroupIds(new long[] {groupId}); | |
// tags | |
searchContext.setAssetTagNames(assetTagNames); |
Author: Michael van Rooijen (@mrrooijen)
DISCLAIMER: I am a programmer, not a sysadmin in my day-to-day life. I provide this guide simply as a self-reference, and as a way to contribute to the community of developers. The main motivation for writing this guide is because of the lack of properly written guides/tutorials. They were either out-dated, inaccurate, in a non-English language or simply too vague to understand (at least for me, as a programmer and not a sysadmin).
I hope this guide helps getting you up and running with your own collection of VPS's on your own Dedicated Server over at Hetzner.de.
Requirements:
# Paste this line into your .gitconfig | |
split = "!f() { git checkout -b $2 && msg=$(git stash save) && git checkout - && git reset --hard $1 && git checkout $2 && [[ ! $msg =~ ^'No local changes to save'$ ]] && git stash pop; }; f" | |
# move all commits after the SHA to a new branch | |
# use case: I accidentally make a bunch of commits into my master branch for a specific feature. | |
# I want to split off a feature branch and reset my current branch to some point in time before my changes. | |
# usage | |
# git split SHA NEW_BRANCH_NAME |
<#assign locPortletId = "82" /> | |
<#assign PortletPreferencesFactoryUtil = staticUtil["com.liferay.portlet.PortletPreferencesFactoryUtil"] /> | |
<#assign portletSetup = PortletPreferencesFactoryUtil.getLayoutPortletSetup(layout, locPortletId) /> | |
<#if portletSetup.getValue("portletSetupShowBorders", "") != "false" > | |
<#assign temp = portletSetup.setValue("portletSetupShowBorders", "false") /> | |
<#assign temp = portletSetup.store() /> | |
</#if> |