- Install Nix, the functional package manager. You'll need Linux (but macOS might work too).
- Make sure you have at least 4 GB of free space available for
/tmp
and a few GB of free space available for/nix
. - To get my recipes, run:
git clone https://github.com/DavidEGrayson/nixcrpkgs && cd nixcrpkgs && git checkout 4f7b11d
That commit is the current tip of the dev/david/2019 branch. - To build a i686-w64-mingw32 C/C++ cross-compiling toolchain and a hello world program, run:
nix-build -A win32.hello
- To build Qt and its examples, run:
nix-build -A win32.qt.examples
- To just build the toolchain itself, run:
nix-build -A win32.gcc
use strict; | |
use warnings; | |
use Net::SSH2; | |
my %args = (hostname => 'myhost', password => 'XXX', username => 'root'); | |
my $ssh = Net::SSH2->new; | |
sub get_ssh_output { | |
my ($chan) = @_; |
#include <iostream> | |
#include <cstring> | |
#include <unordered_map> | |
// https://github.com/martinmoene/string-view-lite | |
#include "string_view.hpp" | |
template <typename Value> | |
class StringMap: public std::unordered_map<std::string, Value> | |
{ | |
public: |
Encoder hevc_nvenc [NVIDIA NVENC hevc encoder]: | |
General capabilities: dr1 delay hardware | |
Threading capabilities: none | |
Supported hardware devices: cuda cuda d3d11va d3d11va | |
Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 bgra rgb0 rgba x2rgb10le x2bgr10le gbrp gbrp16le cuda d3d11 | |
hevc_nvenc AVOptions: | |
-preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4) | |
default 0 E..V....... | |
slow 1 E..V....... hq 2 passes | |
medium 2 E..V....... hq 1 pass |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
Gotten from the RedHat GPG migration manual
## Export all public keys
gpg -a --export >mypubkeys.asc
class Tageditor < Formula | |
desc "Tag editor supporting MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska" | |
homepage "https://github.com/Martchus/tageditor" | |
url "https://github.com/Martchus/tageditor/archive/v2.2.4.tar.gz" | |
sha256 "b6086c56fde764abebcd39bf050fae60d335f0317336dc0e18ac2c944df4a7a7" | |
depends_on "cmake" => :build | |
depends_on "cppunit" => :build | |
depends_on "openssl" |
DROP DATABASE IF EXISTS 📚; | |
CREATE DATABASE 📚; | |
USE 📚; | |
CREATE TABLE 👤( | |
🔑 INTEGER PRIMARY KEY, | |
🗣 varchar(64), -- name | |
🗓 DATE -- date of registration |
Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.
Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache
as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.
Check the gist's comments for any further tips and instructions, especially if you are running into problems!
Results after following the guide as of 11.01.2017 13:08: