This is not my work, but I wanted to share it here because it's a great hack. I found it on this 1Password forum thread. The original author is Sn0wCrack.
🐻❄️
This file contains hidden or 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
| #[derive(clap::Parser, Debug)] | |
| pub(crate) struct CommandLineArguments { | |
| /// A git repo or path to use as the source | |
| #[clap(value_parser = clap::value_parser!(UrlOrPath))] | |
| source: Option<UrlOrPath>, | |
| } |
This file contains hidden or 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
| [sources.in] | |
| include = ["C:\\Windows\\System32\\winevt\\Logs\\System.evtx"] | |
| type = "file" # required | |
| [sinks.debug] | |
| type = "console" | |
| inputs = ["in"] |
This file contains hidden or 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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at |
This file contains hidden or 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
| #![feature(path)] | |
| extern crate capnp; | |
| extern crate capnpc; | |
| extern crate "capnp-rpc" as capnp_rpc; | |
| mod raft_capnp { | |
| include!("./schema/raft_capnp.rs"); | |
| } | |
| use std::thread; |
This file contains hidden or 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
| fn move_to(&mut self, line: u64) { | |
| let mut lines_read = 0; | |
| let chars = self.log.chars(); | |
| // Go until we've reached `from` new lines. | |
| chars.skip_while(|&opt| { | |
| match opt { | |
| Ok(val) => { | |
| if val == '\n' { | |
| lines_read += 1; | |
| if lines_read == line { |
I hereby claim:
- I am hoverbear on github.
- I am hoverbear (https://keybase.io/hoverbear) on keybase.
- I have a public key whose fingerprint is 4632 FAB4 E6C9 22C2 852B D17B F36E 629D 2C43 BF92
To claim this, I am signing this object:
This script downloads the latest nightly and installs (or uninstalls) it as needed.
The steps are:
- Download an extract Rust into a temporary directory.
- Run the
install.shscript with the options provided. (Like--uninstall) - Output necessary config options for the user.
To use:
This is a bl.ocks.org version of Jan Willem Tulp's Game of Life D3 implementation, lightly edited.
This file contains hidden or 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
| // BEGIN DIFFERENT CODE | |
| // Make a SYN | |
| packet_t syn_packet; | |
| syn_packet.type = SYN; | |
| syn_packet.seqno = (unsigned short) rand(); | |
| syn_packet.ackno = 0; | |
| syn_packet.payload = 0; | |
| syn_packet.window = 0; | |
| syn_packet.data = calloc(1, sizeof(char)); | |
| strcpy(syn_packet.data, ""); |
NewerOlder