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
call plug#begin(stdpath('data') . '/plugged') | |
Plug 'tpope/vim-sensible' | |
" Theme | |
Plug 'nanotech/jellybeans.vim' | |
" NetRW | |
Plug 'tpope/vim-vinegar' | |
let g:netrw_liststyle = 3 |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: paperless-paperless-ng | |
labels: | |
helm.sh/chart: paperless-ng-0.1.0 | |
app.kubernetes.io/name: paperless-ng | |
app.kubernetes.io/instance: paperless | |
app.kubernetes.io/version: "1.4.5" | |
app.kubernetes.io/managed-by: Helm |
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
variant: fcos | |
version: 1.2.0 | |
passwd: | |
users: | |
- name: core | |
password_hash: $1$Tl/oqLxt$r51.Qdtd50jxJPvCdW9cO0 | |
ssh_authorized_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxTPaIwBsZIeJniHYe75gdm5p0M5J7KWtJxbk60ZMhxaq/cl/s0NBCX+UOzL9EFEMeUCQdslJ1g6BgNeYc1rMaPbYYPfYE/kcFO9e4vi7Wnjiv/2cyF+IUIPoi4FSOsQWCWt6eAciWjtGvVB1i2Cx6qr2dzutukdT3Ts5u3DnCKhbxmSUMZLOb8Iof4lu6rjOwJ31/7+Hn5nsL0JaAA8TnVMxhDbqw21dpPCsNoe1Jff1/rYcZsgqkoVOtOOERD1HtxADHWQFiQuswKilAsOzTLyYQLosRnK8Pu7O5tmdoe0lDIHnrMjIpvMT0l9PnqvvWjsTu9ZeBaPKxdcQLfuWv joe@xps.ibj.io | |
storage: | |
#disks: |
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 | |
echo "YOU ARE ABOUT TO PXE BOOT & REBOOT $1!!!!!!!!! You were warned" | |
ssh root@$1-idrac.infra.ibj.io <<EOF | |
racadm config -g cfgServerInfo -o cfgServerBootOnce 1 | |
racadm config -g cfgServerInfo -o cfgServerFirstBootDevice PXE | |
racadm serveraction hardreset | |
exit | |
EOF |
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::pool::ThreadPool; | |
use crate::request::Request; | |
use crate::response::Response; | |
use crate::serveroptions::ServerOptions; | |
use crate::statuscode::StatusCode; | |
use crossbeam_utils::thread; | |
use regex::Regex; | |
use std::collections::HashMap; | |
use std::io::prelude::*; | |
use std::net::{TcpListener, TcpStream}; |
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::futil::read_lines; | |
use anyhow::anyhow; | |
use std::path::PathBuf; | |
use std::collections::HashSet; | |
fn get_options(a: &HashSet<u32>, i: u32) -> Vec<u32> { | |
let mut b = Vec::new(); | |
for v in a { | |
if *v >= i - 3 { |
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
8-9 x: xxxxxxxrk | |
5-8 f: fxffmfff | |
2-5 c: ccspwpc | |
1-4 g: gggg | |
9-10 l: lllllllllk | |
1-3 j: djjfz | |
3-4 n: nnnmn | |
8-9 l: llllllllc | |
4-5 v: vvvvm | |
3-4 t: ttnt |
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
extern crate regex; | |
use regex::Regex; | |
use std::path::PathBuf; | |
use crate::futil::read_lines; | |
pub fn y2020p2(input: &PathBuf) -> Result<(), anyhow::Error> { | |
let re = Regex::new("(\\d+)-(\\d+) (\\w): (\\w+)").unwrap(); | |
let mut passes1 = 0; |
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
extern crate regex; | |
use regex::Regex; | |
use std::path::PathBuf; | |
use crate::futil::read_lines; | |
pub fn y2020p2(input: &PathBuf) -> Result<(), anyhow::Error> { | |
let re = Regex::new("(\\d+)-(\\d+) (\\w): (\\w+)").unwrap(); | |
let mut passes1 = 0; |
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
unsafe fn expand_to_fit_elements(&self, additional: usize) -> Result<Cap::Masker, ()> { | |
let logical_size = self.head.get() - self.base.get(); | |
let new_logical_size = logical_size + additional; | |
let current_capacity = self.capacity.get(); | |
let current_size = current_capacity.size(); | |
let current_mask = current_capacity.make_mask(); | |
if new_logical_size > current_capacity { | |
// We have to expand to fit the new elements |
NewerOlder