export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Zathura configuration file | |
# See man `man zathurarc' | |
# Open document in fit-width mode by default | |
set adjust-open "best-fit" | |
# One page per row by default | |
set pages-per-row 1 | |
#stop at page boundries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from odf.opendocument import OpenDocumentText | |
from odf.style import (Style, TextProperties, ParagraphProperties, | |
ListLevelProperties, TabStop, TabStops) | |
from odf.text import (H, P, List, ListItem, ListStyle, ListLevelStyleNumber, | |
ListLevelStyleBullet) | |
from odf import teletype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# a shell scipt to prepend i3status with more stuff | |
i3status --config ~/.i3status.conf | while : | |
do | |
read line | |
LG=$(setxkbmap -query | awk '/layout/{print $2}') | |
echo "LG: $LG | $line" || exit 1 | |
done |
init.rc changes to run any script Can be used to start any android application, service
on property:dev.bootcomplete=1
exec - system system -- /system/bin/sh <custom script path>
# exec - system system -- /system/bin/sh /data/local/bootscript/testservice.sh
Script can contains applications start, stop commands
I made this reference guide so I can easily look back on it quickly.
FT2232H IC | FT2232H Mini | JTAG | SPI | UART | I2C |
---|---|---|---|---|---|
GND | CN2-2, 4, 6 | GND | GND | GND | GND |
VCC | CN2-1, 3, 5 | 3.3VDC | 3.3VDC | 3.3VDC | 3.3VDC |
AD0 | CN2-7 | TCK | SCLK | TXD | SK |
AD1 | CN2-10 | TDI | DO (MOSI) | RXD | DO |
AD2 | CN2-9 | TDO | DI (MISO) | DI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A minimal example for using Cairo with GTK | |
""" | |
import cairo | |
import gi | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk, Gdk, GLib |