Skip to content

Instantly share code, notes, and snippets.

View Bios-Marcel's full-sized avatar
:shipit:
I am busy abandoning projects

Marcel Schramm Bios-Marcel

:shipit:
I am busy abandoning projects
View GitHub Profile
@Bios-Marcel
Bios-Marcel / gnome.md
Created March 27, 2024 14:22
Accidentally uninstalled GNOME on Fedora 39

I am currently using sway. Before doing system updates I thought "meh, let's yank GNOME".

This uninstalled GDM too, which I didn't know at the point. After a reboot, I just had a tty. Additionally, this also doesn't start NetworkManager, meaning you won't have an internet connection.

To solve it, I did the following:

Networking

@Bios-Marcel
Bios-Marcel / mp3-chapters.md
Created May 10, 2020 16:13
Exporting Audacity labels to ID3v2+ chapter marks
@Bios-Marcel
Bios-Marcel / malphite.json
Last active December 21, 2020 18:07
Malphite AP/CDR item set
{
"title": "Malphite",
"associatedMaps": [
11,
12
],
"associatedChampions": [
54
],
"blocks": [
@Bios-Marcel
Bios-Marcel / gist:7050ab0ea3efd508bfab23186c413b4c
Last active November 8, 2020 14:54
SEO Knowledge collected
## Technical stuff
* Properly configured robots.txt
* Don't disallow too much, only what would really drag down your ranking!
> Example:
> ```
> User-agent: *
> Disallow /admin
> ```
* Well structured pages, e.g. put things in the correct places and use semantic elements where possible.
@Bios-Marcel
Bios-Marcel / ExampleMirroredTables.java
Created June 4, 2020 13:51
Swing Synchronized Tables
import java.awt.BorderLayout;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.RowFilter;
{
"homepage": "https://github.com/Bios-Marcel/cordless",
"description": "A third party discord client alternative.",
"license": "BSD-3-Clause",
"version": "$RELEASE_DATE",
"architecture": {
"64bit": {
"url": "https://github.com/Bios-Marcel/cordless/releases/download/$RELEASE_DATE/cordless_64.exe",
"bin": [ ["cordless_64.exe", "cordless.exe"] ],
"hash": "${EXE_64_HASH}"
/**
* © 2019 isp-insoft GmbH
*/
public class Main
{
public static void main( String[] args ) throws Exception
{
//Most epic Hello World ever! \u000ASystem.out.println( "Hello" );
System.out.println( "World" );
[Code]
function PrepareToInstall(var NeedsRestart: Boolean): String;
var
FileResult: TFindRec;
AppDir: string;
begin
if FindFirst(ExpandConstant('{app}\'), FileResult) then
begin
try
repeat

**```go for _, urlMatch := range urlMatches { newURL := urlMatch[1] + urlMatch[2] if len(urlMatch) == 5 || (len(urlMatch) == 4 && len(urlMatch[3]) > 1) { newURL = newURL + urlMatch[3] } if (len(urlMatch[2]) + 35) < len(newURL) { newURL = fmt.Sprintf("(%s) ** %s", urlMatch[2], chatView.shortener.Shorten(newURL)) } if len(urlMatch) == 5 {

@Bios-Marcel
Bios-Marcel / rgb-to-hsl.go
Created June 23, 2019 16:59
Little RGB to HSL converter I wrote just to see how hard it would be.
package main
import (
"flag"
"fmt"
"math"
"strconv"
"strings"
)