Skip to content

Instantly share code, notes, and snippets.

View smaug9's full-sized avatar
🎯
Focusing

Jeff smaug9

🎯
Focusing
View GitHub Profile
@smaug9
smaug9 / gitlab_setup.txt
Last active May 25, 2023 13:44
gitlab setup
# this file was generated by packages.gitlab.com for
# the repository at https://packages.gitlab.com/gitlab/gitlab-ce
deb [signed-by=/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg] https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ jammy main
deb-src [signed-by=/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg] https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ jammy main
#!/bin/bash
@smaug9
smaug9 / remap-capslock-to-control-win10.md
Created March 13, 2021 14:58 — forked from joshschmelzle/remap-capslock-to-control-win10.md
Remap Caps Lock to Control on Windows 10

Create a new binary value in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout named Scancode Map

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

or use PowerShell (run as Admin)

$online = test-online -computername $computername
$hostname = test-hostname -computername $computername
$winrm = test-winrm -computername $computername
$centrify = test-centrify -computername $computername
$idaptive = test-idaptive -computername $computername
$idaptiveversion = test-idaptiveversion -computername $computername
if ($online -and $hostname -and $winrm) {$ready = $true}
if ($ready) {
@smaug9
smaug9 / Make-Module.ps1
Created July 31, 2020 16:04 — forked from jdhitsolutions/Make-Module.ps1
My module generation code from my Chicago PowerShell presentation on July 31, 2020.
#requires -version 5.1
#requires -module PowerShellGet
<#
The function assumes you have git installed and use it for source control
This code contains hard-coded references for my environment. This file
is offered as educational and reference material. It will not run for you
without revision.
try {
$script:validate = $true
foreach ($key in $hash.keys) {
if (!($hash[$key])) {
$script:validate = $false
write-host "$key is empty"
throw "$key is empty"
}
}
}
@smaug9
smaug9 / send-htmltable.ps1
Created February 21, 2019 16:37
send-htmltable
#send-htmltable.ps1
[CmdletBinding()]
param (
[Parameter(
Mandatory = $true,
ValueFromPipeline = $true,
#ValueFromPipelineByPropertyName = $true,
Position = 0)]
@smaug9
smaug9 / c7000.cliconfig.xml
Last active December 17, 2018 16:29
c7000 cli config
#note: these are all written to configure all blades currently in chassis
#does not affect new blades in chassis
#
#ssh to oa, copy and paste these commands