This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name brucewillis.sexy; | |
return 301 https://www.brucewillis.sexy$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name brucewillis.sexy www.brucewillis.sexy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'digest/md5' | |
def hashKey(key) | |
md5 = Digest::MD5.hexdigest("bobby" | |
int_md5 = md5.to_i(16) | |
return int_md5 % max_length | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
open Microsoft.Xna.Framework | |
open Microsoft.Xna.Framework.Input | |
open Microsoft.Xna.Framework.Graphics | |
type FNAGame() as self = |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "Launch Blade of Agony"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/867fe984b5299cf855be38ed9feed70a95a22eaf"; | |
}; | |
outputs = { self, nixpkgs, ... }: let | |
pkgs = import nixpkgs { system = "x86_64-linux"; }; |