Skip to content

Instantly share code, notes, and snippets.

View cfbarbero's full-sized avatar

Cris Barbero cfbarbero

View GitHub Profile
public class Program
{
public void Main(string[] args)
{
Configuration.Init()
.AddJsonFile("Config\\solr.json")
.AddXmlFile("Config\\omniture.xml");
new Runner().DoSomething();
}
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<SolrConfigs>
<SolrConfig jobBoardCode="HC" solrJobUrlSlave="http://search.svc.ontargetjobs.com:8983/solr/hc_ent_jobs" solrJobUrlMaster="http://PCOSOLRMSTR01:8983/solr/hc_ent_jobs" />
<SolrConfig jobBoardCode="HEC" solrJobUrlSlave="http://search.svc.ontargetjobs.com:8983/solr/hec_jobs" solrJobUrlMaster="http://PCOSOLRMSTR01:8983/solr/hec_jobs" />
</SolrConfig>
</Configuration>
<?xml version="1.0" encoding="utf-8"?>
<Config>
<Sites>
<SiteConfiguration JobBoardCode="HEC" Domain="localhost" SiteUrlQueryParameter="SN" SiteUrlSegmentIndex="0" DefaultSiteCode="hecc" SupportsSSL="false" UsesBackFillJobs="false">
<HideAdZonesForSites />
<HideApplyButtonForSites />
</SiteConfiguration>
</Sites>
</Config>
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst notepadplusplus
cinst fiddler4
cinst git-credential-winstore
cinst console-devel
cinst sublimetext2
cinst poshgit
cinst crashplan
#Environment Setup
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
Update-ExecutionPolicy RemoteSigned
# Dev Tools
cinst notepadplusplus
cinst fiddler4
cinst git-credential-winstore
cinst GoogleChrome
$privateQueueNames = @{
'.\private$\alerting.svc.ontargetjobs.local.error',
'.\private$\alerting.svc.ontargetjobs.local.input',
'.\private$\email.svc.ontargetjobs.local.error',
'.\private$\email.svc.ontargetjobs.local.input',
'.\private$\email.svc.ontargetjobs.qa.error',
'.\private$\email.svc.ontargetjobs.qa.input',
'.\private$\emp.svc.ontargetjobs.local.error',
'.\private$\emp.svc.ontargetjobs.local.input',
'.\private$\employer.svc.ontargetjobs.local.error',
#Environment Setup
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
#Enable-RemoteDesktop
Update-ExecutionPolicy RemoteSigned
#Add OTJ nuget feed to Chocolatey sources
choco sources add -name OTJ -source http://nuget.ontargetjobs.com/nuget
# Enable OTJ Nuget Fee
cinst NuGet.CommandLine
@cfbarbero
cfbarbero / Splunk.CountByDate
Created August 30, 2017 15:59
Splunk Count By Date
| convert timeformat="%Y-%m-%d" ctime(_time) AS date | stats count by date
docker run -it --rm -v ${pwd}:/var/app -v C:\Users\cris.barbero\.nuget\:/root/.nuget cfbarbero/aws-lambda-dotnet-build:dotnet-1.0.4.1 /bin/bash
\:\s(?<JVM_YGBeforeGC>\d+)K->(?<JVM_YGAfterGC>\d+)K\((?<JVM_YGTotalSize>\d+)K\),\s(?<JVM_YGGCTimeTaken>\d+.\d+)\ssecs\]\s(?<JVM_HeapBeforeGC>\d+)K->(?<JVM_HeapAfterGC>\d+)K\((?<JVM_HeapTotalSize>\d+)K\),\s(?<JVM_GCTimeTaken>\d+.\d+)\ssecs\]\s\[Times\:\suser=(?<JVM_usertime>\d*\.\d*)\ssys=(?<JVM_systime>\d*\.\d*),\sreal=(?<JVM_realtime>\d*\.\d*)\ssecs\]