This file contains hidden or 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
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"path/filepath" | |
"time" | |
nats "github.com/nats-io/nats.go" | |
log "github.com/sirupsen/logrus" |
This file contains hidden or 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
TYPE RTONPersistData : | |
STRUCT | |
Running : BOOL; | |
StartTime : TIME; | |
EndTime : TIME; | |
PausedTime : TIME; | |
CurrentTime : TIME := T#0s; | |
TotalTime : TIME; | |
END_STRUCT | |
END_TYPE |
This file contains hidden or 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 | |
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 |
This file contains hidden or 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
@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) { |
This file contains hidden or 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
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 |
This file contains hidden or 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
# 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) |
This file contains hidden or 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
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 |
This file contains hidden or 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
package seq | |
import ( | |
"fmt" | |
"time" | |
) | |
// DSN type for global ordering | |
type DSN struct { | |
Value uint64 |
This file contains hidden or 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
192.168.0.26 ansible_user=root ansible_password=password ansible_python_interpreter=/opt/local/bin/python |
This file contains hidden or 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
package dialog | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"github.com/gen2brain/raylib-go/raylib" | |
"github.com/sirupsen/logrus" |
NewerOlder