Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit cbbd79d

Browse files
committed
New Windows scripts to help setup a training environment
new file: windows/README.md new file: windows/killprogs.bat - Kill running programs that might have popups. new file: windows/launch_ff.bat - Launch FireFox with base pages new file: windows/setalias.bat - Set normal alias' for trainer new file: windows/start_training.bat - Run the series of **bat** files new file: windows/unsetalias.bat - Unset nomral alias' for traininer
1 parent a6e5787 commit cbbd79d

6 files changed

+36
-0
lines changed

windows/README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# GitHub Training Setup Scripts
2+
When doing training one of the distracting things that can happen is that you will receive a **popup** message from your email client, Slack Notification, or other program running in the background. This script is intended to help shutdown those programs that might interrupt your training session.
3+
4+
The possible disctration is that your **Daily Browser** may have a lot of tool bar entries that may disctrct the audience. In my environment I use Chrome as my primary browswer, so I have chosen to launch a **Clean FireFox** browser instead for training.
5+
6+
7+
*This initial version works for Windows 7, but the concept should be easy to port to MAC or Linux*
8+
9+
| Script FIle | Description |
10+
|-------------|-------------|
11+
| killprogs.bat | Simple script that runs through a list of programs to terminate. The `/f` switch forces the program to terminate |
12+
| launch_ff.bat | Launches the **FireFox** browswer from the standard installation location with a few **starting** webpages for training |
13+
| setalias.bat | A quick way to setup my normal development git alias'. It is a bit annoying when you keep using your alias' and the people your training don't have them setup as well. |
14+
| start_training.bat | Launch the killprogs.bat, unsetalias.bat, and launch_ff.bat scripts |
15+
| unsetalias.bat | Quickly unset some of my common git alias' so I am forced to use the long hand command for training.|
16+
17+
## Customization
18+
If you need to add more programs to the `killprogs.bat` file you can simply run `tasklist` from a Windows command line to see the full name of the program to kill.
19+
20+
If you have any suggestions/comments please feel free to leave issues on this repository, if you would like to help with other platforms I look forward to working with you.

windows/killprogs.bat

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
taskkill /f /IM slack.exe
2+
taskkill /f /IM outlook.exe
3+
taskkill /f /IM Lync.exe
4+
taskkill /f /IM Evernote.exe
5+
taskkill /f /IM Chrome.exe
6+
taskkill /f /IM iTunesHelper.exe
7+
taskkill /f /IM iTunes.exe
8+
taskkill /f /IM BtITunesPlugIn.exe

windows/launch_ff.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"c:\Program Files (x86)\Mozilla Firefox\firefox.exe" https://guides.github.com/introduction/flow/ http://git-school.github.io/visualizing-git/ http://learngitbranching.js.org/?NODEMO https://services.github.com/on-demand/images/config-levels.jpg https://services.github.com/on-demand/images/two-stage-commit-a.jpg https://services.github.com/on-demand/images/reset-modes.jpg

windows/setalias.bat

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
git config --global alias.s "status"
2+
git config --global alias.lg "log --graph --format=short --decorate=short --all"

windows/start_training.bat

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
call killprogs.bat
2+
call unsetalias.bat
3+
call launch_ff.bat

windows/unsetalias.bat

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
git config --global --unset alias.s
2+
git config --global --unset alias.lg

0 commit comments

Comments
 (0)