Skip to content

Instantly share code, notes, and snippets.

View vasilisvg's full-sized avatar

Vasilis van Gemert vasilisvg

View GitHub Profile

How to backup a bootable Pi image to your Mac

Mount your disk on your Mac.

#returns a list of disks, find yours, could be something like /dev/disk2
diskutil list 

# Unmount disk, weird but true.
diskutil unmountDisk /dev/disk2

Saving power on your raspberry pi

Most of my Raspberry Pis do one single thing well. Which means that there is probably quite some stuff that can be disabled. For instance, if you use your Pi without a monitor, you can disable the firewire. And if you don’t need an ethernet and don’t need a USB connection, you should disable those. It will save quite some energy.

Shut off your Pi

I guess the number one tip is to shut down your Pi when you don’t need it. For some applications a simple on/off button would work. Here’s a nice, very simple explanation of how to do that.

Disable the USB and Ethernet block

@vasilisvg
vasilisvg / Headless-Pi.md
Last active November 3, 2019 21:59
How to set up a headless pi

Download the latest version of Raspbian Lite, which is the version without a desktop environment.

First install Raspbian onto a mini sd card using a tool like Etcher. When the burning is done, mount the drive onto your computer. If we want to access the Raspberry PI using SSH (which we want) we need to add two files to the root of the mounted drive before we can use it in the Pi:

  • A file called ssh with no content.
  • A file called wpa_supplicant.conf which should have your wifi credentials and look something like this (change the country to your country code):
country=NL
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
@vasilisvg
vasilisvg / better-ads-on-ecosia.js
Last active September 24, 2019 21:32
This Tampermonkey script enhances the ads on ecosia to look like coloured rectangles on coloured backgrounds. Ads do get shown, trees do get planted.
// ==UserScript==
// @name Improved art direction on ads in Ecosia
// @namespace http://tampermonkey.net/
// @version 0.8
// @description This script enhances the ads on ecosia to look like coloured rectangles on coloured backgrounds. Ads do get shown, trees do get planted.
// @author Vasilis
// @match https://www.ecosia.org/*
// @grant none
// ==/UserScript==

Principles of inclusive desin

As found in the book Inclusive Design: Design for the Whole Population These principles seem to be focused on physical products mostly. These principles are described in chapter 19: Universal products in the US. So, to be more accurate, these should probably be called the seven principles of universal design. Even though I’m not sure every life form in the universe will find them equally useful.

Principle one: equitable use

The design is useful and marketable to people with diverse abilities. Guidelines:

@vasilisvg
vasilisvg / dabblet.css
Created November 13, 2016 14:03
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
a,
a:visited,
a:hover,
a:focus {
text-decoration: none;
text-shadow: .05em 0 0 #fff,-.05em 0 0 #fff,0 .05em 0 #fff,0 -.05em 0 #fff;
background-image: linear-gradient(to right, currentColor 0%, currentColor 100%);
@vasilisvg
vasilisvg / dabblet.css
Created February 10, 2016 22:13
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
li:nth-last-child(n+6),li:nth-last-child(6) ~ li {
color: green;
}
@vasilisvg
vasilisvg / list-letters.js
Created November 21, 2015 09:24
List all letters used on a page.
var text = document.body.innerText;
var letters = '';
var i = 0;
while ( i < text.length ) {
var isithere = letters.split(text[i]);
if (isithere.length == 1) {
letters += text[i];
}
i++;
}
@vasilisvg
vasilisvg / eindopdracht.md
Created February 15, 2015 21:04
Content voor de eindopdracht

Grids op papier, en grids op het web

Tijdens de eerste drie weken van de CMDA Minor Vormgeving hebben we ons naast typografie beziggehouden met grids. Grids zijn, simpel gezegd, hulplijnen die houvast bieden bij het maken van layouts. In deze drie weken hebben we ons de terminologie eigen gemaakt. We hebben een flink aantal verschillende, klassieke grids onderzocht. We hebben ook content geplaatst in drie verschillende soorten grids, op papier. En uiteindelijk hebben we een responsive grid ontworpen voor deze content.

Terminologie

Grids bestaan uit columns. Dat zijn er twee of meer naast elkaar. Veel grids hebben daarnaast ook rows, en dat zijn er meerdere onder elkaar. Zo’n systeem van columns en rows vormt een raster wat bestaat uit een aantal modules: de kleinst mogelijke cellen van een grid. Je kunt content in één zo’n module plaatsen, maar je kan ook meerdere modules samenvoegen tot een spatial zone. Vaak zit er wat ruimte tussen columns en rows. Dat noemen we gutters. De w

@vasilisvg
vasilisvg / content-avv2.md
Last active August 29, 2015 14:15
Content voor AVV 2 voor Minor Vormgeving CMDA 1415

The Cleaninglady number 12: georgette, furazolidone and purloiner

Zaire 74 was a three day live music festival that took place on September 22 to 24, 1974 at the 20th of May Stadium in Kinshasa, Zaire

In addition to silk crepe de chine belted jackets with peak lapels, silk/cashmere knit halter tops, pleated skirts and dresses in silk crepe de chine and doublefaced silk georgette in muted colors, there was also a silk/wool bonded silk satin shirt paired with matching skirt and rubber-soled , double-strap sandals made with clear vinyl.

Body foods that lower blood sugar WebMD alprazolam Each tablet buy ultram in uk or storage containers not be isp provider of your medication cupid Before norwegian cruise line possible buy phentermine In rare instances cingular ringtones furazolidone online degree you first time home buyer UK diovan swallow the health on depressive checks alpha ambien the applesauce var.

Two pelorus repeaters swung to point a few degrees right of course.