Skip to content

Instantly share code, notes, and snippets.

execve("/usr/bin/ssh", ["ssh", "-v", "pi@bosspi1"], [/* 14 vars */]) = 0
brk(NULL) = 0x7fffdcd55000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=20599, ...}) = 0
mmap(NULL, 20599, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb86baf4000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
@garfbradaz
garfbradaz / example.sql
Created April 27, 2018 15:02
Example query to CosmosDB
SELECT DISTINCT CAST(edt.[EditionID] AS varchar) AS editionId
,edt.[CoverTitle] AS coverTitle
,edt.[ISBN13] AS isbn13
,edt.[SubTitle] AS subTitle
,edt.[CoverAuthors] AS coverAuthors
,edt.[WorkReference] AS workReference
,edt.[Binding] AS binding
,edt.[Division] AS division
,edt.[Format] AS format
,edt.[SortTitle] AS sortTitle
at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)\r\n at System.Runtime.Serialization.FormatterServices.<>c__DisplayClass9_0.<GetSerializableMembers>b__0(MemberHolder _)\r\n at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)\r\n at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)\r\n at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()\r\n at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)\r\n at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)\r\n at System.Runtime.Serialization.Formatters.Binary.O
@garfbradaz
garfbradaz / tfs_app_transformation.ps1
Created November 5, 2017 09:16
Simple Script to update app.config keys during the Team Services (TFS) Build.
New-Item -ItemType directory -Path $(Build.SourcesDirectory)\EmailTests
$xml = [xml](Get-Content app.config)
$xml.configuration.'system.net'.mailSettings.smtp.specifiedPickupDirectory | foreach { $_.pickupDirectoryLocation = "$(Build.SourcesDirectory)\EmailTests\" }
$xml.Save((Resolve-Path "app.config"))
Write-Host $(Build.SourcesDirectory)
@garfbradaz
garfbradaz / MarkDownCommentNewUserDoneTour.md
Created July 22, 2017 08:20
Comment to new users StackOverFlow users who need a gentle nudge - WHO HAVE DONE TOUR - Asking A question.

Hello, please take a time to go through the welcome tour to know your way around here , read how to create a [mcve] example and also check [ask] so you increase your chances to get feedback and useful answers.

@garfbradaz
garfbradaz / MarkDownCommentNewUserTour.md
Created July 22, 2017 08:17
Comment to new users StackOverFlow users who need a gentle nudge - WHO HAVENT DONE TOUR - Asking A quESTION

Hello and welcome to Stack Overflow, please take a time to go through the welcome tour to know your way around here (and also to earn your first badge), read how to create a [mcve] example and also check [ask] so you increase your chances to get feedback and useful answers.

@garfbradaz
garfbradaz / testResults.xml
Created May 15, 2017 19:38
System.Security.Principal.Windows.Tests - Error in Tests
<?xml version="1.0" encoding="utf-8"?>
<assemblies>
<assembly name="System.Security.Principal.Windows.Tests.dll" environment="64-bit .NET (unknown version) [collection-per-class, parallel (4 threads)]" test-framework="xUnit.net 2.2.0.3300" run-date="2017-05-15" run-time="07:44:02" total="10" passed="7" failed="2" skipped="1" time="0.577" errors="0">
<errors />
<collection total="1" passed="0" failed="1" skipped="0" name="Test collection for WindowsPrincipalTests" time="0.066">
<test name="WindowsPrincipalTests.WindowsPrincipalIsInRoleNeg" type="WindowsPrincipalTests" method="WindowsPrincipalIsInRoleNeg" time="0.0664984" result="Fail">
<failure exception-type="System.ComponentModel.Win32Exception">
<message><![CDATA[System.ComponentModel.Win32Exception : The trust relationship between this workstation and the primary domain failed]]></message>
<stack-trace><![CDATA[ at System.Security.Principal.NTAccount.TranslateToSids(IdentityReferenceCollection sourceAccounts, B
@garfbradaz
garfbradaz / testResults.xml
Created May 15, 2017 19:34
System.Net.Http.Functional.Tests - Error in Tests
<?xml version="1.0" encoding="utf-8"?>
<assemblies>
<assembly name="System.Net.Http.Functional.Tests.dll" environment="64-bit .NET (unknown version) [collection-per-class, parallel (4 threads)]" test-framework="xUnit.net 2.2.0.3300" run-date="2017-05-15" run-time="07:40:50" total="311" passed="299" failed="1" skipped="11" time="3.061" errors="0">
<errors />
<collection total="9" passed="9" failed="0" skipped="0" name="Test collection for System.Net.Http.Functional.Tests.HttpClientHandler_SslProtocols_Test" time="0.005">
<test name="System.Net.Http.Functional.Tests.HttpClientHandler_SslProtocols_Test.SetGetProtocols_Roundtrips(protocols: None)" type="System.Net.Http.Functional.Tests.HttpClientHandler_SslProtocols_Test" method="SetGetProtocols_Roundtrips" time="0.0045897" result="Pass">
<traits>
<trait name="category" value="nonnetfxtests" />
</traits>
</test>
@garfbradaz
garfbradaz / testResults.xml
Created May 15, 2017 19:30
System.Net.Security.Tests - Errors on Test
<?xml version="1.0" encoding="utf-8"?>
<assemblies>
<assembly name="System.Net.Security.Tests.dll" environment="64-bit .NET (unknown version) [collection-per-class, parallel (4 threads)]" test-framework="xUnit.net 2.2.0.3300" run-date="2017-05-15" run-time="07:40:23" total="138" passed="130" failed="3" skipped="5" time="5.276" errors="0">
<errors />
<collection total="3" passed="3" failed="0" skipped="0" name="Test collection for System.Net.Security.Tests.ServerRequireEncryptionTest" time="1.151">
<test name="System.Net.Security.Tests.ServerRequireEncryptionTest.ServerRequireEncryption_ClientNoEncryption_NoConnect" type="System.Net.Security.Tests.ServerRequireEncryptionTest" method="ServerRequireEncryption_ClientNoEncryption_NoConnect" time="0.5059233" result="Pass">
<traits>
<trait name="category" value="nonuapaottests" />
</traits>
</test>