Skip to content

Commit 0fa123d

Browse files
author
pascalheidmann
committed
add hugo to the mix
1 parent 6053a14 commit 0fa123d

File tree

6 files changed

+130
-0
lines changed

6 files changed

+130
-0
lines changed

.github/workflows/hugo.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Set a branch to deploy
7+
pull_request:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
submodules: true # Fetch Hugo themes (true OR recursive)
16+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
17+
18+
- name: Setup Hugo
19+
uses: peaceiris/actions-hugo@v2
20+
with:
21+
hugo-version: 'latest'
22+
# extended: true
23+
24+
- name: Build
25+
run: hugo --minify
26+
27+
- name: Deploy
28+
uses: peaceiris/actions-gh-pages@v3
29+
if: github.ref == 'refs/heads/main'
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./docs

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/m10c"]
2+
path = themes/m10c
3+
url = https://github.com/pascalheidmann/hugo-theme-m10c.git

archetypes/default.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
draft: true
5+
---
6+

config.toml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
baseURL = 'https://heidmann.io/'
2+
languageCode = 'en-us'
3+
title = 'pascal.heidmann.io | something with developing something'
4+
theme = "m10c"
5+
6+
[params]
7+
description ='''
8+
"Hi there 👋
9+
10+
❤️ly greetings from Hamburg!
11+
'''
12+
author = "Pascal Heidmann"
13+
avatar = "https://avatars.githubusercontent.com/u/19560252?v=4"
14+
15+
[[params.social]]
16+
icon = "github"
17+
name = "See my work on github."
18+
url = "https://github.com/pascalheidmann"

content/about/about-me.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "About me"
3+
draft: false
4+
showDate: false
5+
---
6+
7+
Hello world,
8+
9+
I'm Pascal from lovely Hamburg and doing web development now for more 15 years - first as a hobby and nowadays for living.
10+
11+
## Current occupation
12+
Right now I'm happily employed at Germany's largest comparing website, CHECK24, as a senior developer.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: "Fixing not starting PHPStorm / other IntelliJ IDE"
3+
date: 2021-08-07T22:34:56+02:00
4+
draft: false
5+
---
6+
7+
## Problem
8+
9+
My PHPStorm does not start anymore, just sitting idle without any window
10+
(windows 10)
11+
12+
## First try: running without 3rd party plugins
13+
14+
Locate your Intellij (or IntelliJ based IDE) executable. If you are using Jetbrain's toolbox go the bugged IDE'
15+
s `Settings` page inside toolbox, expand `Configuration` and you should see something like
16+
17+
```shell
18+
C:\Program Files (x86)\JetBrains\Toolbox\apps\PhpStorm\ch-0
19+
```
20+
21+
Now open a terminal/windows cmd etc. and run
22+
23+
```shell
24+
C:\Program Files (x86)\JetBrains\Toolbox\apps\PhpStorm\ch-0\phpstorm64.exe disableNonBundledPlugins
25+
```
26+
27+
If you are lucky and your IDE starts disable all potentially offending 3rd party plugins and re-enable them one by one.
28+
29+
Sadly I wasn't so lucky this time...
30+
31+
## Solution
32+
33+
After checking the logs (`%HOMEDRIVE%%HOMEPATH%/AppData/Local/Jetbrains/PhpStorm2021.2/log/idea.log`) I found an error
34+
at the end of the log file.
35+
36+
```log
37+
java.net.BindException: Address already in use: bind
38+
```
39+
40+
somewhere in Netty, a common java server framework which is used inside IntelliJ for internal communication.
41+
42+
As it turned out it tries to open a port between 6942 and 6991. Somehow no port was free anymore as there seems problem
43+
with releasing ports with `winnat`
44+
as [suggested in a docker bug report](https://github.com/docker/for-win/issues/3171#issuecomment-739740248).
45+
46+
If you encounter this problem you have to run following commands in an administrator elevated terminal
47+
48+
```shell
49+
net stop winnat
50+
net start winnat
51+
```
52+
53+
or as an alternative
54+
55+
```shell
56+
netsh winsock reset
57+
```
58+
59+
if you don't mind restarting your computer.

0 commit comments

Comments
 (0)