obihann / archey-osx Goto Github PK
View Code? Open in Web Editor NEWAn archey script clone for OS X
Home Page: http://obihann.github.io/archey-osx/
License: GNU General Public License v2.0
An archey script clone for OS X
Home Page: http://obihann.github.io/archey-osx/
License: GNU General Public License v2.0
the ip address is just a routable IP addressγ lots of time is no useful.
if you add local machine ip address, it's will be more useful for web programmer .
it's no need type 'ifconfig' to find the local ip .
$ archey
gets stuck
while $ archey -o
works properly
what could be wrong with my config?
tried to remove .archey-ip, still experiencing this issue
Would love to see the local IP version in stable, thanks π
I have both brewed gawk & gnu-sed installed.
ioreg -c AppleSmartBattery -r | awk '$1~/Capacity/{c[$1]=$3} END{OFMT="%.2f%"; max=c["\"MaxCapacity\""]; if (max>0) { print 100*c["\"CurrentCapacity\""]/max;} }'
prints 95.67%
, which results in Battery: 95.67%%
.
I try to fix this problem with
env PATH='/sbin:/usr/sbin/:/bin:/usr/bin' /usr/local/bin/archey
But it breaks uptime
env PATH='/bin:/usr/bin' bash -c "uptime 2> /dev/null | sed -e 's/.*up\s*//' -e 's/,\s*[0-9]* user.*//'"
prints 12:29, 6 users, load averages: 1.46 1.48 1.47
, which results in Uptime: 12:36, 6 users, load averages: 1.33 1.43 1.46
So, I have a few different logo files I've come up with, random symbols for things that i like, was wondering if there was a way to have a few logofiles and have the script randomly choose one each time its launched, or maybe even dependant on an environment?
Heres an example of the Anjunabeats logo i made, i did another one of a band that i thik would be cool to rotate between!
archey 1.5.2 on my Mac Pro, which sadly lacks a battery, displays Battery: ?
as part of its output.
I think I preferred archey 1.5.1's take, which omitted the battery line entirely on devices that don't have a battery. I am curious if there's any particular reason for this change? :)
It gives the following error:
/usr/local/bin/archey: line 67: test: Ryan: binary operator expected
And 'Ryan' is the middle part of my username
I believe this problem is caused because my username contains whitespaces. (But I am not sure)
An option to turn off the Apple would be great π
It would allow it to be small-width friendly (eg. using it on a side-terminal along with code)
### User: imac
#### Hostname: iMacs-iMac
### Distro: OS X 10.11
####### ####### Kernel: Darwin
###################### Uptime: 08:37am up 9 days 22:13, 2 users, load average: 1.43, 1.46, 1.48
##################### Shell: /usr/local/bin/fish
#################### Terminal: xterm-256color iTerm.app
#################### Packages: 102
##################### CPU: Intel Core i5-4570R CPU @ 2.70GHz
###################### Memory: 8 GB
#################### Disk: 19%
################ Battery:
#### ##### IP Address: 183.54.162.150
eth0.me is down which makes archey to load with big delay
Getting error when running archey on Mac OS X 10.4.11. CPU and RAM are blank. Sample output below.
machdep: class is not implemented
###
#### User: admin
### Hostname: G3
####### ####### Distro: OS X 10.4.11
###################### Kernel: Darwin
##################### Uptime: 1 day
#################### Shell: /bin/bash
#################### Terminal: xterm-color
##################### Packages: 2
###################### CPU:
#################### Memory: 0 GB
################ Disk: 84%
#### #####
Hi,
I was experiencing some issues with archey hanging for approx 10 seconds. I added set -x
to the start of the script to see where the problem was, and this line was the cause.
Actually the df
command was the problem - I have a SSHFS mount point that had 'gone away': this causes df
to timeout after 10 seconds.
Clearly I could unmount it and the problem goes away, but maybe adding a /
argument to the df
command would make it a bit more robust, and then there's no need for the head -2
either.
e.g.
-disk=$(df | head -2 | tail -1 | awk '{print $5}')
+disk=$(df / | tail -1 | awk '{print $5}')
Happy to provide a PR if that suits?
Archey 1.6.0's battery output contains a duplicate %, e.g. Battery: 99.98%%
When I login, I get this:
$ /usr/local/bin/archey
/usr/local/bin/archey: line 132: [: q: binary operator expected
### User: xxx
...
$ /usr/local/bin/archey --help
Archey OS X 1.5.2
...
Most likely related to the #29.
There's a minor misalignment in archey help (Disable
in the last line should be another 2 spaces to the right).
Archey OS X 1.5.2
Usage: /usr/local/bin/archey [options]
-p --packager Use auto detected package system (default packager: homebrew).
-m --macports Force use MacPorts as package system.
-b --nocolor Turn color off.
-c --color Force the color on (overrides --nocolor).
-o --offline Disable the IP address check.
every time, i open my Terminal. it can't start auto.
i must input 'archey' in my terminal, then i can see the magical displaying infomation
I am using archey and this is what is being displayed currently for the ip address tag not sure why
<meta* http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>302 Moved</TITLE>< 1>302 Moved The document has moved here.*
just like this:
###
#### User: w4lle
### Hostname: w4lleMacBook-Pro
####### ####### Distro: OS X 10.9.4
###################### Kernel: Darwin
##################### Uptime: 2:15
#################### Shell: /bin/zsh
#################### Terminal: xterm-256color
##################### Packages: 20
###################### CPU: Intel Core i5-4278U CPU @ 2.60GHz
#################### Memory: 8 GB
################ Disk: 85%
#### #####
OSX version 10.9.4
I have to type in the command to get it display my system specs, but I've seen people execute on startup? π
The README, under "Options", mentions "-l --localip : Show the local IP address associated with the default adapter".
But there is no such option in archey
. It's not listed in archey --help
and if I try to pass the option I get an "Unknown argument" error.
This option should be taken out of the README.
Apparently the URL used to get ip info https://4.ifcfg.me/ has moved and my console outputs html. Would it be possible to check if a call to an external service/url fails then display a default or something more meaningful rather than a bunch of random html?
Very minor, just an "fyi". The download link "The latest stable release is 1.5" (https://github.com/obihann/archey-osx/archive/1.5.tar.gz). is returning a 404 Not Found error.
Hi,
I think I just got a new version of this via brew
and Its actually annoying that you are hitting dig
each time. This makes opening a new shell takes very much longer than if one has a call to archey
in their respective .zshrc/.bashrc
Can you cache this somehow, I like the feature just not the new call each time.
curl: (7) Failed to connect to eth0.me port 80: Network is unreachable
It might be time to use a different external IP finder.
GNU bash, version 4.4.23(1)-release (x86_64-apple-darwin17.5.0) on High Sierra.
Archey hangs with no output indefinitely, nothing seems to pop up in logs.
The webpage for archey hasn't been updated since 2013. It indicates that the current version is 1.1, doesn't list most of the command-line flags, and has a very incomplete credits list.
I just updated Archey via homebrew.
$ brew info archey
archey: stable 1.5, HEAD
Archey script for OS X
https://obihann.github.io/archey-osx/
/usr/local/Cellar/archey/1.4 (3 files, 12K)
Built from source
/usr/local/Cellar/archey/1.5 (4 files, 16K) *
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/archey.rb
My default terminal is 80 chars wide and after the update it looks bad:
Last login: Thu Oct 15 19:01:59 on ttys000
### User: <<removed>>
#### Hostname: <<removed>>
### Distro: OS X 10.11
####### ####### Kernel: Darwin
###################### Uptime: 19:06 up 9 days, 23:10, 2 users,
load averages: 0.74 0.82 0.91
##################### Shell: /bin/bash
#################### Terminal: xterm-256color Apple Terminal
#################### Packages: 20
##################### CPU: <<removed>>
###################### Memory: <<removed>>
#################### Disk: <<removed>>
################ Battery: <<removed>>
#### ##### IP Address: <<removed>>
$
I don't remember how the previous version looked but I'm 100% sure that the Uptime didn't break the logo.
Thanks for a really great utility! π I wanted to report 2 issues with 1.5:
% archey -c
### User: jh
#### Hostname: jhmp
### Distro: OS X 10.11.1
####### ####### Kernel: Darwin
###################### Uptime: 16:44 up 8 days, 3:36, 4 users, load averages: 1.64 1.53 1.58
##################### Shell: /usr/local/bin/zsh
#################### Terminal: xterm-256color iTerm.app
#################### Packages: 7
##################### CPU: Intel Xeon CPU E5-1680 v2 @ 3.00GHz
###################### Memory: 32 GB
#################### Disk: 36%
################ Battery:
#### ##### IP Address: ;; connection timed out; no servers could be reached
ππ« I'm on a Mac Pro, which doesn't have a battery, so it seems peculiar to include a blank battery line here.
β archey now takes about 10 seconds to execute because the IP fetch times out. I've verified that the underlying command archey is using (dig +short myip.opendns.com @resolver1.opendns.com
) is the cause of this delay, and that command still times out and prints the above message when used alone. It may be that my current network is blocking or filtering opendns, but even if not, this network request is still likely to be the slowest part about running archey. Perhaps it's worth adding an optional switch to disable the IP address fetch?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.