Skip to content

Instantly share code, notes, and snippets.

View taskinen's full-sized avatar
🌧️
Edit status.

Timo Taskinen taskinen

🌧️
Edit status.
  • DevOps at NorthCode.fi
  • Tampere, Finland.
  • 17:24 (UTC +03:00)
View GitHub Profile
##
## Arch Linux repository mirrorlist
## Generated on 2019-04-18
##
## Finland
#Server = https://mirror.pseudoform.org/$repo/os/$arch
#Server = https://mirror.srv.fail/archlinux/$repo/os/$arch
#!/bin/bash
if [ `whoami` != "root" ]
then
echo "This script must be run as root"
exit 1
fi
if [ "x${1}x" == "xx" ]
then
module Fluent
class GELFOutput < BufferedOutput
Plugin.register_output("gelf", self)
config_param :use_record_host, :bool, :default => false
config_param :add_msec_time, :bool, :default => false
config_param :host, :string, :default => nil
config_param :port, :integer, :default => 12201
@taskinen
taskinen / docker-graylog.sh
Last active February 1, 2017 15:10
Docker logging into Graylog
#!/bin/sh
set -euo pipefail
persist_journald() {
# Make journald (systemd logging) persist logs into /var/log/journal
mkdir /var/log/journal
mkdir /etc/systemd/journald.conf.d/
echo "[Journal]" > /etc/systemd/journald.conf.d/storage.conf
echo "storage=persistent" >> /etc/systemd/journald.conf.d/storage.conf
}
@taskinen
taskinen / keybase.md
Created October 5, 2016 17:32
Keybase.io identity proof

Keybase proof

I hereby claim:

  • I am taskinen on github.
  • I am taskinen (https://keybase.io/taskinen) on keybase.
  • I have a public key whose fingerprint is E93D 9C27 A893 3FB6 7698 DFA8 5542 CE0B 8404 F765

To claim this, I am signing this object:

@taskinen
taskinen / vps_iops.md
Last active March 15, 2019 23:14
VPS provider IOPS comparison

I/O operations per second comparison

Local Intel SSD DC S3510 240GB via SATA3

/dev/sda, 240.06 G, sectorsize=4096B, #threads=32, pattern=random:
 512  B blocks: 45273.6 IO/s,  23.2 MB/s (185.4 Mbit/s)
   1 kB blocks: 43169.2 IO/s,  44.2 MB/s (353.6 Mbit/s)
   2 kB blocks: 49025.4 IO/s, 100.4 MB/s (803.2 Mbit/s)
   4 kB blocks: 45788.9 IO/s, 187.6 MB/s (  1.5 Gbit/s)