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

345 Commits

Author SHA1 Message Date
Chris Cummer
f2c099a601 Create CODE_OF_CONDUCT.md 2018-06-01 18:18:08 -07:00
Bryan Austin
492438c5f5 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 18:18:08 -07:00
James Sapara
6d59974fed strip space and ignore empty users from who 2018-06-01 18:18:08 -07:00
Chris Cummer
81ffdc783c Add a missing require and a missing var declaration to system_info.go 2018-06-01 18:18:08 -07:00
deltax
ed855d9227 Update system_info.go 2018-06-01 18:18:08 -07:00
deltax
28cabb29de Quick fix for #105
- add lsb_release because sw_vers doesn't work on linux 
- add system check
2018-06-01 18:18:08 -07:00
flw
a7880dd395 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 18:18:08 -07:00
Chris Cummer
f86179b74e Close #91. Site sidebar is now scrollable with main content. 2018-06-01 18:18:08 -07:00
Chris Cummer
70b56c314b Close #90. Firewall 'off' values are properly formatted 2018-06-01 18:18:08 -07:00
Chris Cummer
1a6a25799a Clean up the Linux security code a bit 2018-06-01 18:18:08 -07:00
Chris Cummer
ac5cd6a48f Update readme with Go version warning 2018-06-01 18:18:08 -07:00
James Sapara
1a53c50da6 golang platform is darwin not macos 2018-06-01 18:18:08 -07:00
James Sapara
60837104ca removed q mistype 2018-06-01 18:18:08 -07:00
James Sapara
5d34952398 linux/ubuntu wraps for security 2018-06-01 18:18:08 -07:00
Lasantha Kularatne
bc70c13ca4 NewRelic Module - Fixing out of bound error 2018-06-01 18:18:08 -07:00
Sherod Taylor
9b70236bbb add optional more advanced jql queries and working usernames 2018-05-31 18:46:52 +01: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
Hossein Mehrabi
128347e513 now flags support both short and long names. 2018-05-29 16:27:19 -07:00
Chris Cummer
55fe6fe9e1 Closes #70. Merge branch 'jeangovil-i70' 2018-05-29 12:06:06 -07:00
Hossein Mehrabi
7711fa3d9d fixed focus problem after config live-reloading 2018-05-29 23:19:25 +04:30
Chris Cummer
b2e323adb1
Merge pull request #67 from Grazfather/patch-1
Fix install instructions
2018-05-29 10:27:12 -07:00
Hossein Mehrabi
30428ec3a4 move checked todos to bottom 2018-05-29 21:42:19 +04:30
Grazfather
0f96923a50
Fix install instructions 2018-05-29 09:32:37 -07:00
Chris Cummer
b73c7aa21b Merge branch 'jeangovil-master' 2018-05-29 09:00:13 -07:00
Chris Cummer
6437eff165 Make global variables local and pass as params instead 2018-05-29 08:59:19 -07:00