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

985 Commits

Author SHA1 Message Date
deltax
4a3651286e Update system_info.go 2018-06-01 23:12:34 -07:00
deltax
c252cc5022 Quick fix for #105
- add lsb_release because sw_vers doesn't work on linux 
- add system check
2018-06-01 23:12:34 -07:00
flw
b62a18a96f 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 23:12:34 -07:00
Sherod Taylor
b8ee0e56f6 add optional more advanced jql queries and working usernames 2018-06-01 23:12:34 -07:00
Chris Cummer
4c620a9c3c Fix #101. Thanks to @stegmanh 2018-06-01 23:01:20 -07:00
Chris Cummer
a1bc7cfd6a
Merge pull request #124 from XanthusL/master
Update system_info.go
2018-06-01 22:55:42 -07:00
Chris Cummer
bb315f827f Update install instructions in readme 2018-06-01 22:53:36 -07:00
liyiheng
12c8693661 Update system_info.go 2018-06-02 11:43:50 +08:00
liyiheng
efdfa8d119 Update system_info.go 2018-06-02 11:41:30 +08:00
Chris Cummer
c43db75561 Merge branch 'sherodtaylor-more-advanced-jira' 2018-06-01 18:33:12 -07:00
Chris Cummer
bd68afa5a2 Add Jira JQL configuration documentation 2018-06-01 18:32:53 -07:00
Chris Cummer
f025606f9d Add image 2018-06-01 18:18:08 -07:00
Chris Cummer
96bbe03fbf Set terminal type in the config file.
Adds a "term" option that takes a terminal type (ie: vt100, xterm,
xterm-256color, etc.)

Example:

```yaml
wtf:
  term: "vt100"
```
2018-06-01 18:18:08 -07:00
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
Chris Cummer
2b6e96ea27 Add image 2018-06-01 18:17:50 -07:00
Chris Cummer
7545eadaff Set terminal type in the config file.
Adds a "term" option that takes a terminal type (ie: vt100, xterm,
xterm-256color, etc.)

Example:

```yaml
wtf:
  term: "vt100"
```
2018-06-01 14:21:43 -07:00
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
Farhad Farahi
5035933f15 added ipinfo mod 2018-06-01 21:06:24 +04:30
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