This file contains hidden or 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
import urllib.request, json | |
import tkinter as tk | |
from tkinter import simpledialog, messagebox | |
import tkinter as tk | |
from tkinter import simpledialog | |
from tkinter import messagebox | |
# Function to show warning popup |
This file contains hidden or 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
Get-EventLog System -Newest 10000 | ` | |
Where EventId -in 41,1074,1076,6005,6006,6008,6009,6013,1001,1003 | ` | |
Format-Table TimeGenerated,EventId,UserName,Message -AutoSize -wrap |
This file contains hidden or 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
$SourceDir = "C:\" | |
foreach ($file in Get-ChildItem -Force $SourceDir -Recurse) | |
{ | |
if ((($file.Extension -match ".doc") -or ($file.Extension -match ".xls"))-and ($file.Name -like "~$*")) | |
{ | |
Remove-Item $file.FullName -Force | |
} | |
This file contains hidden or 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
import pandas as pd | |
import xlsxwriter | |
def dataframes2xls(dfs,fname, path=''): | |
with pd.ExcelWriter(path + fname + '.xlsx', engine='xlsxwriter') as writer: | |
for name,df in dfs.items(): | |
df.to_excel(writer, index=False, header=True, sheet_name=name) | |
# Get the xlsxwriter workbook and worksheet objects. | |
workbook = writer.book | |
worksheet = writer.sheets[name] |
This file contains hidden or 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
;SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
SetKeyDelay, 20 | |
^j:: | |
Loop, 10 | |
{ |
This file contains hidden or 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 | |
# Wait for LDXE to load | |
sleep 5 | |
# Stream URL | |
url='https://stream.revma.ihrhls.com/zc829' | |
# Start VLC once in the background if not already running | |
start_vlc_once() { |
This file contains hidden or 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
<# | |
.Description | |
A program to interface Br Data with Bartender manually | |
#> | |
Add-Type -AssemblyName System.Windows.Forms | |
Add-Type -AssemblyName System.Drawing | |
$form = New-Object System.Windows.Forms.Form | |
$form.Text = 'Select a Computer' |
This file contains hidden or 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
# Waits for CSOR App to push a text file to directory then runs BR Data SQL export | |
while( $true ) | |
{ | |
if( (Get-ChildItem C:\Brdata\CSHOST\auto\*.txt | Measure-Object).Count -eq 1){ | |
Start-Process -FilePath "C:\Brdata\plbwin.exe" -ArgumentList "brsqlexp autocmd numdays=5 DSDDET DSDHDR" | |
} | |
Remove-Item 'C:\Brdata\CSHOST\auto\*' -Include *.txt |
This file contains hidden or 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
DECLARE @name VARCHAR(50) -- database name | |
DECLARE @path VARCHAR(256) -- path for backup files | |
DECLARE @fileName VARCHAR(256) -- filename for backup | |
DECLARE @fileDate VARCHAR(20) -- used for file name | |
-- specify database backup directory | |
SET @path = 'F:\ACSSQL\' | |
-- specify filename format | |
SELECT @fileDate = CONVERT(VARCHAR(20),GETDATE(),112) + '_' + REPLACE(CONVERT(VARCHAR(20),GETDATE(),108),':','') |
This file contains hidden or 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
from email.message import EmailMessage | |
import smtplib | |
import urllib.request | |
import subprocess | |
import smtplib | |
import socket | |
from email.mime.text import MIMEText | |
import datetime | |
import time |
NewerOlder