Recently Updated Pages
Windows Server Audit Policy
Backup To backup existing auditing settings: auditpol /backup /file:C:\Temp\Audit.txt Restore ...
Configuring w32time As NTP Client
Step 1: Stop the time service net stop w32time Step 2: Set the manual peer list of external ser...
Create histogram from df
df_trace_person_count sample: trace id no of unique person 0 TRACE_PERSON_00...
Combine df with concat
# Combine all dataframe with concat frame_format = [df_f0_f1, df_f1_f2, df_f2_f3, df_f3_f4, df_f...
Set max row for dataframe output
# max row to display dataframe set to 7 import pandas as pd pd.set_option('display.max_rows', 7...
Create SQLite DB from Wikipedia
Create an SQLite DB based on the British Monarch Family Tree.https://en.wikipedia.org/w/index.php...
Inheritance
class Person(object): # Constructor def __init__(self, name): self.name = n...
Drop Table
Code: -- Drops (to be removed) USE Database1; DROP TABLE Computer; DROP TABLE User; DROP...
Sample Database Dummy Data
Create /********************************************************************************/ /* ...
2s Compliment Calculator
Example: Code: def binaryToDecimal(val: str) -> int: return int(val, 2) def decimal...
Decimal to Binary Converter
Example: Code: def decToBinLongDivision(decimal: int) -> None: numtodivide = decimal ...
Decimal to Hex Converter
Example: Code: def decToHexLongDivision(decimal: int) -> str: numtodivide = decimal ...
Sort Array Descending Order
// Sort Descending Date tempArray = originalArray.slice(); tempArray.sort(function(a,b){ ...
Bitwise OR XOR AND Calculator
Example: Code: def valid_expression(expression: str) -> bool: """ Returns True if string...
PSObject
Code: # Dummy Data $name = "John Doe" $age = 29 $gender = "Male" $desc = "Nameless Person" ...
If-Else Statement
if ($computertype -eq "64bit"){ $result = "64bit" } elseif ($computertype -eq "32bit") { ...
Function
Create a function and return the value function CombineString () { [CmdletBinding()] p...
Reboot Windows Server
- name: Reboot server win_reboot: connect_timeout: 1200 reboot_timeout: 600 # Gives ...
Set Fail Msg
Set fail message when directory does not exist - name: Check if src directory exist in target ma...
Upload File to Remote Directory
- name: Upload program file to target machine win_copy: src: "/tmp/setup.exe" dest: ...