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

401 Commits

Author SHA1 Message Date
deltaxflux
71663fdd17 Add issue template and pull request template 2018-06-02 12:34:54 +02:00
Chris Cummer
9e7045ca52
Merge pull request #125 from jeangovil/i101
clean up todo list
2018-06-01 23:29:04 -07:00
Chris Cummer
5ce989887f Correct spelling of IPInfo in widget title 2018-06-01 23:28:18 -07:00
Chris Cummer
957873f006 Merge branch 'FarhadF-ipinfo' 2018-06-01 23:24:59 -07:00
Hossein Mehrabi
59463d22ff clean up todo list 2018-06-02 10:49:51 +04:30
Chris Cummer
f1d044dee6 Fix #101. Thanks to @stegmanh 2018-06-01 23:15:44 -07:00
Chris Cummer
63299a701e Update install instructions in readme 2018-06-01 23:15:44 -07:00
liyiheng
fd0c79acbf Update system_info.go 2018-06-01 23:15:44 -07:00
liyiheng
4fb3edb919 Update system_info.go 2018-06-01 23:15:44 -07:00
Chris Cummer
ace2ba0b1b Add Jira JQL configuration documentation 2018-06-01 23:15:44 -07:00
Chris Cummer
f61fb10249 Add image 2018-06-01 23:12:34 -07:00
Chris Cummer
b56629b6fd 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 23:12:34 -07:00
Chris Cummer
bf30e8750c Create CODE_OF_CONDUCT.md 2018-06-01 23:12:34 -07:00
Bryan Austin
010c7ddbe0 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 23:12:34 -07:00
James Sapara
e4ce3975ae strip space and ignore empty users from who 2018-06-01 23:12:34 -07:00
Chris Cummer
2ef2e26288 Add a missing require and a missing var declaration to system_info.go 2018-06-01 23:12:34 -07:00
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