I hereby claim:
- I am nick96 on github.
- I am nspain (https://keybase.io/nspain) on keybase.
- I have a public key ASDtVLAsYEm_YUuiI1MJbhFdGv1AqPPRg61m5a9IltTEUgo
To claim this, I am signing this object:
fn count(xs: Vec<Box<dyn std::any::Any>>) -> usize { | |
let mut n = 0; | |
for _ in xs { | |
n += 1; | |
} | |
n | |
} | |
fn main() { | |
println!("str: {}", count(vec![Box::new("1"), Box::new("2"), Box::new(1), Box::new(2)])); |
use std::thread; | |
#[derive(Debug)] | |
struct MyBox(*mut u8); | |
unsafe impl Send for MyBox {} | |
fn main() { | |
let mut x = 5; | |
let test = MyBox(&mut x); |
Error: rpc error: code = Unavailable desc = transport is closing | |
panic: runtime error: invalid memory address or nil pointer dereference | |
2021-03-20T12:55:02.730+1100 [DEBUG] plugin.terraform-provider-segfault: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x165d902] | |
2021-03-20T12:55:02.730+1100 [DEBUG] plugin.terraform-provider-segfault: | |
2021-03-20T12:55:02.730+1100 [DEBUG] plugin.terraform-provider-segfault: goroutine 66 [running]: | |
2021-03-20T12:55:02.730+1100 [DEBUG] plugin.terraform-provider-segfault: github.com/nick96/terraform-provider-segfault/segfault.dataSegfaultRead(0x188ccc8, 0xc00068e480, 0xc000698500, 0x0, 0x0, 0xc00059a410, 0xc0001e9948, 0x100f818) | |
2021-03-20T12:55:02.730+1100 [DEBUG] plugin.terraform-provider-segfault: /Users/nicholasspain/devel/personal/terraform-provider-segfault/segfault/provider.go:29 +0x2 |
job "whoami" { | |
datacenters = ["dc1"] | |
type = "service" | |
update { | |
max_parallel = 1 | |
min_healthy_time = "10s" | |
healthy_deadline = "3m" | |
progress_deadline = "10m" | |
auto_revert = false |
I hereby claim:
To claim this, I am signing this object:
/* Code testing out the DHT11 Temperature and Humidity sensor */ | |
#include "DHT.h" | |
#define DHTPIN 2 | |
#define DHTTYPE DHT11 | |
DHT dht(DHTPIN, DHTTYPE); |
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by irssi configure 1.1-head, which was | |
generated by GNU Autoconf 2.69. Invocation command line was | |
$ ./configure | |
## --------- ## | |
## Platform. ## |
# Requires find and xargs from GNU's findutils | |
# Just another example of the joys of composability in the UNIX philosophy | |
find <src-directory> -name *.<extension> -print0 | xargs -0 -I % cp % <dst-directory> | |
# Breakdown | |
# find -- from findutils, does what is says on the tin | |
# -name -- File name(s) to find, in this case we used the shell glob '*' to get any files with <extension> | |
# -print0 -- Separate files with a NULL byte | |
# |
(defun nick/osx-open-app () | |
"Open an application in OS X." | |
(interactive) | |
(shell-command (format "open -a %S" (read-string "Application: ")))) |