Skip to content

Instantly share code, notes, and snippets.

View bugabinga's full-sized avatar
♨️
Working hard.

Oliver Jan Krylow bugabinga

♨️
Working hard.
View GitHub Profile
package game;
import game.java.controller.MasterController;
import game.java.model.Model;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
@bugabinga
bugabinga / pass_to_bitwarden.sh
Last active November 20, 2017 20:21
This bash script converts simple pass files to bitwarden. Check the comments to understand what "simple" means ;)
#!/usr/bin/env bash
function pass_to_bitwarden(){
local path_to_pass="$1"
local output_path="$2"
#echo "searching path $path_to_pass for simple logins"
local url
local username
local decrypted_stuff
local password
local notes

Keybase proof

I hereby claim:

  • I am bugabinga on github.
  • I am bugabinga (https://keybase.io/bugabinga) on keybase.
  • I have a public key ASCxNxv48wvhvtEld7MnXge-ZoOdomTPhX0GlW3bOfp7Lgo

To claim this, I am signing this object:

@bugabinga
bugabinga / array.xml
Created March 13, 2017 19:33
strings.xml translation shared with Stringlate
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string-array name="updateIntervalNames">
<item>@string/interval_never</item>
<item>@string/interval_1h</item>
<item>@string/interval_4h</item>
<item>@string/interval_12h</item>
<item>@string/interval_1d</item>
<item>@string/interval_1w</item>
<item>@string/interval_2w</item>
package com.isp.stackoverflow;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Slider;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
import javafx.util.StringConverter;
package com.isp.stackoverflow;
import static java.util.stream.IntStream.concat;
import static java.util.stream.IntStream.rangeClosed;
import static javafx.geometry.Orientation.HORIZONTAL;
import java.awt.AWTException;
import java.awt.Dimension;
import java.awt.Robot;
package com.isp.stackoverflow;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadLocalRandom;
import javafx.application.Application;
@bugabinga
bugabinga / reduce_profiles.py
Created March 14, 2016 20:55
Obscure gentoo utility script to merge files of profiles into one each. Useful if trying to combine different gentoo profiles.
#!/usr/bin/env python
# Reduces gentoos portage configuration, found in profiles, files into single respective config files.
import sys
import argparse
import subprocess
import re
import os.path
base_path = "/usr/portage/profiles/"
package com.isp.stackoverflow;
import java.util.Arrays;
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.scene.Scene;
import javafx.scene.control.ChoiceBox;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.GridPane;
@bugabinga
bugabinga / ReloadApp.java
Created March 8, 2016 09:01
Restarting a JavaFx App (probably unsafe)
package com.isp.stackoverflow;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
/**