Skip to content

Instantly share code, notes, and snippets.

View Eeemil's full-sized avatar
Hello world

Emil Marklund Eeemil

Hello world
  • Sweden
  • 20:39 (UTC -12:00)
View GitHub Profile
Eeemil /
Created March 4, 2019 13:53
Script to use in probes in Kubernetes to determine that a health file is modified within the last minute
# Returns 0 if health file has been modified within the last minute
# Otherwise return non-zero
# Usage: ./ [health-file]
test $(find ${HEALTH_FILE} -mmin -1)
exit $?
public class Main {
public static void main(String[] args) throws InterruptedException {
public class Main {
public static void main(String[] args) {
// write your code here
public static void fizzBuzz(int i){
System.out.println(i++); // 1
Eeemil / metro configs
Created March 8, 2015 16:17
Changes in config file for the game metro 2033 on Linux, from an old version to a new version
## About
I have had problems running the game Metro 2033 on Linux. An old installation created a file (user.cfg) and the game was unplayable. After renaming my user.cfg's (there are two of them) a new, very different, config file was generated.
For example, in my old config there were multiple references to physX, which is nVidia technology. I am using two AMD cards in crossfire, so physX won't work for me.
I am posting this file for this thread:
## New config
Eeemil / _config.yml
Last active July 10, 2022 16:40
Jekyll - adding edit on GitHub button to your site
# Site settings
title: Emil Marklund's blog of digital magics
description: >
A blog on programming, GNU Linux/Unix and other things I might find interesting.
I like to learn and teach and writing about what I learn is a great way to do both.
This blog is running Jekyll
baseurl: "" # the subpath of your site, e.g. /blog/
url: "" # the base hostname & protocol for your site
twitter_username: eeemil_