Skip to content

Instantly share code, notes, and snippets.

View gilbertw1's full-sized avatar

Bryan Gilbert gilbertw1

View GitHub Profile
use std::time::{SystemTime, UNIX_EPOCH};
mod cli;
mod conf;
mod sync;
extern crate clap;
extern crate eventual;
fn main() {
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;
use clap::{Arg, App};
pub fn create_drop_cli_app() -> App<'static,'static> {
App::new("drop")
.version("0.3.3")
.author("Bryan G. <bryan@bryan.sh>")
.about("Screenshot & file upload tool with S3 support - http://github.com/gilbertw1/drop")
.arg(Arg::with_name("audio")
.short("-a")
.long("audio")
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>,
use clap::{App, Arg};
pub fn create_wordlebot_cli_app() -> App<'static> {
App::new("wordlebot")
.version("0.1")
.author("Bryan G. <bryan@bryan.sh>")
.about(
"Simple wordle solving bot. This bot can be used in three different
modes of operation.
{
"data": [
{
"market": {
"context": {
"away_score": 0,
"game_clock": 720,
"home_score": 0,
"market_number": 1,
"quarter": 1
#!/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
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='-']}"#;
@gilbertw1
gilbertw1 / error.txt
Created October 10, 2018 15:23
Arch Linux Servo OpenSSL Error
$ 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-