Skip to content

Instantly share code, notes, and snippets.

View tazjin's full-sized avatar
🥝
computers

tazjin

🥝
computers
View GitHub Profile
15:38:33 <tazjin> nice, now people are spamming me with religious stuff because I idle in this channel
15:45:31 <Llama4146> lol asking a question is spamming?
15:46:15 → ibex joined ([email protected])
15:46:33 <Llama4146> all i did was ask you are you 100% sure you would be in heaven if you died today?
15:46:33 <Llama4146> to see if you were going to heaven
15:47:39 <Llama4146> i just wanted to talk, not spam you with youtube or websites
15:49:41 <Earnestly> tazjin: /mode tazjin +R
15:51:05 <GenteelBen> tazjin I've never had anyone spam me in PM due to this channel.
15:51:25 <Earnestly> Yeah, nor me, but still +R will get rid of most of the taff
15:52:06 <GenteelBen> Church of Leonard?
@tazjin
tazjin / gist:156f781e9f0da66f961f
Created September 24, 2015 08:29
SSH public key (MacBook)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1Rr4qzP5sOxQGNZ8tUUMBCsZZXlMs417+vnHDe5Kh/hnYLTIws2gIQBXMUMaE8E6M2yjvg12WZ8uARHOUkzHOzyjrLZFzCv9kRu9TXoeo/dAeNDq3eM0TMNCC1N3UdhHd4wAii3EWHnh5qbHmzEStTRK4wel21c0f/wcCqE76kJUCpbT0Rbre9I2Vs7vBOAexG8sJgX3DwQN32Bi+y8mLNqz8HGZxz4iGg3XfXeiUZ01iBNLSdRw6qEjrkZajq4fmpwUIdXCbTH0g2568Z7gXOqKDAVtdHzIH4y02+nvYqXhKNpAUQd0nKyRuABomCaYuVFxGhmim2s76no9OMjMwLLO+QCKZLYDPcEeJKZg3oMztYDgwuiQH9E95zNPTR/qi/fOAE4IALJq9j+2ceSvBZNPhWPoLUwHsA6TRKxwGelDoXV9RhPoV5rM5/l7/aShKvyos+mpWqm2BR7y7RdtvhrAc/IaEwk5x/VGwjYBGMCbALl3r8mzG9U2yz+y4J4SrJSpm03mEWNo849OOtpRx6KpFUaXy1n6spvk9Ybp3h8TEIyCvQosBf0XeI5mChrvt5nY8d8327KsU473s4MQKdrYRuVk6i1gov5OxRFjljEVcrcFElQYeDjEcSasgG6nJalmSBZPQ/ZnuWeNl2S2sxrue6EDxdiDZbZ4Mahc1ww== [email protected]
@tazjin
tazjin / Main.hs
Created February 6, 2016 19:22
servant-echo
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
module Main where
import Data.Proxy
import Data.Text (Text, empty)
import Network.Wai.Handler.Warp (run)
import Servant
import Servant.Server
@tazjin
tazjin / filetypes.erl
Last active February 11, 2016 00:59
Recognise file types in Erlang
%% Author: Vincent Ambo
%% This code is public domain.
-module(filetypes).
-export([recognise_data/1, recognise_mimetype/1]).
-type filename() :: list().
-type filetype() :: list().
-type mimetype() :: list().
config :logger,
backends: [:console],
level: :debug,
format: "$time $metadata[$level] $levelpad$message"
[Unit]
Description=SSH key agent
[Service]
Type=forking
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target
@tazjin
tazjin / Main.java
Created September 5, 2016 23:54
Playing with Prometheus Java client
import io.prometheus.client.*;
import io.prometheus.client.exporter.common.TextFormat;
import io.prometheus.client.hotspot.DefaultExports;
import spark.Request;
import spark.Response;
import java.io.IOException;
import java.io.StringWriter;
import java.util.Random;
import java.util.function.Consumer;
import java.util.function.Function;
public class $<T> {
final private Function<T, T> f;
public $(Consumer<T> c) {
this.f = apply(c);
}
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
public class $<T> {
final private Function<T, T> f;
public static <T> $<T> $() {
return new $(Function.identity());
}
@tazjin
tazjin / $.java
Last active October 20, 2016 21:05
Don't do this
package com.spookyjava;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Supplier;
public class $<T> {
@FunctionalInterface
interface TriConsumer<A,B,C> {
void consume(A a, B b, C c);