Skip to content

Instantly share code, notes, and snippets.

View tazjin's full-sized avatar
🥝
computers

tazjin

🥝
computers
View GitHub Profile
@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;
[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
config :logger,
backends: [:console],
level: :debug,
format: "$time $metadata[$level] $levelpad$message"
@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().
@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 / 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]
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?
OJOJOJOJOJOJOJOJOJOJO OJOJOJOJOJOJOJOJOJOJO
OJOJOJOJOJOJOJOJOJOJO OJOJOJOJOJOJOJOJOJOJO
OJOJOJ OJOJOJ OJOJOJ
OJOJOJ OJOJOJ OJOJOJ
OJOJOJ OJOJOJ OJOJOJ
OJOJOJ OJOJOJ OJOJOJ
OJOJOJ OJOJOJ OJOJOJ
OJOJOJ OJOJOJ OJOJOJ
OJOJOJ OJOJOJ OJOJOJ
OJOJOJ OJOJOJ OJOJOJ
@tazjin
tazjin / 00-keyboard.conf
Created August 6, 2015 11:37
X.org config
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "se"
Option "XkbModel" "pc105"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.0.2-1-ARCH (builduser@tobias) (gcc version 5.1.0 (GCC) ) #1 SMP PREEMPT Thu May 7 06:47:54 CEST 2015
[ 0.000000] Command line: initrd=\initramfs-linux.img cryptdevice=UUID=b484cf1e-a27b-4785-8bd6-fa85a004b073:stallo root=UUID=d01950ec-8d8b-447e-b9cb-509d8d7e8ba0
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000059000-0x000000000009efff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009f000-0x000000000009ffff] reserved