This file contains 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
{ localSystem ? builtins.currentSystem | |
, crossSystem ? { config = "x86_64-unknown-linux-musl"; isStatic = true; useLLVM = true; } | |
}: | |
let | |
# Fetch the nixpkgs-cross-overlay sources. | |
src = builtins.fetchTarball "https://github.com/alekseysidorov/nixpkgs-cross-overlay/tarball/main"; | |
# Use the nixpkgs revision provided by the overlay. | |
# This is the best way, as they are the most proven and compatible. | |
nixpkgs = "${src}/utils/nixpkgs.nix"; | |
# Make cross system packages. |
This file contains 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
# A standalone nix shell file to setup Rust cross-compilation toolchain. | |
# | |
# This file does not have any additional dependencies and is completely self-sufficient. | |
# You can use the `nix-shell` command and get the working cross-compilation toolchain. | |
# By default, it produces completely static binaries, which can be placed into the | |
# Alpine Linux container as is. | |
# | |
# # Usage: | |
# | |
# `nix-shell ./shell-rust-cross.nix` |
This file contains 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
text: messageTextOnChecking.quantity() > 2000 ? | |
qsTr("Check that <font color='white'>\"%1\"</font>" + | |
" is full of <font color='white'>%2 %3</font>" + | |
" and add more if necessary" | |
).arg(worker.drawerToCheck(loadSubstratePage.machineName).drawerId) | |
.arg(worker.drawerToCheck(loadSubstratePage.machineName).humanizedSize) | |
.arg(messageTextOnChecking.substrateName()) | |
: | |
qsTr("Check that there is at least <font color='white'>%1 sheets" + | |
" (%2 inches)</font>" + |
This file contains 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
processor : 5 | |
vendor_id : AuthenticAMD | |
cpu family : 16 | |
model : 10 | |
model name : AMD Phenom(tm) II X6 1090T Processor | |
stepping : 0 | |
microcode : 0x10000dc | |
cpu MHz : 800.000 | |
cache size : 512 KB | |
physical id : 0 |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from PIL import Image | |
import requests | |
from io import BytesIO | |
import argparse | |
def make_barcode(barcode): | |
url = "http://barcode.tec-it.com/barcode.ashx?data={0}&code=Code128&dpi=96&download=true".format(barcode) |
This file contains 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
ListMerger { | |
target: window | |
property: "values" | |
values: [ | |
"I am a child", | |
] | |
} | |
ListMerger { |