This file contains 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
use std::time::{SystemTime, UNIX_EPOCH}; | |
mod cli; | |
mod conf; | |
mod sync; | |
extern crate clap; | |
extern crate eventual; | |
fn main() { |
This file contains 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
use util; | |
use std; | |
use config; | |
use config::Config; | |
use std::io::Write; | |
use std::fs::File; | |
use std::path::PathBuf; | |
use std::collections::HashSet; | |
use clap::ArgMatches; |
This file contains 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
use clap::{Arg, App}; | |
pub fn create_drop_cli_app() -> App<'static,'static> { | |
App::new("drop") | |
.version("0.3.3") | |
.author("Bryan G. <[email protected]>") | |
.about("Screenshot & file upload tool with S3 support - http://github.com/gilbertw1/drop") | |
.arg(Arg::with_name("audio") | |
.short("-a") | |
.long("audio") |
This file contains 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
use crate::cli; | |
#[derive(Debug)] | |
pub struct WordleConfig { | |
pub dictionary: Option<String>, | |
pub emoji: bool, | |
pub guess: Option<String>, | |
pub hard_mode: bool, | |
pub operation: WordleOp, | |
pub solution: Option<String>, |
This file contains 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
use clap::{App, Arg}; | |
pub fn create_wordlebot_cli_app() -> App<'static> { | |
App::new("wordlebot") | |
.version("0.1") | |
.author("Bryan G. <[email protected]>") | |
.about( | |
"Simple wordle solving bot. This bot can be used in three different | |
modes of operation. |
This file contains 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
{ | |
"data": [ | |
{ | |
"market": { | |
"context": { | |
"away_score": 0, | |
"game_clock": 720, | |
"home_score": 0, | |
"market_number": 1, | |
"quarter": 1 |
This file contains 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
#!/bin/sh | |
if [ -z "$QNOTE_DEFAULT_EXT" ]; then | |
QNOTE_DEFAULT_EXT="md" | |
fi | |
QNOTE_DIR="~/.qnote" | |
QNOTE_DIR="${QNOTE_DIR/#\~/$HOME}" | |
if [ ! -d "$QNOTE_DIR" ]; then |
This file contains 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
const NGINX_FORMAT_STRING: &str = r#"$textField[name='ip'] - $textField[name='username', null='-'] $delimited[start='[', end=']']{$dateField[name='date', format='%d/%b/%Y:%H:%M:%S %z']} $delimited[delim='"']{$opt{$textField[name='method'] }$textField[name='path']$opt{?$textField[name='query']} $textField[name='protocol']} $numberField[name='status'] $numberField[name='bytes'] $delimited[delim='"']{$textField[name='referrer', null='-']} $delimited[delim='"']{$textField[name='user_agent', null='-']}"#; |
This file contains 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
$ OPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 OPENSSL_LIB_DIR=/usr/lib/openssl-1.0 ./mach build -d master✱ λ borealis | |
Compiling servo v0.0.1 (/home/gilbertw1/projects/opensource/servo/ports/servo) | |
error: linking with `cc` failed: exit code: 1 | |
| | |
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/gilbertw1/.rustup/toolchains/nightly-2018-10-05-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/gilbertw1/projects/opensource/servo/target/debug/deps/servo-7608be91cbd3c0a9.1004l5ycnbtbr5lb.rcgu.o" "/home/gilbertw1/projects/opensource/servo/target/debug/deps/servo-7608be91cbd3c0a9.13c0a8jtt9kk6ydp.rcgu.o" "/home/gilbertw1/projects/opensource/servo/target/debug/deps/servo-7608be91cbd3c0a9.154a4qp4q1ijjeo8.rcgu.o" "/home/gilbertw1/projects/opensource/servo/target/debug/deps/servo-7608be91cbd3c0a9.15q6054mg4j93jqb.rcgu.o" "/home/gilbertw1/projects/opensource/servo/target/debug/deps/servo- |
NewerOlder