In Cargo.toml
, include the following:
[dependencies]
thread_profiler = { version = "0.3", optional = true } # the optional is important
[features]
profiler = ["thread_profiler", "thread_profiler/thread_profiler"]
sudo apt install wine winetricks | |
winetricks -q dotnet472 | |
wine ~/Downloads/Paint.NET.3.5.11.Install.exe |
format = """\ | |
$time\ | |
$directory\ | |
$memory_usage\ | |
$env_var\ | |
$git_branch\ | |
$git_commit\ | |
$git_state\ | |
$git_status\ | |
$cmd_duration\ |
/// Information pertaining to an error from a source file. | |
#[derive(Clone, Debug, PartialEq, Eq)] | |
pub struct SourceError<'path, 'source> { | |
/// Path to the file that contains the source. | |
pub path: &'path Path, | |
/// The expression that this error is for. | |
pub expr: Expr<'source>, | |
/// The suggestion or hint to provide to the user. | |
pub suggestion: Option<Suggestion<'source>>, | |
/// Whether this is a denied error or warning. |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Template: Chris Kempson, Scheme: Chris Kempson (http://chriskempson.com)</string> | |
<key>name</key> | |
<string>Base16 Tomorrow Night Bright</string> | |
<key>semanticClass</key> | |
<string>theme.base16.tomorrow-night-bright</string> |
# Unfortunately the Pinta compiled by this docker image seems to crash with memory errors. | |
# Use the official image as a parent image | |
FROM ubuntu:20.04 | |
RUN apt update -y | |
RUN apt upgrade -y | |
RUN export DEBIAN_FRONTEND=noninteractive && ln -fs /usr/share/zoneinfo/Pacific/Auckland /etc/localtime && apt install -y tzdata build-essential mono-complete mono-devel pkg-config apt-utils mono-xbuild automake autoconf yelp-tools intltool libglib2.0-cil-dev libgtk2.0-cil-dev && dpkg-reconfigure --frontend noninteractive tzdata | |
# Set the working directory |
# Listen to UDP packets through port 1234 | |
sudo tcpdump -i lo -n udp port 1234 | |
# UDP "server" | |
nc -lu 127.0.0.1 1234 | |
# UDP "client" | |
nc -u 127.0.0.1 1234 |
Invoked like so:
// State
MapSpawner::spawn_world(&mut data.world, asset_id);
// System
MapSpawner::spawn(&mut system_data, asset_id);
I hereby claim:
To claim this, I am signing this object: