Skip to content

Instantly share code, notes, and snippets.

View DaanDeSmedt's full-sized avatar

Daan De Smedt DaanDeSmedt

  • Antwerp Area, Belgium
View GitHub Profile
// Place your key bindings in this file to override the defaults
[
{
"key": "alt+x",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\u001b[A\u000d" }
}
]
@DaanDeSmedt
DaanDeSmedt / text-over-image-html-mail-outlook-support.html
Created September 6, 2022 07:40
Text over image in HTML email templates with Outlook support
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td background="https://www.actamaps.be/cdn/mailings/2022q2biv/header.jpg" bgcolor="#000000" width="700" valign="top" style="background-size: cover;">
<!--[if gte mso 9]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:700px;">
<v:fill type="tile" src="https://www.actamaps.be/cdn/mailings/2022q2biv/header.jpg" color="#000000" size="1,1" aspect="atleast" />
<v:textbox style="mso-fit-shape-to-text:true" inset="0,0,0,0">
<![endif]-->
<div>
<table role="presentation" border="0" cellpadding="0" cellspacing="0" align="center" width="100%" style="max-width:100%; margin: auto;">
@DaanDeSmedt
DaanDeSmedt / Accessing-your-served-Angular-application-on-any-device-of-local-network.md
Created December 16, 2021 14:10
Access your Angular application on any browser or device connected to the same local network

Serve Angular application on local network

Serve an Angular application on a predefined port (--port), over HTTPS (--ssl), on a local network.

Use any browser / device connected to the same local network and browse to the specific https://ip:port to access the served Angular application. The IPv4 adress of the serving system can be found using the ipconfig command.

Add package.json script

@DaanDeSmedt
DaanDeSmedt / create-hostednetwork-wireless-hotspot.bat
Created December 16, 2021 13:37
Turn your Windows into a wireless hotspot using hostednetwork
netsh wlan set hostednetwork mode=allow ssid="your-ssid-here" key="passphrase-here"
netsh wlan start hostednetwork
pause
@DaanDeSmedt
DaanDeSmedt / angular-workspace-library-and-demo-application.md
Last active January 3, 2022 10:27
Create an Angular workspace with a buildable library and demo application

Create an Angular workspace with a buildable library and demo application

Boilerplate an Angular workspace with a buildable library and a servable application.

Generate the Angular workspace

ng new my-workspace-name-here --createApplication=false

Create a new initial application project in the 'src' folder of the new workspace. When false, creates an empty workspace with no initial application. You can then use the generate application command so that all applications are created in the projects folder.

@DaanDeSmedt
DaanDeSmedt / es-elk-tcpdump-capture-host-traffic
Last active April 14, 2021 11:58
Capture host traffic for Elasticsearch instance using tcpdump
# dump to output
tcpdump -A -nn -s 0 'tcp dst port 9200 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' -i any
# dump to file
tcpdump -A -nn -s 0 'tcp dst port 9200 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' -i any -w tcpdump-es-traffic.txt