Skip to content

Instantly share code, notes, and snippets.

View felixlindemann's full-sized avatar

Felix Lindemann felixlindemann

  • Lime-Tree
  • Wuppertal, Germany
View GitHub Profile
@felixlindemann
felixlindemann / BlogPost.Component.ts
Created November 21, 2021 12:03
Blog in Angular - the dynamic Component
@Component({
selector: 'app-blog-post',
templateUrl: './blog-post.component.html', // <ng-template appBlog></ng-template>
styleUrls: ['./blog-post.component.scss']
})
export class BlogPostComponent implements OnInit, OnDestroy, AfterViewInit {
// [...] ommitted for abbreviation
constructor(
@felixlindemann
felixlindemann / posts.service.ts
Created November 21, 2021 11:59
Blog in Angular - Posts-Service
@Injectable({
providedIn: 'root'
})
export class PostsService {
private _posts: blogPost[] = [];
get Posts(): blogPost[] {
return this._posts;
@felixlindemann
felixlindemann / index.ts
Created November 21, 2021 11:57
Blog in Angular- Pseudo-Reflection
export default [
Bp20190813SophosResetVPNComponent,
...
];
@felixlindemann
felixlindemann / BlogCategory.ts
Created November 21, 2021 11:55
Blog in Angular: Categories
export type BlogCategory = 'N/A' | 'Administration' |'LaTeX'| 'Photographie' | 'Programming' | 'Project' | 'Link';
@felixlindemann
felixlindemann / blogpost.ts
Created November 21, 2021 11:54
Blog in Angular: Baseclass
@Component({
selector: 'app-blogPost',
template: `
<div class="col">
<h3>abstract Blog post</h3>
<p>this is the dummy page - you should see the actual post.</p>
</div>
`
})
@felixlindemann
felixlindemann / rooty-helix.tex
Created November 21, 2021 11:13
Latex: Rooty-Helix (Wurzelspirale)
% Rooty helix
% Author: Felix Lindemann
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\pagestyle{empty}
\pgfdeclarelayer{background}
@felixlindemann
felixlindemann / sophos-utm-ipsec-turn-off-on.ps1
Created November 12, 2021 16:53
Sophos UTM IPSec Turn off and again
### 2019-08-13 ###
<# .SYNOPSIS
Reset of VPN-Tunnel per Powershel.
.DESCRIPTION
SOPHOS-API is used to Reset the IPSec VPN-Tunnel
.NOTES
Change the APi-Token from time to time in sophos.
API Token can be added at https:// + $IP + :4444/ --> Verwaltung --> Webdamin --> Restfull API --> Token
.COMPONENT
@felixlindemann
felixlindemann / ipsec-turn-off.json
Created November 12, 2021 16:40
Payload to turn a Sophos-UTM IPSec off
{
"status": false
}
@felixlindemann
felixlindemann / ipsec.json
Created November 12, 2021 16:33
List of active IPSecs at my UTM
[
{
"_locked": "",
"_ref": "REF_IpsSitIpsecSiteASiteB",
"_type": "ipsec_connection/site_to_site",
"auto_pf_in": "REF_PacPacAnyFromLnSiteB",
"auto_pf_out": "REF_PacPacAnyFromSiteC",
"auto_pfrule": true,
"bind": false,
"comment": "",
@felixlindemann
felixlindemann / prtg-sensor-error.xml
Last active November 12, 2021 14:06
PRTG Custom Sensor error
<prtg>
<error>1</error>
<text>Your error message</text>
</prtg>