Skip to content

Instantly share code, notes, and snippets.

View Ichbinjoe's full-sized avatar

Joe Hirschfeld Ichbinjoe

View GitHub Profile
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
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
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:
#!/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
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};
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 {
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
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;
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;
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