# raspbian stretch lite on ubuntu
### You can write the raspbian image onto the sd card,
# boot the pi so it expands the fs, then plug back to your laptop/desktop
# and chroot to it with my script
# https://gist.github.com/htruong/7df502fb60268eeee5bca21ef3e436eb
# sudo ./chroot-to-pi.sh /dev/sdb
# I found it to be much less of a pain in the ass and more reliable
# than doing the kpartx thing
Para este proyecto seguiremos la metodología de tener una branch principal master
(equivalente a release
en otros proyectos), una branch dev
(o development
) para comprobar que todo funcione antes de enviar los cambios a master
y múltiples "feature branches" para que cada colaborador pueda enacrgarse de una tarea definida, trabajarla y probarla a gusto antes de reunir los cambios en dev
. Para más detalle y ejemplos pueden usar de esta lectura la sección Feature Branch Workflow.
#!/bin/bash | |
# | |
# Heavily Modified from: https://www.dosbox.com/wiki/PPP_configuration_on_linux_host | |
# | |
# Usage: | |
# sudo ./isp.sh | |
# | |
# This script makes it so you can browse the net with DOSBox and Trumpet Winsock in | |
# Windows 3.11 | |
# |
I recently happened upon a very interesting implementation of popen()
(different API, same idea) called popen-noshell using clone(2)
, and so I opened an issue requesting use of vfork(2)
or posix_spawn()
for portability. It turns out that on Linux there's an important advantage to using clone(2)
. I think I should capture the things I wrote there in a better place. A gist, a blog, whatever.
This is not a paper. I assume reader familiarity with
fork()
in particular and Unix in general, though, of course, I link to relevant wiki pages, so if the unfamiliar reader is willing to go down the rabbit hole, they should be able to come ou
"/dev/sda2 contains a file system with errors, checked forced. | |
Inodes that were part of a corrupte orphan linked list found. | |
/dev/sda2/ UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY. | |
(i.e. without -a or -p options) | |
fsck exited with status code 4 | |
the root filesystem on /edv/sda2 requires a manual fsck | |
Busybox v1.22.1 (Ubuntu 1:1.22.0-15ubuntu1) built in shell (ash) | |
Enter 'help' for a list of built-in commands. | |
(initramfs) |
- Checkout your repository wiki via git.
- You can find the URL at the lower-right of your wiki page (look for the label "Clone this wiki locally") - Now that you have pulled down a local copy of your github repo wiki, create a new file in the repo called
_Sidebar.md
- Note that other names might not work. - Within the newly created
_Sidebar.md
file, you can add appropriate [[link]] markdown syntax. - Add your new file to the local repository, and push via git push origin master.
With the same procedure, you can add a header(_Header.md
) and footer(_Footer.md
) file.
#!/usr/bin/env python | |
# A simple demonstration of using cairo to shape windows. | |
# Natan 'whatah' Zohar | |
import gtk | |
import math | |
class ShapedGUI: | |
def __init__(self): | |
self.window = gtk.Window() | |
self.window.show() # We show here so the window gets a border on it by the WM |
#include <iso646.h> | |
#include <setjmp.h> | |
#include <stdio.h> | |
// Exception Macros | |
int _exn_handler_idx = 0; | |
jmp_buf _exn_handlers[1024]; |
I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.
I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.
Chrome 51 has some pretty wild behaviour related to console.log
in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.
#include <stdio.h> | |
#include <locale.h> | |
#include <X11/Xlib.h> | |
#include <X11/keysym.h> | |
int main(void){ | |
setlocale(LC_ALL, ""); | |
Display* dpy = XOpenDisplay(NULL); |