-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd73517
commit 9ddf447
Showing
22 changed files
with
47 additions
and
322 deletions.
There are no files selected for viewing
This file contains 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 +1,7 @@ | ||
Public domain | ||
Copyright <2022> <Carlos Andrés Planchón Prestes> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
11 changes: 0 additions & 11 deletions
11
ubuntu_minecraft_installer/minecraft_official_launcher.desktop
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
ubuntu_minecraft_installer/minecraft_pirated_launcher.desktop
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains 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,25 +1,23 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from os import system | ||
system('touch converted.log') | ||
HOUR_DIFFERENCE = 5 | ||
|
||
hour_difference = 5 | ||
|
||
with open('latest.log', 'r') as log: | ||
with open('converted.log', 'w') as converted: | ||
with open("latest.log", "r") as log: | ||
with open("converted.log", "w") as converted: | ||
for line in log.readlines(): | ||
if line[0] == '[': | ||
hour = int(line[1:3]) - hour_difference | ||
if line[0] == "[": | ||
hour = int(line[1: 3]) - HOUR_DIFFERENCE | ||
|
||
if int(hour) < 0: | ||
if int(hour) < 0: | ||
hour += 24 | ||
|
||
hour = str(hour) | ||
|
||
if len(hour) == 1: | ||
hour = '0' + hour | ||
hour = "0" + hour | ||
|
||
line = '[' + hour + line[3:] | ||
line = "[" + hour + line[3:] | ||
|
||
if not '[Server thread/WARN]' in line: | ||
converted.write(line) | ||
if "[Server thread/WARN]" not in line: | ||
converted.write(line) |
Oops, something went wrong.