-
Notifications
You must be signed in to change notification settings - Fork 3
Setup QOL #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ninjanomnom
wants to merge
3
commits into
LemonInTheDark:master
Choose a base branch
from
ninjanomnom:setup-qol
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Setup QOL #7
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| @ECHO OFF | ||
|
|
||
| SET CONFIGFOLDER=root\config\ | ||
| SET TEMPLATEPATH=%CONFIGFOLDER%_template.json | ||
| SET CONFIGPATH=%CONFIGFOLDER%header_config.json | ||
|
|
||
| IF EXIST %CONFIGPATH% ( | ||
| ECHO Config already exists, skipping. | ||
| ) ELSE ( | ||
| ECHO No config found, copying default... | ||
| COPY %TEMPLATEPATH% %CONFIGPATH% | ||
| ) | ||
|
|
||
| ECHO Installing pip dependencies... | ||
| py -3.6 -m pip install requests | ||
|
|
||
| PAUSE |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,15 @@ | ||
| #!/bin/sh | ||
|
|
||
| @echo off | ||
| pushd "%~dp0" | ||
| cd root | ||
| echo Grabbing Logs | ||
| py RawLogsScraper.py | ||
| echo Averaging CSV files | ||
| py MaptickAverager.py | ||
| echo Plotting Graphs | ||
| @ECHO OFF | ||
|
|
||
| PUSHD "%~dp0" | ||
| CD root | ||
|
|
||
| ECHO Grabbing Logs | ||
| py -3.6 RawLogsScraper.py | ||
|
|
||
| ECHO Averaging CSV files | ||
| py -3.6 MaptickAverager.py | ||
|
|
||
| ECHO Plotting Graphs | ||
| gnuplot maptick_plot.gnuplot | ||
| popd "%~dp0" | ||
|
|
||
| POPD "%~dp0" |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "Host": "tgstation13.download", | ||
| "User-Agent": "Default Graphing Scraper (Lemon Scented)", | ||
| "Accept": "Remember to not accept zip files", | ||
| "Accept-Language": "hhhhhhhhhhh", | ||
| "Referer": "Pick Your Poison", | ||
| "Connection": "keep-alive", | ||
| "Cookie": "Do not post this publically anywhere 4head", | ||
| "Upgrade-Insecure-Requests": "1" | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need to restart for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I had to restart to get the path changes to propagate, and this is recommended for path changes in general.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was under the impression that you just needed to open a new terminal to refresh environmentals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was running these not through a terminal but instead by double clicking the batch files themselves, doing it through terminal might have worked. Want me to replace the restart mention with a recommendation to use a terminal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's odd that it what you describe wouldn't just work then. I thought the only restriction was needing to refresh a terminal's copy of environment vars after modifying them. are you sure a restart is needed in the situation you describe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No I'm not but even the windows dialogue itself recommends restarting when you edit the path variable, which is why I repeated it here after it had fixed my own issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh. ok I guess this is fine then