Skip to content

Instantly share code, notes, and snippets.

Vadzim Dambrouski pftbest

  • Minsk
Block or report user

Report or block pftbest

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View long_command.txt
Last login: Sun Jan 13 04:02:38 on ttys000
macbook:~ vadzim$ nix-build https://github.com/NixOS/nixpkgs/archive/7d864c6bd63.tar.gz -A gnome3.dconf --arg config "{}" \
> --arg overlays "[ (self: super: { gnome3 = super.gnome3.overrideScope' (self: super: { dconf = super.dconf.overrideAttrs (drv: { doCheck = false; }); }); }) ]"
unpacking 'https://github.com/NixOS/nixpkgs/archive/7d864c6bd63.tar.gz'...
these derivations will be built:
/nix/store/rgh9vjadmq58w1hp4y9wqa12r3zfb3z5-dconf-0.30.1.drv
building '/nix/store/rgh9vjadmq58w1hp4y9wqa12r3zfb3z5-dconf-0.30.1.drv'...
unpacking sources
unpacking source archive /nix/store/canh30a3lr5pmqdr6jgnn01qh4qzyhm2-dconf-0.30.1.tar.xz
source root is dconf-0.30.1
View with_overlay.txt
macbook:~ vadzim$
macbook:~ vadzim$ cat .config/nixpkgs/overlays/dconf.nix
self: super: {
gnome3 = super.gnome3.overrideScope' (self: super: {
dconf = super.dconf.overrideAttrs (drv: {
doCheck = false;
});
});
}
macbook:~ vadzim$
View no_overlay.txt
macbook:~ vadzim$
macbook:~ vadzim$ nix-env -i meld
installing 'meld-3.18.3'
these derivations will be built:
/nix/store/ci5p3awqjm8rqmmzm7p8nfi9whzsj2f5-dconf-0.30.1.drv
/nix/store/pd556bahggcp0bjmi5r3vg6qswk56wlm-hook.drv
/nix/store/qxacixcaxsazhanvz3xmh2iffw6802h8-meld-3.18.3.drv
building '/nix/store/ci5p3awqjm8rqmmzm7p8nfi9whzsj2f5-dconf-0.30.1.drv'...
unpacking sources
unpacking source archive /nix/store/canh30a3lr5pmqdr6jgnn01qh4qzyhm2-dconf-0.30.1.tar.xz
View main.rs
#![allow(non_snake_case)]
use rand::seq::SliceRandom;
use std::time::Instant;
use std::ops::Deref;
pub struct NonEmptyMaxHeap<T> {
elements: Vec<T>,
}
impl<T: Ord + Copy> NonEmptyMaxHeap<T> {
View meld.log
macbook:~ vadzim$
macbook:~ vadzim$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-darwin"`
- host os: `Darwin 18.2.0, macOS 10.14.2`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.1.3`
- channels(vadzim): `""`
- channels(root): `"nixpkgs-19.03pre161900.61c3169a0e1"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
View out.rs
This file has been truncated, but you can view the full file.
fn print_types<T1, T2, T3>() {
println!("[{}, {}, {}]",
std::mem::size_of::<T1>(),
std::mem::size_of::<T2>(),
std::mem::size_of::<T3>());
}
fn main() {
View rustc_so
Process: rustc [67666]
Path: /Users/USER/*/rustc
Identifier: rustc
Version: ???
Code Type: X86-64 (Native)
Parent Process: bash [67075]
Responsible: rustc [67666]
User ID: 501
Date/Time: 2018-11-23 00:14:54.697 +0300
View check.log
FAIL: LLVM :: MC/MSP430/addrmode.s (20691 of 28266)
******************** TEST 'LLVM :: MC/MSP430/addrmode.s' FAILED ********************
Script:
--
: 'RUN: at line 1'; /Users/vadzim/Documents/llvm-build/bin/llvm-mc -triple msp430 -show-encoding < /Users/vadzim/Documents/llvm/test/MC/MSP430/addrmode.s | /Users/vadzim/Documents/llvm-build/bin/FileCheck /Users/vadzim/Documents/llvm/test/MC/MSP430/addrmode.s
--
Exit Code: 2
Command Output (stderr):
--
View lib.rs
#![feature(test)]
extern crate test;
trait Max2 {
type Item;
fn max_by_key2<B: Ord, F>(self, f: F) -> Option<Self::Item> where
Self: Sized,
F: FnMut(&Self::Item) -> B;
}
View main.rs
use std::thread;
use std::sync::Arc;
fn main() {
let a1 = Arc::new(0);
let mut a2 = a1.clone();
let t1 = thread::spawn(
move || {
You can’t perform that action at this time.