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-Item WSMan:\localhost\Client\TrustedHosts |
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
$tailRecursion = { | |
param($Path) | |
foreach ($childDirectory in Get-ChildItem -Force -LiteralPath $Path -Directory) { | |
& $tailRecursion -Path $childDirectory.FullName | |
} | |
$currentChildren = Get-ChildItem -Force -LiteralPath $Path | |
$isEmpty = $currentChildren -eq $null | |
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 | |
export FLASK_APP=application.py | |
export FLASK_DEBUG=1 | |
export FLASK_ENV=development | |
export FLASK_TESTING=True | |
flask run --host=0.0.0.0 |
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
Option Explicit | |
Dim objNetwork, strLocal | |
Dim strUNCPrinter1 | |
Dim strUNCPrinter2 | |
Dim strUNCPrinter3 | |
Dim strUNCPrinter4 | |
Dim strUNCPrinter5 | |
Dim strUNCPrinter6 |
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
@echo off | |
echo Choose: | |
echo [A] Set Static IP | |
echo [B] Set DHCP | |
echo. | |
:choice | |
SET /P C=[A,B]? | |
for %%? in (A) do if /I "%C%"=="%%?" goto A | |
for %%? in (B) do if /I "%C%"=="%%?" goto B |
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 os | |
import glob | |
import pandas as pd | |
os.chdir("C:/Users/ishmael/Downloads/csv") | |
extension = 'csv' | |
all_filenames = [i for i in glob.glob('*.{}'.format(extension))] | |
combined_csv = pd.concat([pd.read_csv(f) for f in all_filenames ]) |
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
for /R %%x in (*.jpg,*.png) do copy "%%x" C:\<targetdir> |
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
rem Stop and Disable KDS Services | |
net stop "MICROS KDS Controller" | |
sc config "MICROS KDS Controller" start= disabled | |
rem Stop and Disable IIS Services | |
net stop "IISADMIN" | |
sc config "IISADMIN" start= disabled | |
net stop "W3SVC" | |
sc config "W3SVC" start= disabled |
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
rem Setting DHCP for interface "Local Area Connection" | |
netsh interface ip set address "Local Area Connection" dhcp | |
netsh interface ip set dns "Local Area Connection" dhcp |
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
rem Setting Static IP for interface "Local Area Connection" | |
netsh interface ip set address name = "Local Area Connection" static 192.168.1.1 255.255.255.0 192.168.1.254 1 | |
netsh int ip set dns name = "Local Area Connection" source= static addr = 208.67.220.220 | |
netsh int ip add dns name = "Local Area Connection" addr = 208.67.222.222 index =2 |
OlderNewer