Skip to content

Instantly share code, notes, and snippets.

View martin-juul's full-sized avatar
馃嚛馃嚢
Coding

Martin Juul martin-juul

馃嚛馃嚢
Coding
View GitHub Profile
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
[ColorEffects:Inactive]
[
{
"id": 1,
"employee_id": 101,
"employee_name": "Zhang Wei",
"phone_number": "+86 138 0013 8001",
"email": "[email protected]",
"violation_type": "Tardiness",
"punishment": "Written Warning",
"disciplinary_action": {
<#
.SYNOPSIS
Creates firewall rules for Teams.
.DESCRIPTION
(c) Microsoft Corporation 2018. All rights reserved. Script provided as-is without any warranty of any kind. Use it freely at your own risks.
Must be run with elevated permissions. Can be run as a GPO Computer Startup script, or as a Scheduled Task with elevated permissions.
The script will create a new inbound firewall rule for each user folder found in c:\users.
Requires PowerShell 3.0.
#>
FLEXISIP-MIB DEFINITIONS ::= BEGIN
IMPORTS
OBJECT-TYPE, Integer32, MODULE-IDENTITY, enterprises,
Counter64,NOTIFICATION-TYPE FROM SNMPv2-SMI
MODULE-COMPLIANCE, OBJECT-GROUP FROM SNMPv2-CONF;
flexisipMIB MODULE-IDENTITY
LAST-UPDATED "202105180000Z"
ORGANIZATION "belledonne-communications"
CONTACT-INFO "postal: 34 Avenue de L'europe 38 100 Grenoble France
@martin-juul
martin-juul / .Xmodmap
Created January 24, 2021 12:22
Apple Aluminium da-DK mapping
keycode 11 = 2 quotedbl
keycode 16 = 7 slash backslash backslash paragraph backslash
keycode 17 = 8 parenleft bracketleft bracketleft bracketleft braceleft
keycode 18 = 9 parenright bracketright bracketright bracketright braceright
keycode 31 = i I bar bar bar
keycode 49 = less greater
keycode 51 = apostrophe asterisk at at at
keycode 94 = dollar
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDowmH1V5yjiUV4DNCvvoy4M0aXumPpWPjMI2shaomePhY8s2fDGouJsn7rTRXNzhvOMTbyLOC537dza6VqgYLbsV5tGIbnjeExT5crS5KotHy/Ej3erqoemM3Z7xQ1w8t/ESD5KXShCSnx1N3QveyUM+DTq3DXLnraELk8UKoC09sbcAbGxDhmgDfhM8184PCpMHnZtAR5gFJ6L9pHN/4dhSOUhVZb/WKE2QnpwMmYXZ1bur23IwxoSqkAwxIVxF2ZxCxvKtYzKTmgckTw2Lp2FHNUGMDDPOe8fbWn24uThCfc+EGK7FM7xZtzoNGjpXDu38p/oNNDKDCuXJrw2b1r8/XJ5zsI2TYMBTtER6HnV7WAecMT2TkaIYuIcmgPBHV+OnsUe2SoMDZmCEVCfvJOtzYDPO8Jnvz1dABEqNzIxXKsws+3Hizc87y0U5/e50UVTUdBVTkvVnsLddurxJurxPEfvX70t2iAgB6x/uNfRkKObVvSoNO7ynZL01lmE/J4V97C55ziGeJkG9SAVqH3Vc66HnrR/xoRWWRCU0m6SU7I0Bo9ahNNt3fPl1WA7kTXxJiq72IcQuncrJkVgJWXNNiwupWsjcToPC7w8Z9UWPWkj/K2JUdtsdZmu0xaUWup9Q8/K87QLN05xfbHuMYSnAB5uLWnaLssL3SFWVLWow== [email protected]
@martin-juul
martin-juul / sysctl.conf
Created September 26, 2020 11:19 — forked from JoeyBurzynski/sysctl.conf
sysctl.conf Optimization / Ubuntu 18.04
# Kernel sysctl configuration file for Linux
#
# Version 1.14 - 2019-04-05
# Michiel Klaver - IT Professional
# http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant
#
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
@martin-juul
martin-juul / brew_install_ffmpeg.sh
Created September 26, 2020 08:25
Install ffmpeg with nonfree libs
#!/bin/bash
brew install chromaprint
brew uninstall --ignore-dependencies ffmpeg
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg \
--with-chromaprint \
--with-fdk-aac \
function errexit() {
local err=$?
set +o xtrace
local code="${1:-1}"
echo "Error in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}. '${BASH_COMMAND}' exited with status $err"
# Print out the stack trace described by $function_stack
if [ ${#FUNCNAME[@]} -gt 2 ]
then
echo "Call tree:"
for ((i=1;i<${#FUNCNAME[@]}-1;i++))