Skip to content

Instantly share code, notes, and snippets.

View joar's full-sized avatar
:bowtie:
Not wearing a bowtie

Joar Wandborg joar

:bowtie:
Not wearing a bowtie
View GitHub Profile
map_values(. = {"ios-apps"})
| map_values(map_values(map_values(.enabled)) | all)
| keys
{
"al": {
"books": {
"top-paid": {
"enabled": false
},
"top-free": {
"enabled": true
}
},
orcaFeedsId = {
al: {
books: { "top-paid": { enabled: false }, "top-free": { enabled: true } },
"ios-apps": {
"new-apps-we-love": {
enabled: true,
id: "1153619874",
"media-id": "1153619874"
},
"new-games-we-love": {
orcaFeedsId = {
al: {
books: { "top-paid": { enabled: false }, "top-free": { enabled: true } },
"ios-apps": {
"new-apps-we-love": {
enabled: true,
id: "1153619874",
"media-id": "1153619874"
},
"new-games-we-love": {
/*!
* jQuery JavaScript Library v2.1.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
@joar
joar / du-diff.sh
Last active May 17, 2017 08:28
Diff continuously over du output
#/bin/bash
#
# Usage: du-diff.sh DU_ARGS
PREVIOUS=$(mktemp -t du-diff.prev.XXXXX.txt)
CURRENT=$(mktemp -t du-diff.curr.XXXXX.txt)
echo prev: $PREVIOUS current: $CURRENT > /dev/stderr
INTERVAL=${DU_DIFF_INTERVAL:-1}
@joar
joar / for..else does not work with generators.ipynb
Last active September 29, 2016 18:03
for..else does not work with generators
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joar
joar / -
Created September 21, 2016 16:43
diff --git a/packages-before.txt b/packages-after.txt
index c0a0f21..2b33dd0 100644
--- a/packages-before.txt
+++ b/packages-after.txt
@@ -335,6 +335,7 @@ ii gir1.2-ibus-1.0:amd64 1.5.11-1ubuntu2
ii gir1.2-javascriptcoregtk-4.0:amd64 2.12.5-0ubuntu0.16.04.1 amd64 JavaScript engine library from WebKitGTK+ - GObject introspection data
ii gir1.2-json-1.0:amd64 1.1.2-0ubuntu1 amd64 GLib JSON manipulation library (introspection data)
ii gir1.2-mediaart-2.0:amd64 1.9.0-2 amd64 GObject introspection data for MediaArt library
+ii gir1.2-modemmanager-1.0:amd64 1.6.0-1 amd64 GObject introspection data for modemmanager
ii gir1.2-mutter-3.0 3.18.3-0ubuntu2
@joar
joar / sierra-em7455.md
Last active October 31, 2017 14:58
Sierra EM7455

The final part of the EM7455 Linux driver support is going in Linux v4.7 which will be released in a couple of weeks. It will also be backported to the currently maintained stable kernels, so you should eventually get it through Ubuntu kernel updates.

Sorry it took this long. In theory, any MBIM modem should just work with the existing Linux drivers. But it turned out that the EM7455 needed a small delay during initialization, or it would silently fail to work. The "fix" is a single line of code:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/net/usb/cdc_ncm.c?id=c086e7096170390594c425114d98172bc9aceb8a

>

Me:

I'm missing the 4G connection details in order to set up my Lenovo Connect SIM on Linux.

I discovered that I can't find the APN used by Lenovo Connect anywhere.

Lenovo Connect

Hi Joar,

Thank you for your email.