1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

353 Commits

Author SHA1 Message Date
Chris Cummer
b27a128cb5
Create CODE_OF_CONDUCT.md 2018-06-01 13:41:27 -07:00
Chris Cummer
6a9695018d Close #98. Merge pull request #121 from baustinanki/fix-chrono-sorting
Fix clocks module chronological sorting issue #98
2018-06-01 13:35:58 -07:00
Chris Cummer
54a826e3fe
Merge pull request #109 from flw-cn/master
Feat: add an error message when WTF was failed
2018-06-01 13:32:28 -07:00
Chris Cummer
3555ff3856
Merge pull request #118 from interlock/issue-117
strip space and ignore empty users from who
2018-06-01 12:02:27 -07:00
Bryan Austin
0656f17b80 Fix clocks module chronological sorting issue #98
`clock.LocalTime()` sets the location of a `time.Time` object, but
doesn't change the point in time. Since `clock.LocalTime()`
calls `time.Now()` to create the "local time", what ends up
happening is that the first `LocalTime()` is always "before" the
second one (because of the order of function calls), leading to
unstable sorting.

This change does two things to fix chronological sorting. The
first is to add a `clock.ToLocal(time.Time)` function that
acts like `clock.LocalTime()` for a given time point, so that
a single stable time point can be used throughout sorting. The
second is to do chronological sorting by comparing the string
versions of the local time, which look like (for London vs. SF):

2018-06-01 19:48:26.591550198 +0100 BST
vs.
2018-06-01 11:48:26.5915538 -0700 PDT

There may be a better way, this feels hacky-ish but works for me
on OSX.

One remaining downside is that for locations in the same time zone
(i.e. Avignon and Barcelona in the default settings), order is
determined ~randomly on startup. You could maybe append the location
to the string used for comparison to make alphabetical sorting a
fallback for equivalent times, but at least they don't jump around
anymore.
2018-06-01 12:01:34 -07:00
James Sapara
306e2b0514 strip space and ignore empty users from who 2018-06-01 10:37:25 -07:00
Chris Cummer
779f0a25c3 Close #105. Merge branch 'deltaxflux-master' 2018-06-01 09:13:38 -07:00
Chris Cummer
225094c978 Add a missing require and a missing var declaration to system_info.go 2018-06-01 09:13:21 -07:00
deltax
53c1a7938c
Update system_info.go 2018-06-01 17:57:41 +02:00
deltax
0d60c8356c
Quick fix for #105
- add lsb_release because sw_vers doesn't work on linux 
- add system check
2018-06-01 12:33:11 +02:00
flw
5861ad3f59
Feat: add an error message when WTF was failed
This is just a minor change to avoid a small number of inexperienced
users not be intimidated by a minor mistake, such as the incorrect
setting of the TERM environment variable.

I hope this will be improved a bit of user experience for let WTF
more popular.
2018-06-01 16:37:07 +08:00
Chris Cummer
fe67bedc86 Close #91. Site sidebar is now scrollable with main content. 2018-05-31 21:56:55 -07:00
Chris Cummer
bf4ab1056f Close #90. Firewall 'off' values are properly formatted 2018-05-31 18:01:11 -07:00
Chris Cummer
9a532a4660 Clean up the Linux security code a bit 2018-05-31 17:45:47 -07:00
Chris Cummer
a88a909e10 Merge branch 'interlock-security_linux' into 20180531-linux-security-merge 2018-05-31 16:50:26 -07:00
Chris Cummer
f1548bb10f Update readme with Go version warning 2018-05-31 16:49:35 -07:00
Lasantha Kularatne
0a1b1376be NewRelic Module - Fixing out of bound error 2018-05-31 16:49:35 -07:00
Chris Cummer
1dae2456cc Close #84. Add wtf.colors.background config option 2018-05-31 16:49:35 -07:00
Chris Cummer
bbdc860625
Merge pull request #97 from lasanthak/patch-2
NewRelic Module - Fixing out of bound error
2018-05-31 13:58:37 -07:00
Chris Cummer
30870dd192 Update readme with Go version warning 2018-05-31 13:57:33 -07:00
James Sapara
9adc0ea98d golang platform is darwin not macos 2018-05-31 12:40:00 -07:00
James Sapara
2e126c3d23 removed q mistype 2018-05-31 12:30:52 -07:00
James Sapara
2109157edc linux/ubuntu wraps for security 2018-05-31 12:29:32 -07:00
Lasantha Kularatne
6a72e8c182
NewRelic Module - Fixing out of bound error 2018-05-31 13:35:47 -05:00
Chris Cummer
9e49c18c44 Close #84. Add wtf.colors.background config option 2018-05-31 08:52:37 -07:00
Chris Cummer
43d937992c
Merge pull request #88 from ReadmeCritic/master
Minor capitalization correction for GitHub in README
2018-05-31 08:22:10 -07:00
ReadmeCritic
a7071fe193 Minor capitalization correction for GitHub in README 2018-05-31 08:07:58 -07:00
Chris Cummer
9b92e941a7 Merge branch '78-m-option' 2018-05-31 05:49:05 -07:00
Chris Cummer
2b03926382 Close #78. Add documentation for --module option 2018-05-31 05:31:30 -07:00
Chris Cummer
1772ceadf6 Close 78. Add documentation for --module option 2018-05-31 05:26:25 -07:00
Chris Cummer
d9d1a82c89 Change -i flag to -m. See 'wtf --help' for details 2018-05-31 05:22:47 -07:00
Chris Cummer
86d43e9af6 Close #75. Github no longer crashes on network failure 2018-05-30 21:59:35 -07:00
Chris Cummer
7bf2ad88cf Clean up the Todo display code 2018-05-30 21:51:39 -07:00
Chris Cummer
f6c9e9be31 Update the static site title 2018-05-30 16:11:12 -07:00
Chris Cummer
8df8026089 Close #54. HTTPS now enabled on wtfutil.com 2018-05-30 11:37:56 -07:00
Chris Cummer
d74da19438 Create CNAME 2018-05-30 10:35:07 -07:00
Chris Cummer
b869f120c3 Delete CNAME 2018-05-30 10:34:55 -07:00
Chris Cummer
1d23d5369f Merge branch 'jeangovil-todo-fix' 2018-05-30 10:33:35 -07:00
Hossein Mehrabi
3c66bc9152 removed unused variable 2018-05-30 21:50:27 +04:30
Hossein Mehrabi
977eb55944 todo: update index of selected item in the end 2018-05-30 21:42:26 +04:30
Chris Cummer
385d6d87d9 Closes #45. Merge branch 'jeangovil-i45' 2018-05-29 18:04:52 -07:00
Chris Cummer
f13abc9ed3 Closes #72. --info flag displays module help text
Usage:

        wtf -i=todo
        wtf --info=todo
2018-05-29 18:03:48 -07:00
Chris Cummer
ebf900e91b Pull command flags out of main() and into its own file 2018-05-29 18:03:48 -07:00
Chris Cummer
47a077a472 Help halts the program execution 2018-05-29 18:03:48 -07:00
Hossein Mehrabi
9bc5d93651 now flags support both short and long names. 2018-05-29 18:03:48 -07:00
Hossein Mehrabi
673cbe4c16 fixed focus problem after config live-reloading 2018-05-29 18:03:48 -07:00
Grazfather
94b9b57c35 Fix install instructions 2018-05-29 18:03:48 -07:00
Chris Cummer
d0da319a52 Closes #72. --info flag displays module help text
Usage:

        wtf -i=todo
        wtf --info=todo
2018-05-29 18:02:11 -07:00
Chris Cummer
a46ff5c10e Pull command flags out of main() and into its own file 2018-05-29 17:52:46 -07:00
Chris Cummer
ca48d34566 Help halts the program execution 2018-05-29 16:40:46 -07:00