Skip to content

Instantly share code, notes, and snippets.

@chihchun
chihchun / shstk-focal-lxdimage.txt
Last active Apr 27, 2020
Libraries that are missing SHSTK in the Ubuntu 20.04
View shstk-focal-lxdimage.txt
libargon2-1:amd64: /usr/lib/x86_64-linux-gnu/libargon2.so.1
libcanberra0:amd64: /usr/lib/x86_64-linux-gnu/libcanberra.so.0.2.5
libcbor0.6:amd64: /usr/lib/x86_64-linux-gnu/libcbor.so.0.6.0
libeatmydata1:amd64: /usr/lib/x86_64-linux-gnu/libeatmydata.so.1.1.2
libeatmydata1:amd64: /usr/lib/x86_64-linux-gnu/libeatmydata.so.1.1.2
libefiboot1:amd64: /usr/lib/x86_64-linux-gnu/libefiboot.so.1.37
libefivar1:amd64: /usr/lib/x86_64-linux-gnu/libefivar.so.1.37
libestr0:amd64: /usr/lib/x86_64-linux-gnu/libestr.so.0.0.0
libfastjson4:amd64: /usr/lib/x86_64-linux-gnu/libfastjson.so.4.2.0
libffi7:amd64: /usr/lib/x86_64-linux-gnu/libffi.so.7.1.0
View -
diff --git a/Dell/recovery_backend.py b/Dell/recovery_backend.py
index bd5161d..f32abad 100644
--- a/Dell/recovery_backend.py
+++ b/Dell/recovery_backend.py
@@ -43,7 +43,7 @@ from Dell.recovery_common import (DOMAIN, LOCALEDIR,
walk_cleanup, create_new_uuid, white_tree,
black_tree, fetch_output, check_version,
DBUS_BUS_NAME, DBUS_INTERFACE_NAME,
- RestoreFailed, CreateFailed, find_partition,
+ RestoreFailed, CreateFailed,
View zsync.sh
#!/bin/bash
# set -x
if [ -z $1 ] ; then
echo "Usage: $0 url_of_zsync"
exit -1
fi
cd $(dirname $0)
View stats
turbostat version 18.07.27 - Len Brown <lenb@kernel.org>
CPUID(0): GenuineIntel 0x1b CPUID levels; 0x80000008 xlevels; family:model:stepping 0x6:7e:5 (6:126:5)
CPUID(1): SSE3 MONITOR - EIST TM2 TSC MSR ACPI-TM HT TM
CPUID(6): APERF, TURBO, DTS, PTM, HWP, No-HWPnotify, HWPwindow, HWPepp, HWPpkg, EPB
cpu2: MSR_IA32_MISC_ENABLE: 0x00850089 (TCC EIST MWAIT PREFETCH TURBO)
CPUID(7): SGX
cpu2: MSR_IA32_FEATURE_CONTROL: 0x00020005 (Locked )
CPUID(0x15): eax_crystal: 2 ebx_tsc: 78 ecx_crystal_hz: 38400000
TSC: 1497 MHz (38400000 Hz * 78 / 2 / 1000000)
CPUID(0x16): base_mhz: 1500 max_mhz: 3900 bus_mhz: 100
View checkout-lyoncore.sh
#!/bin/bash
repos="
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/dockers-for-somerville
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/image-build
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/jenkins-jobs
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/oem-credential
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/oem-kpitool
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/oem-release
View gist:ab75608ffb5e064775902d10733617dc
request: (GET /18/219568/112242.png)@654398100 org.eclipse.jetty.server.Request@27015294
Sep 27, 2019 3:03:14 PM org.mapsforge.map.layer.renderer.DatabaseRenderer executeJob
SEVERE: Error to retrieve render theme from future
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: invalid key: compartment
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.mapsforge.map.layer.renderer.DatabaseRenderer.executeJob(DatabaseRenderer.java:124)
at MapsforgeHandler.handle(MapsforgeHandler.java:223)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:497)
View gist:24eede0aee09b7ca193232c4df86a04e
% wget http://moi.kcwu.csie.org/taiwan_topo.html
--2019-09-14 10:01:59-- http://moi.kcwu.csie.org/taiwan_topo.html
Resolving moi.kcwu.csie.org (moi.kcwu.csie.org)... 122.116.129.237
Connecting to moi.kcwu.csie.org (moi.kcwu.csie.org)|122.116.129.237|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 54671 (53K) [text/html]
Saving to: ‘taiwan_topo.html’
taiwan_topo.html 100%[=====================================================================================================================>] 53.39K --.-KB/s in 0.01s
View 0001-clipoboard-preferred-to-copy-absolute-link.txt
View odm-test.py
from apport.hookutils import *
from glob import glob
from io import BytesIO
import zipfile
from problem_report import CompressedValue
description = 'ODM testing'
View export.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.