Skip to content

Instantly share code, notes, and snippets.

View basbl's full-sized avatar
💭
Give us feedback

Bas basbl

💭
Give us feedback
View GitHub Profile
#!/bin/bash
#============================================================================
#
# Copyright (c) 2021 Microsoft Corporation. All rights reserved.
#
# Abstract:
# MDE installation script
# - Fingerprinting OS and manually installs MDE as described in the online documentation
# https://docs.microsoft.com/en-us/microsoft-365/security/defender-endpoint/linux-install-manually?view=o365-worldwide
@basbl
basbl / gist:b4280f0223309a039a6d
Created January 6, 2015 09:54
FFmpeg various commands

MAKE SURE THAT YOU HAVE A RECENT VERSION, DIST BUILDS ARE OFTEN ANCIENT. https://trac.ffmpeg.org/wiki/CompilationGuide

Commands tested in ffmpeg version 2.4.git Copyright (c) 2000-2014

Stitching together multiple video's:

First convert your mp4's to .ts files (needed only once):

$ ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts

@basbl
basbl / .htaccess
Created August 10, 2012 09:13
a .htaccess with .htpasswd settings that whitelists facebook linter ip adresses
AuthName "Realm"
AuthUserFile /path/to/.htpasswd
AuthType Basic
Satisfy Any
<Limit GET POST>
Order Deny,Allow
Deny from all
#https://developers.facebook.com/docs/ApplicationSecurity/#facebook_scraper
Allow from 31.13.24.0/21