Skip to content

Instantly share code, notes, and snippets.

@carletes
carletes / gist:a1c2bf92432a6500944a5131f064bbcc
Created June 26, 2023 11:24
nix log /nix/store/irgdrximyp1lzsxwkadiqzwzq40l0ffr-jsonnet-0.20.0.drv
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/pk3qlg69mgr4canq7ad6s24k01m895qc-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@carletes
carletes / ubuntu-12.04-dmesg-original-kernel
Created January 30, 2013 22:39
dmesg of Jay's original kernel on an Acer C7 Chromebook running ChrUbuntu
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.4.0 (jay@cros-build-physical) (gcc version 4.6.x-google 20120301 (prerelease) (gcc-4.6.3_cos_gg_2a32ae6) ) #1 SMP Sun Aug 26 19:17:55 EDT 2012
[ 0.000000] Command line: cros_secure quiet loglevel=0 console=tty2 init=/sbin/init add_efi_memmap boot=local noresume noswap i915.modeset=1 cros_secure tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic root=PARTUUID=81221ca4-22a3-d249-8c6a-636b9011db95/PARTNROFF=1 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=0 dm="vroot none ro,0 1740800 verity payload=ROOT_DEV hashtree=HASH_DEV hashstart=1740800 alg=sha1 root_hexdigest=98f86b8807863f8f73293eea0c0f1810da67d11a salt=9b5a1d53330cf997edaf2646b2f837f16df4a439e3a78905b01bc92413bdb117" noinitrd vt.global_cursor_default=0 kern_guid=81221ca4-22a3-d249-8c6a-636b9011db95
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 0000000000001000 type 16
[ 0.000000]
@carletes
carletes / ubuntu-kernel-for-acer-c7.sh
Last active November 22, 2018 03:51
Script to create Ubuntu kernel packages for an Acer C7 Chromebook running ChrUbuntu
#!/bin/bash
set -x
#
# Grab verified boot utilities from ChromeOS.
#
mkdir -p /usr/share/vboot
mount -o ro /dev/sda3 /mnt
cp /mnt/usr/bin/vbutil_* /usr/bin

Installing Ubuntu on an Acer C7 Chromebook

These are step-to-step instructions for upgrading an Asus C7 Chromebook with an 8 GB RAM module, a SSD drive, and Ubuntu 12.04.

You'll need:

  • One 4 GB USB thumb drive (or larger) for ChromeOS recovery.
  • One Philips screwdriver for opening the Chromebook.
#!/bin/sh
exec 2>&1
exec \
/opt/apache/current/bin/httpd \
-d /service/apache \
-f /service/apache/conf/httpd.conf \
-DNO_DETACH
import tempfile
import os
import sys
from twisted.internet import defer, protocol, reactor
from twisted.python import log
from twisted.web import client, http_headers
def download(urls, offset, length):