See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| { | |
| "AuthParameters" : { | |
| "USERNAME" : "[email protected]", | |
| "PASSWORD" : "mysecret" | |
| }, | |
| "AuthFlow" : "USER_PASSWORD_AUTH", | |
| "ClientId" : "9..............." | |
| } |
| #!/bin/bash | |
| #This script will compile and install a static ffmpeg build with support for nvenc un ubuntu. | |
| #See the prefix path and compile options if edits are needed to suit your needs. | |
| #install required things from apt | |
| installLibs(){ | |
| echo "Installing prerequisites" | |
| sudo apt-get update | |
| sudo apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev \ |
| #!/bin/bash | |
| sudo apt-get -y install cups | |
| sudo apt-get -y install cups-pdf | |
| # add pdf printer to cups | |
| # - named files end up in ~/PDF/ | |
| # - unnamed files are stored in /var/spool/cups-pdf/ANONYMOUS/, such as PDF:s created by streaming bytes over an API | |
| sudo lpadmin -p cups-pdf -v cups-pdf:/ -E -P /usr/share/ppd/cups-pdf/CUPS-PDF.ppd |
| #!/bin/sh | |
| # Examples: | |
| # ./image64.sh myImage.png | |
| # outputs: data:image/png;base64,xxxxx | |
| # ./image64.sh myImage.png -img | |
| # outputs: <img src="data:image/png;base64,xxxxx"> | |
| filename=$(basename $1) | |
| xtype=${filename##*.} | |
| append="" |
This is a tutorial from 2016, originally for installing debian jessie, it may work for newer versions of debian, but I haven't check it (however, it should mostly work because not that much changed since then). You may want to change every occurrence of buster to a name of a new version of debian.
Make work directory:
mkdir work
cd work
After much time wasted with struggling to get VNC working on Ubuntu that stands for without monitor box - I've compiled the below draft notes on how I finally managed to configure the damn VNC. This should be stated, that I've come a long journey from systemd/init.d configuration scripts, through various VNC daemons (tightvnc, tigervnc, xvnc) and experienced lot of issues (VNC starting before X, VNC not having Xauthority, VNC not being able to open display :0, and so on) .
Finally, this below setup got me working with VNC.
Command Flags
| Flag | Options | Description |
|---|---|---|
-codec:a |
libfaac, libfdk_aac, libvorbis | Audio Codec |
-quality |
best, good, realtime | Video Quality |
-b:a |
128k, 192k, 256k, 320k | Audio Bitrate |
-codec:v |
mpeg4, libx264, libvpx-vp9 | Video Codec |
| GOPATH=$(shell pwd)/vendor:$(shell pwd) | |
| GOBIN=$(shell pwd)/bin | |
| GOFILES=$(wildcard *.go) | |
| GONAME=$(shell basename "$(PWD)") | |
| PID=/tmp/go-$(GONAME).pid | |
| build: | |
| @echo "Building $(GOFILES) to ./bin" | |
| @GOPATH=$(GOPATH) GOBIN=$(GOBIN) go build -o bin/$(GONAME) $(GOFILES) |