I hereby claim:
- I am Plancke on github.
- I am plancke (https://keybase.io/plancke) on keybase.
- I have a public key whose fingerprint is 9B05 5A2D E9CD 1DB8 0D28 1021 C4D3 26D8 4BA9 DC22
To claim this, I am signing this object:
import org.joda.time.Duration; | |
import org.joda.time.PeriodType; | |
public class ChallengeOscillation { | |
private static final String[] ROTOR_DAYS = new String[]{"a", "b","c", "d", "e", "f", "g", "h", "i", "j", "k", "l"}; | |
private static final long EPOCH = 1444536000000L; | |
public static String getOscillation(long time, int offset) { | |
int days = new Duration(EPOCH, time).toPeriod().normalizedStandard(PeriodType.days()).getDays(); | |
return ROTOR_DAYS[(days - offset) % ROTOR_DAYS.length]; |
# Modified from https://gist.github.com/aliang/1024466 | |
# Recursively greps config.d for ssh configs using the | |
# OpenSSH 7.3p1 (https://www.openssh.com/txt/release-7.3) Include directive | |
# Original script didn't do this, hence my modification | |
# I included an exclude for "*.txt" files since I generate my ssh configs using SaltStack | |
# and I move old files to ./old/{DATE}.txt, in case anything goes wrong (salt minion dead, etc) | |
# Feel free to modify this however you see fit of course. |
I hereby claim:
To claim this, I am signing this object: