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
@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.
<#
.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.
#>

Installing ipFire on a Raspberry Pi 3 b+

Sharp language ahead, but i was infuriated at getting openWRT to work before this. Go away if you're easily offended.

Step 1: Download ipFire

I have mirrored the version I've been using for this guide. Though i encourage you to download the latest one.

Mirror: https://drive.google.com/open?id=1u--Ynws2FTW4X1oycYXp2xOZ4B8pvRt6

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 / remove-proxmox-ve-51-nag.md
Last active February 1, 2021 20:38
[Remove nag prompt Proxmox VE 5.1] How to remove the nag screen in Proxmox VE 5.1 #promox #nag #howto

Find this code block:

if (!me.login) {
    me.login = Ext.create('PVE.window.LoginWindow', {
  handler: function(data) {
      me.login = null;
      me.updateLoginData(data);
      Proxmox.Utils.checked_command(function() {}); // display subscription status
 }
@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
@martin-juul
martin-juul / JSONView-solarized-dark.css
Last active December 15, 2020 19:16
[JSONView Solarized Dark] Solarized Dark color scheme for the JSONView extension. #solarized #jsonview
/*
* author: Martin Juul | Snowydane @ Github
* homepage: https://juul.xyz
* source: https://gist.github.com/snowydane/98c785460b38d68f33d8949cd2db6ea1
*/
body {
white-space: pre;
font-family: monospace;
background-color: #002b36;
color: #586e75;
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDowmH1V5yjiUV4DNCvvoy4M0aXumPpWPjMI2shaomePhY8s2fDGouJsn7rTRXNzhvOMTbyLOC537dza6VqgYLbsV5tGIbnjeExT5crS5KotHy/Ej3erqoemM3Z7xQ1w8t/ESD5KXShCSnx1N3QveyUM+DTq3DXLnraELk8UKoC09sbcAbGxDhmgDfhM8184PCpMHnZtAR5gFJ6L9pHN/4dhSOUhVZb/WKE2QnpwMmYXZ1bur23IwxoSqkAwxIVxF2ZxCxvKtYzKTmgckTw2Lp2FHNUGMDDPOe8fbWn24uThCfc+EGK7FM7xZtzoNGjpXDu38p/oNNDKDCuXJrw2b1r8/XJ5zsI2TYMBTtER6HnV7WAecMT2TkaIYuIcmgPBHV+OnsUe2SoMDZmCEVCfvJOtzYDPO8Jnvz1dABEqNzIxXKsws+3Hizc87y0U5/e50UVTUdBVTkvVnsLddurxJurxPEfvX70t2iAgB6x/uNfRkKObVvSoNO7ynZL01lmE/J4V97C55ziGeJkG9SAVqH3Vc66HnrR/xoRWWRCU0m6SU7I0Bo9ahNNt3fPl1WA7kTXxJiq72IcQuncrJkVgJWXNNiwupWsjcToPC7w8Z9UWPWkj/K2JUdtsdZmu0xaUWup9Q8/K87QLN05xfbHuMYSnAB5uLWnaLssL3SFWVLWow== martin@odin.local
@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 \