The configs below are all seperated. Pick what you need, theres a sample script at the bottom.
- Set Timezone and Locale: Configure the system's timezone and locale to match your geographic location and preferred language settings.
timezone: "Etc/UTC"
# Making AUR work inside Dockerfile in non interactive way.(experiment) | |
# Use an official Arch Linux runtime as a parent image | |
FROM archlinux:latest | |
# Maintainer | |
LABEL maintainer="[email protected]" | |
# Update system and install dependencies (we do not modify this step for docker caching) | |
RUN pacman -Sy --noconfirm archlinux-keyring && \ | |
pacman-key --init && \ |
The configs below are all seperated. Pick what you need, theres a sample script at the bottom.
timezone: "Etc/UTC"
Cubietruck is also known as Cubieboard 3
Note: This file documents just what I did, first of all as a note for myself. So this is not primarily intended as a tutorial. Because it still might be helpfull, I uploaded it. The GPIO function is now confirmed to work, tested with my multimeter, but I am still waiting for my jumper cables to arrive, so I can use them securely.
Licensed under a Luna-Will-Cry-If-You-Modify-Or-Redistribute-This 1.0 licence.
The aim was to be able to:
Connect to psql as a non postgres user
$ psql -d testdbname
- when the os user exists in the db and trusted authentication is enabled.
# create database db2;
- create a database
# drop database db2;
- drop a database
# \c[onnect] db2
- connect to a database
# \l[ist]
- list all databases
# \l+
- list all databases with extra details, including size
#!/bin/bash | |
# | |
# For latest version please check https://github.com/doomedraven/Tools/blob/master/Virtualization/kvm-qemu.sh | |
# | |
# https://www.doomedraven.com/2016/05/kvm.html | |
# Use Ubuntu 18.04 LTS |
# | |
# Reading video from FFMPEG using subprocess - aka when OpenCV VideoCapture fails | |
# | |
# 2017 note: I have realized that this is similar to moviepy ffmpeg reader with the difference that here we support YUV encoding | |
# BUT we lack: bufsize in POpen and creation flags for windows | |
# https://github.com/Zulko/moviepy/blob/master/moviepy/video/io/ffmpeg_reader.py | |
# | |
# Emanuele Ruffaldi 2016 | |
import cv2 | |
import subprocess |
public protocol DataSource: class { | |
associatedtype AbstractType | |
func source() -> AbstractType | |
} | |
class ViewController<T: DataSource>: UIViewController { | |
weak var dataSouce: T? | |
typealias AbstractType = T.AbstractType |
#!/bin/sh | |
INSTALLERIMG="/Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg" | |
OUTDIR="/Users/$(whoami)/Desktop" | |
FILENAME="Install OS X El Capitan" | |
TMPIMG="/tmp/ElCapitan.sparseimage" | |
SOURCEDISK="/Volumes/InstallESD" | |
TARGETDISK="/Volumes/BaseSystem" |