Skip to content

Instantly share code, notes, and snippets.

Working on

Marcel Schramm Bios-Marcel

Working on
Block or report user

Report or block Bios-Marcel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

**```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 / rgb-to-hsl.go
Created Jun 23, 2019
Little RGB to HSL converter I wrote just to see how hard it would be.
View rgb-to-hsl.go
package main
import (
Bios-Marcel /
Last active Jun 9, 2019
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.


  • What is operational security
  • Why is this important
  • How to maintain OpSec
    • Behaving correctly
View config
# i3 config file (v4)
# Please see 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 /
Created Nov 26, 2018
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


Bios-Marcel / pkginfo.go
Created Oct 12, 2018
Add to all folders containing .java files
View pkginfo.go
package main
import (
View popupstandalone.kt
fun main(arguments: Array<String>) {
class App : Application() {
override fun start(primaryStage: Stage) {
primaryStage.title = "Popup Example"
primaryStage.opacity = 0.0
Bios-Marcel /
Created Jul 30, 2018
Creating a Frame that stays in the background (Swing only)
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.JPanel;
import javax.swing.JWindow;
public class SturdyWindow
public static void main( final String[] args )
Bios-Marcel /
Last active Jul 23, 2018
function that adds the capability to go back to any directory named X using cd. Just put it into ~/.bashrc
function cdb() {
#suppress all output and run the original cd with all given arguments
command cd $@ &>/dev/null
#If the original ran successfully, do an early exit
if [ $? -eq 0 ]; then
You can’t perform that action at this time.