- Weekly Agenda (created on a different day, and embedded with
/Block Reference
) - [[Morning Questions]] [[2/24 -- 3/1/2020]]
- {{[[slider]]}} How many hours of sleep did I get?
- [[What's one thing top of mind today?]]
- [[What's the one thing I need to get done today to make progress?]]
- Agenda
- {{[[TODO]]}} 2 hours focused time
- {{[[TODO]]}} Read 30 minutes #goal-learning #habit
- Health & self-care
- {{[[TODO]]}} 30 minutes outside #goal-health #habit
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
app: | |
image: bradrydzewski/go:1.2 | |
git: | |
path: github.com/drone/drone | |
environment: | |
- GOROOT=/usr/local/go | |
- PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
services: | |
- redis | |
- mysql |
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
# IMPORTANT! | |
# This gist has been transformed into a github repo | |
# You can find the most recent version there: | |
# https://github.com/Neo23x0/auditd | |
# ___ ___ __ __ | |
# / | __ ______/ (_) /_____/ / | |
# / /| |/ / / / __ / / __/ __ / | |
# / ___ / /_/ / /_/ / / /_/ /_/ / | |
# /_/ |_\__,_/\__,_/_/\__/\__,_/ |
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
pub fn copy_with_progress<R: ?Sized, W: ?Sized>(progress: &ProgressBar, | |
reader: &mut R, writer: &mut W) | |
-> io::Result<u64> | |
where R: Read, W: Write | |
{ | |
let mut buf = [0; 16384]; | |
let mut written = 0; | |
loop { | |
let len = match reader.read(&mut buf) { | |
Ok(0) => return Ok(written), |
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
pub fn http_download_to_path(url: &str, save: &PathBuf) -> Result<()> { | |
let client = Client::with_connector(HttpsConnector::new(NativeTlsClient::new().unwrap())); | |
let mut res = client.get(url).send()?; | |
if res.status != hyper::Ok { | |
return Err(Error::SomeError))); | |
} | |
let use_progress = true; | |
if use_progress { | |
use indicatif::{ProgressBar, ProgressStyle}; |
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
use std::collections::HashMap; | |
use std::collections::HashSet; | |
use std::hash::Hash; | |
use std::fmt::Debug; | |
#[derive(Debug, Clone)] | |
struct EdgeIndex<Ix>(Ix); | |
#[derive(Debug, Clone)] | |
struct NodeIndex<Ix>(Ix); |
You can use this diagram as a template to create your own git branching diagrams. Here's how:
- Create a new diagram with diagrams.net (formerly draw.io)
- Go to File > Open From > URL
- Insert this url (it points to the xml data below):
https://gist.githubusercontent.com/bryanbraun/8c93e154a93a08794291df1fcdce6918/raw/bf563eb36c3623bb9e7e1faae349c5da802f9fed/template-data.xml
- Customize as needed for your team.