Skip to content

Instantly share code, notes, and snippets.

View affeldt28's full-sized avatar
🚀
Sometimes you gotta run before you can walk

Marvin Affeldt affeldt28

🚀
Sometimes you gotta run before you can walk
View GitHub Profile
@affeldt28
affeldt28 / example.service
Created October 6, 2022 13:46
Simple service for SystemD (etc/systemd/system/)
[Unit]
Description=Short description of this service
After=network.target
[Service]
Type=simple
ExecStart=<command to execute>
Restart=always
RestartSec=10
TimeoutStartSec=30
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="20">
<profile kind="CodeFormatterProfile" name="JavaConventions" version="20">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert" />
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines" />
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true" />
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_logical_operator" value="insert" />
@affeldt28
affeldt28 / .editorconfig
Last active February 26, 2023 02:10
Formatting config
# Editor configuration, see https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = tab
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@affeldt28
affeldt28 / FHD_TI_turingmaschine.yml
Last active July 21, 2022 08:00
Turingmaschine für die Sprache {w ∈ {a,b,c}* | w = a^n b^n c^n, n ∈ ℕ+}
name: turingmaschine
source code: |
input: 'aaabbcc'
blank: ' '
start state: q0
table:
q0:
a: {write: A, R: q1}
@affeldt28
affeldt28 / FHD_TI_UE12_Aufgabe12-4.yml
Last active July 21, 2022 08:00
Turingmaschine für die Sprache {w ∈ {a,b}* | w = 0^n 1^n, n ∈ ℕ0}
name: turingmaschine-ti-12.4
source code: |
input: 'aaabbb'
blank: ' '
start state: q0
table:
q0:
a: {write: A, R: q1}