Skip to content

Instantly share code, notes, and snippets.

View apfohl's full-sized avatar
🎓
learning...

Andreas Pfohl apfohl

🎓
learning...
View GitHub Profile

Fix microphone mute LED on ThinkPad T14s Gen 2 AMD (Linux)

On this model, the indicator of micphone mute is not working properly in Linux due to how the device is implemented in ALSA and pulseuaio. The microphone device is suplex and has its micrphone LED event set to the wrong one.

Use the following script to fix this:

#!/bin/bash
@linderd
linderd / README.md
Last active July 11, 2024 01:38 — forked from timlinux/README.md
Linux on Thinkpad P14s Gen2 AMD / T14 Gen2 AMD

Linux (Fedora 35) on a Thinkpad P14s [T14] Gen2 AMD

These are my installation-tricks and notes for running Linux on a 2021 Thinkpad P14s Gen2 with AMD Ryzen 7 5850U. It should also be suitable for the Thinkpad T14 Gen2 AMD as they are technically the same modell.
Meanwhile there is also a good test on youtube and an entry in the arch-wiki, which also comments some points mentioned here.

Detailed specs

Shipped:

@AhsanAyaz
AhsanAyaz / angular-travis-ci.yml
Last active January 3, 2020 00:20
Sample TravisCI Yaml file for Angular Project
language: node_js
node_js:
- "7"
sudo: true
dist: trusty
branches:
only:
- master
@OdinsPlasmaRifle
OdinsPlasmaRifle / arch_linux_installation.md
Last active September 4, 2024 19:49
LVM on LUKS Arch installation with systemd-boot
@joshschmelzle
joshschmelzle / ffmpeg-cut-out-video.cmd
Created November 29, 2016 18:17
Cut a video without re-encoding with ffmpeg
ffmpeg -i input.mp4 -c copy -ss 00:04:25.000 -to 00:09:25.000 output.mp4
@yuvadm
yuvadm / ffmpeg-over-ssh.sh
Created February 7, 2016 23:10
Media stream pipe ffmpeg over SSH
ssh user@example.com "ffmpeg -i $URL -c copy -f nut pipe:1" | ffplay -i pipe:0

Angular2 + JSPM cheat sheet

First time setup

  • install jspm beta: npm install -g jspm@beta
  • set up your project: jspm init
  • install dependencies: jspm install angular2 reflect-metadata zone.js es6-shim

This will create a jspm_packages folder, and a config.js file.

Open the config.js file - this file manages options for the System.js loader - tweak it as appropriate

@stevejenkins
stevejenkins / opendmarc-send-multi-reports.sh
Last active January 24, 2018 04:54
Remote processing of multiple mail server's OpenDMARC history files
#!/bin/bash
# Script for remote processing of multiple mail server's OpenDMARC history files
# Based on a script from Hamzah Khan (http://blog.hamzahkhan.com/)
set -e
cd /tmp
# Remote Hosts, Database, and History File Info
HOSTS='mx1.example.com mx2.example.com mx3.example.com'
@staltz
staltz / introrx.md
Last active September 20, 2024 10:10
The introduction to Reactive Programming you've been missing
@remino
remino / Gemfile
Created January 9, 2014 18:01
kramdown-rails: Use Kramdown (Markdown) in Rails 4
# Gemfile
gem 'kramdown'