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 / oop-at-its-best.md
Created November 26, 2018 10:19
Object orientation at its best

Today at work, I found a class with the following hierarchy:

TreeTable extends SortableTable extends CategorizedTable extends CellSpanTable extends CellStyleTable
extends NavigableTable extends ContextSensitiveTable extends JideTable extends JTable extends JComponent
extends Container extends Component

Amusing!

@Bios-Marcel
Bios-Marcel / config
Created January 9, 2019 08:44
i3 config
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Windows / Command key as modifier
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:FontAwesome 9
@Bios-Marcel
Bios-Marcel / opsec.md
Last active June 9, 2019 19:41
My document regarding OpSec

OpSec - The definitive guide

Hello there fella. I have written this guide in order to help you, who might be my future self, to maintain operational security while searching for security vulnerabilities and whatever not.

Contents

  • What is operational security
  • Why is this important
  • How to maintain OpSec
  • Behaving correctly
@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"
)

**```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 {

/**
* © 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
{
"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}"
@Bios-Marcel
Bios-Marcel / mp3-chapters.md
Created May 10, 2020 16:13
Exporting Audacity labels to ID3v2+ chapter marks