Skip to content

Instantly share code, notes, and snippets.

(ns pyppejson.core
(:require [cheshire.core :refer :all])
(:gen-class))
(def user-paths
[[:user]
[:retweeted_status :user]
[:retweeted_status :quoted_status :user]
[:quoted_status :user]])

Everything works with 3.13.0-61 kernel, but fails with 3.13.0-63 kernel. The kernel versions 3.13.0-65 and 3.13.0-66 are also tested to fail, so there is clearly a regression between 3.13.0-61 and 3.13.0-63 builds. With 3.13.0-63 and later both SD card reader and Ethernet device are missing, both are produced by JMicron Technology Corp. so this might have to do with JMicron drivers being broken.

This kind of regressions in a stable LTS release are quite unacceptable and should be fixed. Now even installing kernel security upgrades makes me extremely worried, since the server is not in the same physical space with me and fixing kernel problems is not straightforward.

@juhovh
juhovh / README.md
Created November 20, 2015 07:18
Latest Ubuntu 14.04 kernel breaks on Shuttle Barebone XS35

Everything works with 3.13.0-61 kernel, but fails with 3.13.0-63 kernel. The kernel versions 3.13.0-65 and 3.13.0-66 are also tested to fail, so there is clearly a regression between 3.13.0-61 and 3.13.0-63 builds. With 3.13.0-63 and later both SD card reader and Ethernet device are missing, both are produced by JMicron Technology Corp. so this might have to do with JMicron drivers being broken.

This kind of regressions in a stable LTS release are quite unacceptable and should be fixed. Now even installing kernel security upgrades makes me extremely worried, since the server is not in the same physical space with me and fixing kernel problems is not straightforward. The hardware used is the same as on http://us.shuttle.com/barebone/Models/XS35.html website.

@juhovh
juhovh / trans-siberia.txt
Last active December 16, 2017 16:54
Some rough plan for Trans-Siberian train
Some basic info:
- Russian trains always run in Moscow time, that's why Moscow time is mentioned
- The track gauge is different in Mongolia and China, so there's always a stop on Chinese border
- We should try to have a get together in Beijing between July 1st and July 16th (Victorian school holidays),
it's a good time as well since end of June should be comfortable weather to travel in Siberia and there's
already more trains than usual.
- There is no time difference between most of Mongolia and Beijing, Irkutsk is one hour ahead of China which
is a bit awkward
Moscow - Irkutsk
@juhovh
juhovh / mroom.py
Last active November 21, 2017 07:39
MRoom queue status fetcher
import sys
import json
from time import sleep
try:
# For Python 3.0 and later
from urllib.request import urlopen, Request
from urllib.error import HTTPError
except ImportError:
from urllib2 import urlopen, Request, HTTPError
@juhovh
juhovh / decompress.py
Created April 20, 2020 14:53
Decompress WeChat weapp binary file bundles (after zstd decompression)
# Decompress WeChat weapp binary file bundles (after zstd decompression)
import os
import sys
import struct
import errno
HEADER_LEN = 14
if (len(sys.argv) != 3):
print(f"Usage: {sys.argv[0]} <file.bin> <outputdir>")