Skip to content

Instantly share code, notes, and snippets.

View thetooth's full-sized avatar

Jeff Jenner thetooth

View GitHub Profile
TYPE RTONPersistData :
STRUCT
Running : BOOL;
StartTime : TIME;
EndTime : TIME;
PausedTime : TIME;
CurrentTime : TIME := T#0s;
TotalTime : TIME;
END_STRUCT
END_TYPE
#!/bin/bash
echo "Using host $SMARTOS_HOST..."
payload=`ssh root@$SMARTOS_HOST "vmadm lookup -j -o uuid alias=$1 | json -a uuid | xargs vmadm info"`
if [ "$payload" = "" ]; then
echo "VM does not exist or does not have a VNC console"
exit
fi
@Override public void onCreate(Bundle state) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
hideSystemUI();
}
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
}
@Override public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if (hasFocus) {
DEBU[0000] intervideosrc channel=video_1080p5000 name=relaxed_mendel ! videoscale method=0 add-borders=false name=musing_wiles ! videoconvert name=zealous_benz ! video/x-raw,framerate=50/1,width=1920,height=1080 ! vp8enc end-usage=cbr error-resilient=partitions keyframe-max-dist=250 buffer-initial-size=20 buffer-optimal-size=1 buffer-size=400 undershoot=95 threads=8 deadline=20000 cpu-used=8 lag-in-frames=0 token-partitions=3 noise-sensitivity=6 static-threshold=100 target-bitrate=1000000 name=wizardly_cohen ! queue leaky=downstream name=silly_kapitsa ! appsink name=appsink
INFO[0000] Linked appsink[appsink] @0x7f83901c27b0
INFO[0000] Linked queue[silly_kapitsa] @0x7f83901ba0b0
INFO[0000] Linked vp8enc[wizardly_cohen] @0x7f83901b5110
DEBU[0000] Not a dynamic element
INFO[0000] Linked videoconvert[zealous_benz] @0x7f83901a7b30
INFO[0000] Linked videoscale[musing_wiles] @0x7f83901997d0
INFO[0000] Linked intervideosrc[relaxed_mendel] @0x7f83901978e0
DEBU[0000] Last element in
@thetooth
thetooth / Makefile
Created July 13, 2019 15:28
VHDL simulation template
# Stop time for eleboration and simulation
timeout = 1ms
# Assertion level to deem eleboration a failure
assertion-level = warning
# Test bench entity to use
entity ?= idklol
# I/O
sources := $(wildcard *.vhd)
objects := $(sources:%.vhd=%.o)
STARTFONT 2.1
COMMENT Copyright 2006 Sun Microsystems, Inc. All rights reserved.
COMMENT Use is subject to license terms.
COMMENT This is a derivation of a BDF font from the X consolidation
COMMENT Originally a BSD vfont.
COMMENT Re-built BDF and ISO10646-1 from hex code originally in
COMMENT illumos usr/src/uts/common/font/12x22.c
FONT -Sun-Gallant-Demi-R-Normal--19-190-72-72-C-120-ISO10646-1
SIZE 19 72 72
FONTBOUNDINGBOX 12 22 0 -5
package seq
import (
"fmt"
"time"
)
// DSN type for global ordering
type DSN struct {
Value uint64
192.168.0.26 ansible_user=root ansible_password=password ansible_python_interpreter=/opt/local/bin/python
package dialog
import (
"encoding/json"
"fmt"
"io/ioutil"
"github.com/gen2brain/raylib-go/raylib"
"github.com/sirupsen/logrus"
thetooth@alpine1 ~/a/scripts> sh mkimage.sh --tag edge \
--outdir ~/iso \
--arch x86_64 \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
--profile standard
OK: 0 MiB in 0 packages
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
v3.7.0-2817-g2ce590a52d [http://dl-cdn.alpinelinux.org/alpine/edge/main]
OK: 5754 distinct packages available
>>> mkimage-x86_64: Building standard