Skip to content

Instantly share code, notes, and snippets.

View SibTiger's full-sized avatar
⛈️
Simplifying PowerShell Compact-Archive Tool

Nicholas Gautier SibTiger

⛈️
Simplifying PowerShell Compact-Archive Tool
View GitHub Profile
@SibTiger
SibTiger / FakeProcessing.bat
Created September 2, 2016 04:37
Just a fun script that demonstrates ridiculous amount of delay's that gives an 'illusion' of instense processing.
REM This was created as an example from a discussion on IRC
REM http://thedailywtf.com/Articles/The-Slow-Down-Loop.aspx
@REM Repeat Redundancy Hopping
@SET Max=4294967296
@GOTO Setup
:Setup
@SET Integer=0
@SibTiger
SibTiger / FloodTerminalBinary.bat
Created September 2, 2016 04:39
Flood Terminal with 0's and 1's as quickly as possible in an endless loop
@ECHO OFF
GOTO :Main
:Main
CALL :RandomizedBinary
ECHO|SET /P=%ERRORLEVEL%
GOTO :Main
@SibTiger
SibTiger / MontyhallExperiment.bat
Last active May 19, 2017 07:58
This is an experiment to see which is faster: Command Shell, Python, LuaJIT, ASM, C, C#, or GO. Spoiler alert: CMD is the slowest!
@ECHO OFF
REM ===========================================================================================
REM THE MONTYHALL EXPERIMENT
REM This is an experiment to see which is faster: Command Shell, Python, LuaJIT, ASM, C, C#, or D.
REM ORIGINAL CODE SOURCE TO MERGE: http://pastebin.com/HLrqjwn5
REM -------------------------------------------------------------------------------------------
REM Author of the 'converted' source code: Nicholas "Tiger" Gautier
REM Date: 21.July.2015
REM
REM Using the original source code, I have converted it from C language to Batch for the Command
@SibTiger
SibTiger / BashPrompt.bat
Created September 2, 2016 05:06
Emulates the Bash prompt used on a particular VPN server.
@REM Emulate Bourne Shell 'waiting for input' string that appears within the terminal
@prompt [$D$S$T]$S[$P]$_$$$S
@CLS
@START "Command Shell" CMD /K CD /D "%UserProfile%"
@SibTiger
SibTiger / Prompt_PowerShell.ps1
Last active June 10, 2017 04:20
Emulates the Bash prompt used on a particular VPN server, using PowerShell.
# Change our prompt to match with our favorite formatting
function prompt
{
Write-Host ("[" + $(Get-Date -Format ddd.dd.MMM.yyyy) + " " + $(Get-Date -Format T) + "]" + " " + "[" + $(Get-Item -Path '.\' -Verbose).FullName +"]");
"$ ";
}
@SibTiger
SibTiger / SeaShell.c
Created November 13, 2017 03:35
Operating Systems: Simulation of a Shell Environment [without Pipes]
// =============================================================================
// -----------------------------------------------------------------------------
// =============================================================================
// Programmer: Nicholas Gautier
// Class: CS3513; Operating Systems
// Assignment #: 1
// Due Date: 19.September.2017
// Instructor: Dr. Zhao
// Description: This program allows the user to interact with a basic shell
// environment and executes external commands at the user's
@SibTiger
SibTiger / SeaShell.c
Created November 13, 2017 04:14
Operating Systems: Simulation of a Shell Environment [with Pipes]
// =============================================================================
// -----------------------------------------------------------------------------
// =============================================================================
// Programmer: Nicholas Gautier
// Class: CS3513; Operating Systems
// Assignment #: 1 1/2 (optional)
// Due Date: 28.September.2017
// Instructor: Dr. Zhao
// Description: This program allows the user to interact with a basic shell
// environment and executes external commands at the user's
@SibTiger
SibTiger / MatrixProduct.c
Created November 13, 2017 04:17
Operating Systems: Multiply two matrices [Dynamic]
// =====================================================
// Programmer: Nicholas Gautier
// Class: CS3513; Operating System
// Assignment #: 3
// Due Date: 31. Oktober. 2017
// Instructor: Dr. Zhao
// Description: This program is designed to take two
// matrix's and multiply them to capture
// the answer.
// NOTES:
@SibTiger
SibTiger / CPUScheduler.c
Created December 8, 2017 04:51
Operating Systems: CPU Schedulers [First Come First Serve, Shortest Job First, Priority, and Round Robin Quantum 4 and Quantum 8]
// =====================================================
// Programmer: Nicholas Gautier
// Class: CS3513; Operating System
// Assignment #: 4
// Due Date: 21. November. 2017
// Instructor: Dr. Zhao
// Description: This program is designed simulate certain CPU Schedulers.
// Within the program, the processes generated will be in
// a 'Process Chain' and from there, the processes will be
// initialized with a Process struct. This will provide
@SibTiger
SibTiger / LockerDoorProblem.cpp
Created April 5, 2018 03:12
This program is designed to simulate the Locker Door Problem by 'n' passes. This program will output what locker doors are open after 'n' passes.
// =====================================================
// Programmer: Nicholas Gautier
// Class: CS3713; Algorithm Analysis
// Assignment #: 1
// Due Date: 18. February. 2018
// Instructor: Mr. Moinian, Feridoon
// Description: This program is designed to perform the Locker Door Simulator.
// In which, this program will simulate how many doors are open
// and how many are closed by performing how many 'n' passes toggled
// the locker doors.