View du-diff.sh
#/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}
View for..else does not work with generators.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View -
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
View sierra-em7455.md

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

View lenovo-connect-linux-support.md

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.

View .block
license: gpl-3.0
height: 960
View microbit-micropython-getting-started.md

Getting Started

  1. pip install uflash pyserial
  2. Connect your MicroBit, make sure you have a microUSB data-capable cable.
  3. uflash - Flashes the MicroPython firmware to the MicroBit.

REPL

  1. Run miniterm.py
  2. Select the port that your microbit is connected to.
View abbrs.fish
# Fish shell abbreviations
abbr tso 'tmux -2 source'
abbr denv 'env | grep DOCKER_'
abbr xsel 'xsel -ib'
abbr ga 'git add'
abbr gaa 'git add -A .'
abbr gco 'git checkout'
abbr gl 'git pull'
abbr gp 'git push'
abbr gd 'git diff'
View fix-1760.sed
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
View Makefile
# Automatically update a gist from a local file
#
# Usage: make FILENAME.gist
%.gist: %
gist $(shell test -e $@ && echo -n '-u ' && cat $@) -p $< | tee $@