user name: liferay passwod : liferay
Commands:
Setting keyboard:
setxkbmap en_US
# 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 |
SearchContext searchContext = new SearchContext(); | |
searchContext.setCompanyId(companyId); | |
// omit groups to search entire portal | |
searchContext.setGroupIds(new long[] {groupId}); | |
// tags | |
searchContext.setAssetTagNames(assetTagNames); |
#!/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. |
user name: liferay passwod : liferay
Commands:
Setting keyboard:
setxkbmap en_US
import java.io.File; | |
import java.io.IOException; | |
import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler; | |
import org.apache.commons.httpclient.HttpClient; | |
import org.apache.commons.httpclient.HttpException; | |
import org.apache.commons.httpclient.HttpStatus; | |
import org.apache.commons.httpclient.UsernamePasswordCredentials; | |
import org.apache.commons.httpclient.auth.AuthScope; | |
import org.apache.commons.httpclient.cookie.CookiePolicy; |
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; | |
} |
<#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> |
# -*- 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 |
... 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.