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
import Data.Numbers.Primes | |
second = 1 | |
minute = 60*second | |
hour = 60*minute | |
day = 1444*minute | |
month = 30*day | |
year = 12*month | |
daysPerXKCDYear = 30*12 |
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
import Data.Numbers.Primes | |
second = 1 | |
minute = 60*second | |
hour = 60*minute | |
day = 1444*minute | |
month = 30*day | |
year = 12*month | |
daysPerXKCDYear = 30*12 |
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
[root@jolt clockfort]# smartctl --all /dev/sdg | grep "Device Model" | |
Device Model: ST3000DM001-9YN166 | |
[root@jolt clockfort]# smartctl --all /dev/sda | grep "Device Model" | |
Device Model: ST3000DM001-9YN166 | |
[root@jolt clockfort]# smartctl --all /dev/sda | grep Capacity | |
User Capacity: 3,000,592,982,016 bytes | |
[root@jolt clockfort]# smartctl --all /dev/sdg | grep Capacity | |
User Capacity: 3,000,592,982,016 bytes | |
[root@jolt clockfort]# cat /proc/mdstat | |
Personalities : [raid1] [raid6] [raid5] [raid4] |
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
[Prelude] λ> import Data.Char | |
[Prelude Data.Char] λ> let fibs = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233] | |
[Prelude Data.Char] λ> let mystery = [6, 9, 4, 45, 70, 8, 39, 63, 306 ] | |
[Prelude Data.Char] λ> map (chr . (+64) . fromInteger) $ zipWith (div) mystery fibs | |
"FIBONACCI" |
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
Prelude> sum $ map (\n -> n*n) [1..1024*1024*10] | |
384307223177865461760 | |
it :: Integer | |
(5.20 secs, 3756611120 bytes) | |
Prelude> sum $ map (\n -> n**2) [1..1024*1024*10] | |
3.843072231783101e20 | |
it :: Double | |
(5.65 secs, 3960924248 bytes) | |
Prelude> sum $ map (\n -> n^2) [1..1024*1024*10] | |
384307223177865461760 |
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
4+0 records out | |
33554432 bytes (34 MB) copied, 815.963 s, 41.1 kB/s | |
4+0 records in | |
4+0 records out | |
33554432 bytes (34 MB) copied, 795.58 s, 42.2 kB/s | |
4+0 records in | |
4+0 records out | |
33554432 bytes (34 MB) copied, 829.277 s, 40.5 kB/s | |
4+0 records in | |
4+0 records out |
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
root@jolt ~# btrfs fi df /mnt/clockfort | |
Data: total=6.34TB, used=6.34TB | |
System, DUP: total=32.00MB, used=768.00KB | |
System: total=4.00MB, used=0.00 | |
Metadata, DUP: total=38.00GB, used=14.75GB | |
root@jolt ~# btrfs fi resize max /mnt/clockfort/ && dmesg | tail -n 1 | |
Resize '/mnt/clockfort/' of 'max' | |
btrfs: new size for /dev/mapper/vg_raid6_array-lv_clockfort is 8796093022208 |
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
clockfort@jolt ~$ btrfs filesystem df /mnt/clockfort/ | |
Data: total=6.24TB, used=6.05TB | |
System, DUP: total=32.00MB, used=736.00KB | |
System: total=4.00MB, used=0.00 | |
Metadata, DUP: total=30.00GB, used=13.83GB | |
clockfort@jolt ~$ df -h /mnt/clockfort/ | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/mapper/vg_raid6_array-lv_clockfort | |
9.0T 6.1T 910G 88% /mnt/clockfort |
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
clockfort@clockfort-linux:~$ minions db date | |
root@db1: Mon Sep 16 18:01:43 UTC 2013 | |
root@db3: Mon Sep 16 18:01:46 UTC 2013 | |
root@db4: Mon Sep 16 18:01:46 UTC 2013 | |
root@db2: Mon Sep 16 18:01:46 UTC 2013 | |
clockfort@clockfort-linux:~$ ssh root@db1 /etc/init.d/ntpd status | |
ntpd (pid 3018) is running... | |
clockfort@clockfort-linux:~$ minions db date |
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
package com.clockfort; | |
import com.google.common.base.Joiner; | |
import java.io.BufferedWriter; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
OlderNewer