Skip to content

Instantly share code, notes, and snippets.

View dmwelch's full-sized avatar
👋
I may be slow to respond.

David Welch dmwelch

👋
I may be slow to respond.
  • previously at Hyperfine.io
  • St. Louis, MO, USA
  • 10:02 (UTC -05:00)
  • X @imagingnerd
View GitHub Profile

How to set your Acer C720 Chromebook to boot to Ubuntu by default.

  1. Place your closed laptop on a soft surface, upside down.
  2. Use a sharp knife to cut a hole in the warranty sticker (YES THIS WILL VOID THE WARRANTY).
  3. Remove the 13 screws with a small phillips head screwdriver (PH1 size works well). Be careful, the screws are very small and will strip easily if you use the wrong size screwdriver.
  4. Remove the bottom of the laptop by pulling up on it near the hinges. It takes a bit of pressure to remove, but if you lift it from the back (near the hinges) the same way you would open a laptop screen, the hooks won't break (even though they will make a loud snapping sound).
  5. Remove the BIOS write-protect screw. It is labeled as #7 in this image
  6. With the bottom off, turn over the laptop and open the screen.
  7. Plug the laptop in (it must b
@datagrok
datagrok / gist:2199506
Last active April 8, 2023 17:36
Virtualenv's `bin/activate` is Doing It Wrong
@cstrahan
cstrahan / gist:1975217
Created March 4, 2012 22:49
Emacs Sr Speedbar
(require 'sr-speedbar)
(setq speedbar-frame-parameters
'((minibuffer)
(width . 40)
(border-width . 0)
(menu-bar-lines . 0)
(tool-bar-lines . 0)
(unsplittable . t)
(left-fringe . 0)))
(defun my-reb-query-replace-regexp ()
"Call `query-replace-regexp' with current regexp of RE-builder"
(interactive)
(reb-update-regexp)
(let ((re (reb-target-binding reb-regexp)))
(flet ((query-replace-read-from
(prompt regexp-flag)
;; body
re))
(pop-to-buffer reb-target-buffer)
@satra
satra / display_crash.py
Created February 14, 2011 22:36
Displays nipype crash files with formatted information
#! /usr/bin/env python
import argparse
from nipype.utils.filemanip import loadcrash
def display_crash_files(crashfile, rerun):
"display crash file content and rerun if required"
crash_data = loadcrash(crashfile)
node = crash_data['node']