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
syntax enable | |
filetype plugin indent on | |
call plug#begin(stdpath("data") . '/plugged') | |
" The default plugin directory will be as follows: | |
" - Vim (Linux/macOS): '~/.vim/plugged' | |
" - Vim (Windows): '~/vimfiles/plugged' | |
" - Neovim (Linux/macOS/Windows): stdpath('data') . '/plugged' | |
" You can specify a custom plugin directory by passing it as the argument | |
" - e.g. `call plug#begin('~/.vim/plugged')` |
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
#!/usr/bin/env python3 | |
#Copyright 2022 Kyle Petryszak | |
# Exmple hook script for PVE guests (hookscript config option) | |
# You can set this via pct/qm with | |
# pct set <vmid> -hookscript <volume-id> | |
# qm set <vmid> -hookscript <volume-id> | |
# where <volume-id> has to be an executable file in the snippets folder | |
# of any storage with directories e.g.: | |
# qm set 100 -hookscript local:snippets/hookscript-pci.py |
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
#ifndef SAFE_QUEUE | |
#define SAFE_QUEUE | |
#include <queue> | |
#include <mutex> | |
#include <condition_variable> | |
// A threadsafe-queue. | |
template <class T> | |
class SafeQueue |
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
#!/usr/bin/env python3 | |
''' | |
The following link is where the majoity of the code is pulled from: | |
https://www.simplifiedpython.net/python-gui-login/ | |
''' | |
from tkinter import * | |
import os |
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
#!/usr/bin/env bash | |
comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u) |
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
#!/usr/bin/env bash | |
for D in `find . -maxdepth 1 -mindepth 1 -type d` | |
do | |
echo $D | |
cd $D | |
git pull | |
cd .. | |
done |
I hereby claim:
- I am projectinitiative on github.
- I am kylepetryszak (https://keybase.io/kylepetryszak) on keybase.
- I have a public key ASCkjdmSHqiIEnGB9101TqFuZEamxp1Ebhq8NB0XlprOuwo
To claim this, I am signing this object:
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
FutureBuilder( | |
future: _getUID(), | |
builder: (BuildContext context, AsyncSnapshot<String> snapshot) { | |
if (snapshot.connectionState != ConnectionState.done) | |
return new Center( | |
child: new Container(child: CircularProgressIndicator())); | |
return new StreamBuilder( | |
stream: _getStream(snapshot.data.toString()), | |
builder: (BuildContext context, userSnapshot) { | |
// TEMPORARY FIX |
NewerOlder