Skip to content

Instantly share code, notes, and snippets.

View vorburger's full-sized avatar
💭
I may be slow to respond.

Michael Vorburger vorburger

💭
I may be slow to respond.
View GitHub Profile
@chrische
chrische / notes-00-lenovo-thinkvision-p44w-10-linux-update.md
Last active June 7, 2023 10:45
How to update Lenovo ThinkVision P44w-10 to the newest firmware under Linux

The Situation

Connecting a ThinkPad X1 Carbon 7th Generation with a ThinkVision P44w-10 monitor via USB-C on both ends creates power delivery and screen blanking issues. According to Lenovo's support website this issue affects "some ThinkPads including X1 and X1 Yoga and other notebooks by USB Type C" and "P44w-10 and Y44w-10 monitors". Furthermore, it does not need to be applied to monitors manufactured after December 1st 2020. In case the monitor's firmware is below version LT1.5, it is recommended to be updated first. Lenovo published instructions on how to update the monitor on Windows, using WinISP. However, there does not seem to be an applicable guide for Linux yet.

This document is work in progress. Executing the following commands may damage your hardware and/or leave it in an undefined state. The author is not liable for any damage done.

$ dmesg
@thesmallstar
thesmallstar / GSoC2020@Apache.md
Last active March 11, 2023 17:20
GSoC 2020 at Apache Final Report!

Google Summer of Code 2020 Final Report

1_pOBGFa_k7RN24LlnKcvE6Q (1)

Fineract is definately more Robust now! before you read the work report, I want to thank my mentors who have been supportive, helped me with more than just "code", the Mifos community also played a important role and motivated me with weekly interactive sessions. This was a great experience!

Project Summary

  • Added 50+ Checkstyles to the code
@lukas-h
lukas-h / license-badges.md
Last active September 9, 2024 08:57
Lizenz-Buttons für dein Projekt

Markdown Lizenz-Buttons

Sammlung von Lizenz-Schildern (Badges) für die README-Datei deines Projekts. Diese Liste enthält die meist verbreiteten Open Source und Open Data Lizenzen. Kopieren und fügen Sie den Code unter den Badges einfach in Ihre Markdown-Dateien ein.

Notes

@181192
181192 / increase_root_fedora.md
Last active October 19, 2024 15:43
How to increase the root partition size on Fedora

How to increase the root partition size on Fedora

Boot up with an Fedora Live USB stick.

  1. Run vgs to check if there's any space:
$ sudo vgs
  VG     #PV #LV #SN Attr   VSize    VFree
  fedora   1   3   0 wz--n- <237.28g    0 
@apangin
apangin / HotSpot JVM intrinsics
Last active October 29, 2024 15:13
HotSpot JVM intrinsics
_hashCode java/lang/Object.hashCode()I
_getClass java/lang/Object.getClass()Ljava/lang/Class;
_clone java/lang/Object.clone()Ljava/lang/Object;
_dabs java/lang/Math.abs(D)D
_dsin java/lang/Math.sin(D)D
_dcos java/lang/Math.cos(D)D
_dtan java/lang/Math.tan(D)D
_datan2 java/lang/Math.atan2(DD)D
_dsqrt java/lang/Math.sqrt(D)D
_dlog java/lang/Math.log(D)D
public class EZMap<T> {
public static void main(String[] args) {
Map<String,Object> m = hashMap(
bob -> 5,
TheGimp -> 8,
incredibleKoolAid -> "James Taylor",
heyArnold -> new Date()
);
System.out.println(m);
}
@aslakhellesoy
aslakhellesoy / gfm.sh
Last active November 23, 2016 09:57
Compile and show GFM docs in your browser.https://help.github.com/articles/github-flavored-markdown
#!/bin/sh
# Compile and show [GFM](https://help.github.com/articles/github-flavored-markdown) docs in your browser.
# Before this works you need to `gem install bcat`
#
# Usage: gfm.sh FILE.md
#
curl --silent --data-binary @- https://api.github.com/markdown/raw -H "Content-Type: text/plain" | bcat
#!/bin/sh
# simple script for turning a jar with a Main-Class
# into a stand alone executable
# cat [your jar file] >> [this file]
# then chmod +x [this file]
# you can now exec [this file]
commandToRun="$(printf "%q " "$@")"
if test "$commandToRun" = "'' "; then
eval "exec java -Xmx1G -jar $0"
else
@nightscape
nightscape / Json.xtext
Last active December 27, 2022 10:30
Xtext grammar for JSON documents
grammar org.json.Json with org.eclipse.xtext.common.Terminals
generate json "http://www.json.org/"
Object:
'{' ((members+=Member) (',' members+=Member)*)? '}';
Member:
key=STRING ':' value=Value;