# clean device of any partitions or filesystem metadata
wipefs -a /dev/fioa
# create new ext4 filesystem across disk, no partition necessary
mkfs.ext4 /dev/fioa
# append mount instruction to /etc/fstab
test
I hereby claim:
- I am gravcat on github.
- I am nthieling (https://keybase.io/nthieling) on keybase.
- I have a public key ASBmxoeDcHt95sIyY6eCSkyfCpFtvmzUi9Aa1e9Glpj5mwo
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
import os | |
import json | |
import argparse | |
import stashy | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-u','--username', help='Stash username used in API authentication.') | |
parser.add_argument('-p', '--password', help='Stash password used in API authentication.') | |
args = parser.parse_args() | |
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
param ( | |
[String] | |
$File, | |
[String] | |
$Alg = SHA256 | |
) | |
(Get-FileHash $File -Algorithm $Alg).Hash.ToLower() |
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
avconv -ar 44100 \ | |
-ac 2 \ | |
-acodec pcm_s16le \ | |
-f s16le \ | |
-ac 2 \ | |
-i /dev/zero \ | |
-f video4linux2 \ | |
-r ${OUTPUT_FRAMERATE} \ | |
-i ${VIDEO_DEVICE} \ | |
-vcodec copy \ |
i do some of this stuff so infrequently that it becomes a mess wading through white noise to find what i need.
goal: cohesive brush-up document
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
# Uncomment this line in order to enable debugging through logs | |
# debug = true | |
defaultEntryPoints = ["http", "https"] | |
[entryPoints] | |
[entryPoints.http] | |
address = ":80" | |
[entryPoints.https] | |
address = ":443" | |
[entryPoints.https.tls] | |
MinVersion = "VersionTLS12" |
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
<# | |
.NAME | |
add_user_to_ad_groups.ps1 | |
.PARAMETER username | |
Username which you will add group memberships to. | |
.PARAMETER import_file | |
If not running in single_group mode (see single_group parameter), declare the CSV file that holds all desired groups to make the user become a member of. |
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
param ( | |
$domain = $env:USERDOMAIN | |
) | |
$ErrorActionPreference = "Stop" | |
function Get-AdminUsername { | |
# Admin username determinationator | |
$user = $env:USERNAME |
NewerOlder