Skip to content

Instantly share code, notes, and snippets.

View Eeemil's full-sized avatar
:octocat:
Hello world

Emil Marklund Eeemil

:octocat:
Hello world
  • Sweden
  • 20:39 (UTC -12:00)
View GitHub Profile
@Eeemil
Eeemil / probe.sh
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
#!/bin/sh
# Returns 0 if health file has been modified within the last minute
# Otherwise return non-zero
# Usage: ./probe.sh [health-file]
HEALTH_FILE=${1:-"/opt/app/alive.txt"}
test $(find ${HEALTH_FILE} -mmin -1)
exit $?
public class Main {
public static void main(String[] args) throws InterruptedException {
number(1);
number(2);
word("Fizz");
number(4);
word("Buzz");
word("Fizz");
number(7);
public class Main {
public static void main(String[] args) {
// write your code here
fizzBuzz(1);
}
public static void fizzBuzz(int i){
System.out.println(i++); // 1
@Eeemil
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:
http://steamcommunity.com/app/286690/discussions/1/619573787393136523
## New config
@Eeemil
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
email: eeemil@acc.umu.se
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: "http://eeemil.se" # the base hostname & protocol for your site
twitter_username: eeemil_