Skip to content

Instantly share code, notes, and snippets.

View Tombert's full-sized avatar

Thomas Gebert Tombert

View GitHub Profile
@Tombert
Tombert / flake.nix
Created June 16, 2024 18:01
Sonic Robo Blast 2 launcher
{
description = "Launch Sonic Robo Blast 2";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }: let
pkgs = import nixpkgs { system = "x86_64-linux"; };
srb2 = {
{
description = "Launch Blade of Agony";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/867fe984b5299cf855be38ed9feed70a95a22eaf";
};
outputs = { self, nixpkgs, ... }: let
pkgs = import nixpkgs { system = "x86_64-linux"; };
@Tombert
Tombert / configuration.nix
Created June 8, 2024 03:06
My Nixos gamescope setup.
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
This file has been truncated, but you can view the full file.
May 14 00:40:03 chimeraos systemd[731]: Queued start job for default target Main User Target.
May 14 00:40:03 chimeraos systemd[731]: Created slice User Application Slice.
May 14 00:40:03 chimeraos systemd[731]: Created slice User Core Session Slice.
May 14 00:40:03 chimeraos systemd[731]: Reached target Paths.
May 14 00:40:03 chimeraos systemd[731]: Reached target Timers.
May 14 00:40:03 chimeraos systemd[731]: Starting D-Bus User Message Bus Socket...
May 14 00:40:03 chimeraos systemd[731]: Listening on GnuPG network certificate management daemon.
May 14 00:40:03 chimeraos systemd[731]: Listening on GCR ssh-agent wrapper.
May 14 00:40:03 chimeraos systemd[731]: Listening on GNOME Keyring daemon.
May 14 00:40:03 chimeraos systemd[731]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
open System
open Microsoft.Xna.Framework
open Microsoft.Xna.Framework.Input
open Microsoft.Xna.Framework.Graphics
type FNAGame() as self =
(ns homomorph.core
(:gen-class))
(import java.security.SecureRandom)
(defn lcm [a b] (.divide (.multiply a b) (.gcd a b)))
(defn makePublicKey [bits nn]
(let [n (biginteger nn)]
{
:bits (biginteger bits)
:n n
:n2 (.pow n 2)
genomeTypes =
Dict(
[0,0,0,1] => "1",
[0,0,1,0] => "2",
[0,0,1,1] => "3",
[0,1,0,0] => "4",
[0,1,0,1] => "5",
[0,1,1,0] => "6",
@Tombert
Tombert / APIDraft
Created March 7, 2016 05:18
Hello!
This is a basic draft of the API right now.
`GET /events`
[{
"name": "Tombert's Cool Event",
"id":1,
"data":"{
\"date\":\"12-15-2016\",
\"description\":\" Where tomberts come to grow \"
@Tombert
Tombert / randcat.py
Last active February 3, 2016 22:28
RandCat
#! /usr/bin/python3
import calendar
import time
seed = calendar.timegm(time.gmtime()) # We'll use the epoch time as a seed.
def random (seed):
seed2 = (seed*297642 + 83782)/70000
return int(seed2) % 70000;
require 'digest/md5'
def hashKey(key)
md5 = Digest::MD5.hexdigest("bobby"
int_md5 = md5.to_i(16)
return int_md5 % max_length
end