Skip to content

Instantly share code, notes, and snippets.

View bernd's full-sized avatar

Bernd Ahlers bernd

View GitHub Profile
@bernd
bernd / Bootable Mac ISO with Linux.md
Created October 3, 2023 08:33 — forked from coolaj86/Bootable Mac ISO with Linux.md
Create Bootable MacOS ISO from Apple's Free PKG

PWM fan control in Linux with a Gigabyte Aorus motherboard

  • install lm-sensors with your package manager

sensors

If it won't show any fan/speed, continue

sensor-detect

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.2 (jessie)
Release: 8.2
Codename: jessie
# dpkg -i graylog-1.2-repository-debian8_1.2.0-4_all.deb
Selecting previously unselected package graylog-1.2-repository-debian8.
(Reading database ... 11779 files and directories currently installed.)
@bernd
bernd / whiteboardCleaner.md
Created October 26, 2015 09:59 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

Keybase proof

I hereby claim:

  • I am bernd on github.
  • I am bernd (https://keybase.io/bernd) on keybase.
  • I have a public key whose fingerprint is 7A5F 6639 EB94 D8D5 0D2A 3D41 5C0F 95A9 CC47 90E5

To claim this, I am signing this object:

# In Chef, when a resource is defined all its variables are evaluated during
# compile time and the execution of the resource takes place in converge phase.
# So if the value of a particular attribute is changed in converge
# (and not in compile) the resource will be executed with the old value.
# Example problem:
# Let's consider this situation where there are two steps involved in a recipe
# Step 1 is a Ruby block that changes a node attribute. Rubyblocks get executed
# in converge phase
# Step 2 is a Chef resource that makes use of the node attribute that was
[url "https://github.com/"]
insteadOf = git://github.com/
insteadOf = git@github.com:
insteadOf = gh:
insteadOf = github:
[url "https://github.com/standard-analytics/"]
insteadOf = sa:
[url "https://git.apache.org/repos/asf/"]
insteadOf = apache:
[url "https://github.com/strmpnk/"]
@bernd
bernd / apt-ssl.conf
Created August 26, 2014 14:51
Put into /etc/apt/apt.conf.d to test https repos
Acquire::https::localhost {
Verify-Peer "false";
Verify-Host "false";
CaInfo "/etc/ssl/certs/ca-certificates.crt";
SslCert "/etc/ssl/certs/ssl-cert-snakeoil.pem";
SslKey "/etc/ssl/private/ssl-cert-snakeoil.key";
SslForceVersion "SSLv3";
};
@bernd
bernd / gist:b291794b6d2f6a8b8eba
Created August 1, 2014 13:30
Compare deb and rpm versions
@bernd
bernd / gist:5e83babe15d0b6d48555
Created June 19, 2014 20:06
Oracle Java debconf automation
sudo apt-get install python-software-properties software-properties-common -y
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections
sudo apt-get -q -y install oracle-java7-installer