package main | |
import ( | |
"fmt" | |
"strings" | |
) | |
// A group's effective members include the members for the group itself as well as all of its children. Write a function to detect if a given user is an effective member of a given group. | |
type Group struct { |
const s = "return function foo(msg) {console.log(msg)};"; | |
const F = new Function(s); | |
let f = F() | |
f("hello") // console logs the string, "hello" |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Goal Seek Example</title> | |
<!-- | |
note: update the contents between the <script>{update this stuff!}</script> tags, below, with the most up-to-date \ | |
code from: https://raw.githubusercontent.com/adam-hanna/goal-seek/develop/dist/index.min.js | |
--> |
Read this project-brief -- it will give you an understanding of what the goals are for this tool.
This tutorial was written using Red Hat Fedora 30 but may be similar on other distros.
You should have an eth0
, but if you $ ifconcig -a
and don't see it, you should do $ nmcli device status
to determine which device is connected to your wifi/ethernet.
$ sudo ip link add macvlan1 link eth0 type macvlan mode bridge
$ sudo ip link add macvlan2 link eth0 type macvlan mode bridge
$ sudo ip netns add net1
I often find myself ssh'ing into my servers and checking my systemd service logs with $ journalctl -f -u {name}.service
. One day I got tired of this and wanted all of my important logs in once place (Amazon AWS Cloudwatch). To my dismay, there weren't any real good tutorials on how to do so. So, voilà.
Overall, it's a fairly simple process consisting of the following few steps.
Open the service file with $ sudo vi /lib/systemd/system/{name}.service
Modify the [Service]
section:
I hereby claim:
- I am adam-hanna on github.
- I am adam_hanna (https://keybase.io/adam_hanna) on keybase.
- I have a public key ASB0SSLO1KjLN_LZ5nRjHe9LSzYHTwsee7nQILWh0orm9Ao
To claim this, I am signing this object:
/* | |
YMMV | |
Compiling rust-bench-test v0.1.0 (/home/adam/apps/rust-bench-test) | |
Finished release [optimized] target(s) in 0.78s | |
Running /home/adam/apps/rust-bench-test/target/release/deps/rust_bench_test-5e0b4fbe4a887c9a | |
running 3 tests | |
test bench_gather_borrowed_foos ... bench: 291 ns/iter (+/- 18) | |
test bench_gather_owned_foos ... bench: 333 ns/iter (+/- 9) | |
test bench_passed_borrowed_foos ... bench: 283 ns/iter (+/- 17) |
We want to change these EOS words/phrases to these new words/phrases:
From | To | Notes |
---|---|---|
stake | lock | coins are being "locked up" and are safe |
owner | master | the master key controls all of the sub-keys |
active | live | the key is either alive and being used or dead |
wallet | key ring | a wallet is really a thing that stores keys, like a key ring |