Gentoo 的 Minimal Install CD 每周都会自动构建一个版本,服务器一般使用最新的 x86_64 版本。 国内的镜像下载地址是:
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.
#Golang Markdown Librarise Analytics
- 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 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); |
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
# GCC | |
CFLAGS="-march=native -O2 -pipe" | |
CXXFLAGS="${CFLAGS}" | |
CHOST="x86_64-pc-linux-gnu" | |
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" | |
MAKEOPTS="-j5" | |
# USE | |
SUPPORT="pulseaudio btrfs mtp git udisks gvfs png jpg jpeg alsa client icu sudo python consolekit udev" | |
DESKTOP="X policykit fileroller cairo cups mount curl dbus vim infinality emoji cjk" |
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
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 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 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 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
package main | |
import ( | |
"crypto/tls" | |
"fmt" | |
"log" | |
"net" | |
"net/smtp" | |
) |
NewerOlder