This file contains hidden or 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
{ pkgs, lib, config, inputs, ... }: | |
{ | |
packages = | |
let | |
# mypkgs = import inputs.nixpkgs-unstable { | |
mypkgs = import inputs.nixpkgs { | |
inherit (pkgs.stdenv) system; |
This file contains hidden or 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
install_nerd_fonts() { | |
# https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/JetBrainsMono.zip | |
TMPDIR=/tmp/nerd-font-install | |
URL="https://github.com/ryanoasis/nerd-fonts/releases/download" | |
VERSION="v2.1.0" | |
FONTS=( | |
3270 | |
Agave AnonymousPro Arimo AurulentSansMono | |
BigBlueTerminal BitstreamVeraSansMono | |
CascadiaCode CodeNewRoman Cousine |
This file contains hidden or 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
xmodmap -e "keycode 134 = Super_L" |
This file contains hidden or 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
for i in $(seq 02 04); do | |
for j in $(seq 01 36); do | |
printf -v k "r%02dn%02d.sls\n" $i $j; | |
touch $k; | |
done; | |
done |
This file contains hidden or 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
set-window-option -g mode-keys vi | |
bind-key -T copy-mode-vi 'v' send -X begin-selection | |
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel | |
# Set the prefix to ^A. | |
unbind C-b | |
set -g prefix ^A | |
bind a send-prefix |
This file contains hidden or 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
# I found the following useful snippet here | |
# http://ilovepowershell.com/2015/09/10/how-to-check-if-a-server-needs-a-reboot/ | |
#Adapted from https://gist.github.com/altrive/5329377 | |
#Based on <http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542> | |
function Test-PendingReboot | |
{ | |
if (Get-ChildItem "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending" -EA Ignore) { return $true } | |
if (Get-Item "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" -EA Ignore) { return $true } | |
if (Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager" -Name PendingFileRenameOperations -EA Ignore) { return $true } |
This file contains hidden or 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 | |
# Copy any of the bing downloaded images that are used on the windows 10 lock screen. | |
# Once you set this up you can then set your background to slideshow and point it | |
# to the archive directory | |
# | |
# This was taken from somewhere I'd like to attribute but can't find the URL. | |
# If this is yours please let me know and I'll attribute you. | |
IMAGE_FOLDER="/mnt/c/Users/jrizzo/AppData/Local/Packages/Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy/LocalState/Assets" | |
LIST_SOURCE="/mnt/c/tmp/spotlight/listsource.txt" |
This file contains hidden or 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
truncate -s 0 /var/lib/docker/containers/*/*-json.log |
This file contains hidden or 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
$env:VAGRANT_DEBUG_LAUNCHER=1; vagrant ssh --debug > debug.txt | tee-object -variable debugvar | |
2017/09/12 13:56:40 launcher: path = C:\HashiCorp\Vagrant\bin\vagrant.exe | |
2017/09/12 13:56:40 launcher: installerDir = C:\HashiCorp\Vagrant | |
2017/09/12 13:56:40 launcher: embeddedDir = C:\HashiCorp\Vagrant\embedded | |
2017/09/12 13:56:40 launcher: gemPaths (initial) = []string{"C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.9.8", "C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-share-1.1.9"} | |
2017/09/12 13:56:40 launcher: bad gemPath += C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-share-1.1.9\lib\vagrant\version.rb | |
2017/09/12 13:56:40 launcher: gemPaths (final) = []string{"C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.9.8"} | |
2017/09/12 13:56:40 launcher: gemPath = C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.9.8 | |
2017/09/12 13:56:40 launcher: windows detected OS - msys | |
2017/09/12 13:56:40 launcher: windows detected arch - 32 |
This file contains hidden or 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
$switchName = "nat_switch" | |
$network = "192.168.0.0" | |
$networkMask = "24" | |
$defaultGateway = "192.168.0.1" | |
New-VMSwitch -SwitchName $switchName -SwitchType Internal | |
$networkAdapter = Get-NetAdapter | where { $_.Name -eq "vEthernet ($switchName)" } | |
New-NetIPAddress -IPAddress $defaultGateway -PrefixLength $networkMask -InterfaceIndex $networkAdapter.ifIndex | |
New-NetNat -Name $networkAdapter.ifIndex -InternalIPInterfaceAddressPrefix $network/$networkMask | |
# References |
NewerOlder