Skip to content

Instantly share code, notes, and snippets.

View Chefkeks's full-sized avatar
🍪

Michael Chefkeks

🍪
  • Kaiserslautern
View GitHub Profile
<#
.SYNOPSIS
Script to set work location in Microsoft Teams.
.DESCRIPTION
Author: Martin Heusser
Version: 1.0.1
Sponsor Project: https://github.com/sponsors/mozziemozz
Website: https://heusser.pro
# SED Commands to replace HTML entities to characters
# Usage:
# sed -f htmlentities.sed file.html > newfile.html
# Replace entities in all html files
# sed -i -f htmlentities.sed file.html **/*.html
# ASCII printable characters
s/&#32;/ /g
s/&#33;/!/g
@tomohulk
tomohulk / New-HPEiLOPKICertificate.ps1
Last active May 21, 2021 11:19
Create and install a PKI Certificate on HPE iLO.
#requires -Modules HPEiLOCmdlets
[CmdletBinding(
[PSCustomObject]
)]
[OutputType()]
param (
[Parameter(
Mandatory = $true
@Staubgeborener
Staubgeborener / mydealz_preisfehler.sh
Last active October 11, 2021 09:25
Rechtzeitig über Preisfehler auf mydealz.de benachrichtigt werden
#!/bin/bash
#Praktisches Skript für alle mydealerz. Am besten diese Codezeilen mit crontab -e jede Minute ausführen lassen (siehe: https://www.linuxwiki.de/crontab)
#Die folgenden Zeilen prüfen dann jede Minute (oder von mir aus Sekunde) ob es einen neuen Preisfehler-Deal gibt und schickt dann eine Telegram-Nachricht mit dem Link raus
#So ist es nun möglich tatsächlich auch _rechtzeitig_ über Preisfehler informiert zu werden und nicht erst ~10 Minuten später (beim ersten ausführen wird eine Preisfehler-Nachricht verschickt da eine Referenz fehlt, sit aber völlig normal)
TOKEN=<TOKEN> #https://core.telegram.org/bots/api#authorizing-your-bot
CHAT_ID=<CHAT_ID> #https://stackoverflow.com/a/32572159
touch .tmp_file_lastknowndeal
@howyay
howyay / Setting up Postfix on Debian.md
Last active July 9, 2024 22:43
A guide to set up a Postfix + Dovecot IMAP server with complete spf, dkim and dmarc support.

An ultimate guide to Postfix + Dovecot IMAP server with complete SPF, DKIM and DMARC support and additional instructions for a multi-domain setup

In this guide, domain.com will be your root domain and mail.domain.com will be the hostname of your mail server

@Tyler-Pritchard
Tyler-Pritchard / hacking_notes
Last active February 8, 2024 19:06
Ethical Hacking From Scratch Course Notes
SETTING UP THE VIRTUAL MACHINE
-Install VirtualBox
-Install Kali-Linux machine from downloaded from https://www.offensive-security.com/kali-linux-vm-vmware-virtualbox-image-download/
-DO NOT use "VMWare Images", select "VirtualBox Images" on section's tab
-Confirm use of NAT network in network settings
-Login: root, PW: toor
-Take snapshot, "Fresh Install"
-Launch Kali cli, run "apt-get update"
@Killercodes
Killercodes / Change Admin Password of the local system.vbs.md
Last active November 27, 2022 23:10
Get the user/network info using the VbScript & WMI

Get the user/network info using the VbScript & WMI

The follow is automation script to change the Administrator password of a windows system. One just have to save it as a file with .vbs extension and execute it

sNewPassword = "pass"

Set oWshNet = CreateObject("WScript.Network")
sComputer = oWshNet.ComputerName
sAdminName = GetAdministratorName

On Error Resume Next
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active July 14, 2024 19:55
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@danfinlay
danfinlay / How to download streaming video.md
Last active June 29, 2024 04:41
How to download a streaming video with Google Chrome

How to download streaming video

Streaming just means a download that they don't want you to keep. But Chrome's developer tools make it easy to access what's really going on under the hood.

Open Developer Tools

From the page where you want to download some things, go into your chrome menu to open the developer tools. You can either:

1.  (On a mac): Command-option-J
2. (On a PC): Control-alt-J
@jpoehls
jpoehls / encoding-helpers.ps1
Created April 17, 2012 14:54
Convert-FileEncoding and Get-FileEncoding
<#
.SYNOPSIS
Converts files to the given encoding.
Matches the include pattern recursively under the given path.
.EXAMPLE
Convert-FileEncoding -Include *.js -Path scripts -Encoding UTF8
#>
function Convert-FileEncoding([string]$Include, [string]$Path, [string]$Encoding='UTF8') {
$count = 0