Skip to content

Instantly share code, notes, and snippets.

@JCapriotti
JCapriotti / test.json
Last active January 21, 2023 17:10
test
{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"license": {
"name": "MIT"
}
},
"servers": [
2018/11/26 12:25:04 packer.exe: 2018/11/26 12:25:04 Uploading dir 'berks-cookbooks/' to 'C:/Windows/Temp/packer-chef-solo/cookbooks-0'
2018/11/26 12:25:08 packer.exe: #< CLIXML
2018/11/26 12:25:11 packer.exe: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2018/11/26 12:25:14 packer.exe: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj></Objs>#< CLIXML
2
[10-11-2018 02:25:42.870700] [ALERT] [api::] - -------NEW REQUEST RECEIVED-------
[10-11-2018 02:25:42.871600] [DEBUG] [api::checkDefaults] - Fetched defaults: {"deviceId":"f708b06932e071e027efd353","forceSSL":false,"isWebApp":false,"noNewUsers":false,"deviceName":"Flex TV (Home)","publicAddress":"[REDACTED]","revision":"000","updates":"[]","cleanLogs":true}
[10-11-2018 02:25:42.872000] [INFO] [my_user] [api::] - Loading session variables.
[10-11-2018 02:25:42.872300] [ALERT] [my_user] [api::setSessionData:fetchUserData] - Fetched, data: {"plexUserName":"xyz","plexEmail":"xyz","plexAvatar":"https:\/\/plex.tv\/users\/2b41d13c660b575f\/avatar?c=1538943069","plexPassUser":false,"plexToken":"xyz","apiToken":"xyz","returnItems":"6","rescanTime":"6","couchUri":"http:\/\/localhost","sonarrUri":"http:\/\/localhost","sickUri":"http:\/\/localhost","radarrUri":"http:\/\/localhost","plexDvrResolution":"0","plexDvrNewAirings":"true","plexDvrStartOffsetMinutes":"2","plexDvrEndOffsetMinutes":"2","appLanguage":"en","searchAc
@JCapriotti
JCapriotti / Error
Last active June 26, 2018 23:55
Kitchen Execution Expired
I, [2018-06-26T15:45:16.163919 #24960] INFO -- windows-base-windows-server-1803-core-containers: -----> Cleaning up any prior instances of <windows-base-windows-server-1803-core-containers>
I, [2018-06-26T15:45:16.165242 #24960] INFO -- windows-base-windows-server-1803-core-containers: -----> Destroying <windows-base-windows-server-1803-core-containers>...
I, [2018-06-26T15:45:16.167348 #24960] INFO -- windows-base-windows-server-1803-core-containers: Finished destroying <windows-base-windows-server-1803-core-containers> (0m0.00s).
I, [2018-06-26T15:45:16.168628 #24960] INFO -- windows-base-windows-server-1803-core-containers: -----> Testing <windows-base-windows-server-1803-core-containers>
I, [2018-06-26T15:45:16.169253 #24960] INFO -- windows-base-windows-server-1803-core-containers: -----> Creating <windows-base-windows-server-1803-core-containers>...
I, [2018-06-26T15:45:17.552579 #24960] INFO -- windows-base-windows-server-1803-core-containers: Detected platform: windows version 1803rtm on x86_64.
@JCapriotti
JCapriotti / TFS.md
Created February 16, 2017 17:43
Meld Settings

Compare

 C:\Program Files (x86)\Meld\Meld.exe
 %1 --label=%6 %2 --label=%7

Merge

C:\Program Files (x86)\Meld\Meld.exe
%1 --label=%6 %4 --label=%9 %2 --label=%7
@JCapriotti
JCapriotti / error.txt
Created February 15, 2017 20:27
Karaf error with pinned Java cookbook 1.47.0
* log[karaf version] action write
* ark[karaf] action put
* directory[/usr/local/karaf] action create (up to date)
* remote_file[/tmp/kitchen/cache/karaf.tar.gz] action create (up to date)
* execute[unpack /tmp/kitchen/cache/karaf.tar.gz] action nothing (skipped due to action :nothing)
* execute[set owner on /usr/local/karaf] action nothing (skipped due to action :nothing)
(up to date)
* bash[start karaf] action run
- execute "bash" "/tmp/chef-script20170215-11286-1zeulg"
@JCapriotti
JCapriotti / gist:8ba480f60f958e95a3eadbce23093b43
Created November 29, 2016 16:54
Karaf Service Wrapper Output
RedHat/Fedora/CentOS Linux system detected (SystemV):
To install the service:
$ ln -s /usr/local/karaf/bin/karaf-service /etc/init.d/
$ chkconfig karaf-service --add
To start the service when the machine is rebooted:
$ chkconfig karaf-service on
To disable starting the service when the machine is rebooted:
$ chkconfig karaf-service off
sudo su - postgres -c 'createuser admin --superuser'
sudo su - postgres -c 'psql --command="alter user admin with password '\''ultrafubar1A'\'';"'

PS code

$adapters = Get-WmiObject -Class Win32_NetworkAdapterConfiguration
Write-Output "adapters[10]:" ($adapters[10] | Format-List)
Write-Output "adapters[11]:" ($adapters[11] | Format-List)
Write-Output "adapters[12]:" ($adapters[12] | Format-List)

Output

adapters[10]:

@JCapriotti
JCapriotti / kitchen.yml
Created March 4, 2016 22:59
Vagrant driver for private network
driver:
network:
- ["private_network", {ip: "192.168.33.34", virtualbox__intnet: true}]