Skip to content

Instantly share code, notes, and snippets.

Avatar

Felix Lindemann felixlindemann

  • Lime-Tree
  • Wuppertal, Germany
View GitHub Profile
@felixlindemann
felixlindemann / BlogPost.Component.ts
Created Nov 21, 2021
Blog in Angular - the dynamic Component
View BlogPost.Component.ts
@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 Nov 21, 2021
Blog in Angular - Posts-Service
View posts.service.ts
@Injectable({
providedIn: 'root'
})
export class PostsService {
private _posts: blogPost[] = [];
get Posts(): blogPost[] {
return this._posts;
@felixlindemann
felixlindemann / index.ts
Created Nov 21, 2021
Blog in Angular- Pseudo-Reflection
View index.ts
export default [
Bp20190813SophosResetVPNComponent,
...
];
@felixlindemann
felixlindemann / BlogCategory.ts
Created Nov 21, 2021
Blog in Angular: Categories
View BlogCategory.ts
export type BlogCategory = 'N/A' | 'Administration' |'LaTeX'| 'Photographie' | 'Programming' | 'Project' | 'Link';
@felixlindemann
felixlindemann / blogpost.ts
Created Nov 21, 2021
Blog in Angular: Baseclass
View blogpost.ts
@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 Nov 21, 2021
Latex: Rooty-Helix (Wurzelspirale)
View rooty-helix.tex
% 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 Nov 12, 2021
Sophos UTM IPSec Turn off and again
View sophos-utm-ipsec-turn-off-on.ps1
### 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 Nov 12, 2021
Payload to turn a Sophos-UTM IPSec off
View ipsec-turn-off.json
{
"status": false
}
@felixlindemann
felixlindemann / ipsec.json
Created Nov 12, 2021
List of active IPSecs at my UTM
View ipsec.json
[
{
"_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 Nov 12, 2021
PRTG Custom Sensor error
View prtg-sensor-error.xml
<prtg>
<error>1</error>
<text>Your error message</text>
</prtg>