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
# Make sure we are running as Admin | |
If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")){ | |
$arguments = "& '" + $myinvocation.mycommand.definition + "'" | |
Start-Process powershell -Verb runAs -ArgumentList $arguments | |
Break | |
} | |
# # # # | |
$Tab = [char]9 |
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
#!/bin/bash | |
# Set the internal field separator | |
IFS=$'\n' | |
pkill ncat | |
#################### | |
# regex pattern for IP addresses |
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
Function Get-BasicADObject | |
{ | |
<# | |
.SYNOPSIS | |
Function allow to get AD object info without AD Module. | |
.DESCRIPTION | |
Use Get-BasicADObject to get information about Active Directory objects. | |
.PARAMETER Filter |
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
function Get-PublicKey | |
{ | |
# https://stackoverflow.com/questions/22233702/how-to-download-the-ssl-certificate-from-a-website-using-powershell | |
[OutputType([System.Security.Cryptography.X509Certificates.X509Certificate])] | |
PARAM ( | |
[Uri]$Uri | |
) | |
if (-Not ($uri.Scheme -eq "https")) |
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
!/bin/bash | |
# Set the internal field separator | |
IFS=$'\n' | |
## | |
# Install pre-reqs | |
## | |
yum install libtool autoconf git |
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
@-ms-keyframes fadeIn { | |
from { | |
opacity: 0; | |
} | |
to { | |
opacity: 1; | |
} | |
} | |
@-webkit-keyframes fadeIn { | |
from { |
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
[* | |
* Written in PowerOn, a language used to access the Episys database, | |
* Symitar's core processing soution for credit unions | |
*] | |
[This is a template for creating specfiles.] | |
TARGET=ACCOUNT [ Modify here] | |
DEFINE | |
[Define variables and arrays here.] |
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
<html> | |
<!-- https://fullcalendar.io/ --> | |
<!-- https://getbootstrap.com/docs/3.3/javascript/#tooltips --> | |
<head> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.6.2/fullcalendar.min.css"></link> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.6.2/fullcalendar.print.css" media="print"></link> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.19.1/moment.min.js"></script> |
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
private static List<OrderedDictionary> TrySqlQuery(string sqlQuery) | |
{ | |
List<OrderedDictionary> sqlResults = new List<OrderedDictionary>(); | |
using (SqlConnection conn = new SqlConnection(connectionString)) | |
{ | |
try | |
{ | |
conn.Open(); | |
using (SqlCommand _cmd = new SqlCommand(sqlQuery, conn)) | |
{ |
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
# Sometimes my SQLEXPRESS service doesnt start with the rest of my services even though it is set to automatic | |
# In order to get it started, I would have to explicity switch over to my domain admin account and kick the service | |
# This allows me to shortcut all of that | |
$PSPath = "C:\Windows\System32\WindowsPowerShell\v1.0" | |
$admin = Get-Credential; | |
$startSqlService = @' | |
$(Get-Service 'MSSQL$SQLEXPRESS').Start(); |
NewerOlder