This file contains 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
func GetDateFormatForParsing(rawDate string) string { | |
separator := "/" | |
dayCharacterCount := 0 | |
slashParts := strings.Split(rawDate, "/") | |
dashParts := strings.Split(rawDate, "-") | |
if len(dashParts) > 1 { | |
dayCharacterCount = len(dashParts[0]) | |
separator = "-" |
This file contains 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
# Load colors, auto-completion, and version control information | |
autoload -Uz compinit colors vcs_info | |
colors | |
compinit | |
precmd() { vcs_info } | |
# Format the vcs_info_msg_0_ variable, see https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg for color number (replace 039 with any number you wanted) | |
zstyle ':vcs_info:git:*' formats '[%F{039}%b%f]' | |
# Set up the prompt (with git branch name) |
This file contains 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
name: Sqitch Validation | |
on: | |
# Enable pipeline on code push | |
push: | |
# Enable pipeline on pull request | |
pull_request: | |
# Enable pipeline manual triggers | |
workflow_dispatch: |
This file contains 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
using System; | |
using System.Net; | |
using Microsoft.Exchange.WebServices.Data; | |
namespace ExchangeReader | |
{ | |
class Program | |
{ | |
static ExchangeService ConnectToService(string url, string username, string password, string domain) | |
{ |
This file contains 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
using System; | |
using System.Management; | |
namespace OSFriendlyName | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string result = string.Empty; |
This file contains 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
using System; | |
namespace PerformanceCounter | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
using (var counter = new System.Diagnostics.PerformanceCounter("Memory", "Available MBytes")) | |
{ |
This file contains 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
<?php | |
use Illuminate\Database\Seeder; | |
class UserUnitTableSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void |
This file contains 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
<?php // Date Helper | |
namespace App\Helpers; | |
use Carbon\Carbon; | |
class DateHelper | |
{ | |
public static function parse_from_datepicker($date_raw) | |
{ |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] | |
"AcceptTrustedPublisherCerts"=dword:00000001 | |
"ElevateNonAdmins"=dword:00000001 | |
"TargetGroup"="Workstations" | |
"TargetGroupEnabled"=dword:00000000 | |
"WUServer"="http://10.72.3.192:8530"; | |
"WUStatusServer"="http://10.72.3.192:8530"; |