Author Topic: Commandlinefu  (Read 2837 times)

Snap

  • Posts: 490
    • View Profile
Commandlinefu
« on: September 02, 2015, 07:30:05 AM »
Just found this by chance. Really interesting tricks there.

http://www.commandlinefu.com/commands/browse

jedi

  • DEFCON 1
  • Posts: 1632
  • Not all those who wander are lost.
    • View Profile
    • NixNut.com
Re: Commandlinefu
« Reply #1 on: September 02, 2015, 08:29:02 AM »
Another "GREAT" and free resource to check out is;
Code Academy's Learn The Command Line course
Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

Snap

  • Posts: 490
    • View Profile
Re: Commandlinefu
« Reply #2 on: September 02, 2015, 10:07:52 AM »
Bookmarked. Thanks, jedi.

zephyr

  • Posts: 129
  • Never lost, no matter where, you are there.
    • View Profile
    • https://sourceforge.net/projects/crowz/
Re: Commandlinefu
« Reply #3 on: September 03, 2015, 03:46:31 AM »
Came across Commandlinefu accidentally as well, but with a conky that I found. It generates a random commandline script and I did consider it a waste of resources.  But, post it anyway if anyone would like to see it. Seems to require to have Lynx installed. Thanks -zephyr
Code: [Select]
# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
# Settings
##############################################
background yes
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
#own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 200
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 656667
default_shade_color 000000
default_outline_color 828282
alignment top_right
gap_x 12
gap_y 56
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
##############################################
#  Output
##############################################
TEXT
S Y S T E M    I N F O
${hr}
Host:$alignr$nodename
${font OpenLogos:size=16}J${font}   Kernel:  ${alignr}${kernel}
${font StyleBats:size=16}A${font}   CPU: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
${font StyleBats:size=16}A${font}   CPU: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,60}

S O F T W A R E    C O R E
${hr}
${color slate grey}Apache: ${color}${exec /usr/sbin/apache2 -v}

${color slate grey}MySQL: ${color }${exec mysql --version}

${color slate grey}Php:   ${color }${exec php5 --version}

${color slate grey}Version:  ${color}${pre_exec lsb_release -d | cut -f 2}

${alignc 42}${font Arial Black:size=16}broletto.org${font}
#${alignc}${font Arial Black:size:24}${time %H:%M}${font}${alignc}${Time %A %m %d %Y}

T I P S
${hr}
${execi 30 lynx --dump http://www.commandlinefu.com/commands/random/plaintext | grep .}

N E T W O R K
${hr}
#${color sienna}Network${hr 2}
$color${font Open Sans:bold:size=10}External IP ${font}${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}$font
SSID: $alignr ${wireless_essid wlp8s0}
${font Open Sans:bold:size=8.5}IP $font$alignr ${addr wlp8s0}
down $alignr ${downspeedf wlp8s0} kb/s
up $alignr ${upspeedf wlp8s0} kb/s
down total ${totaldown wlp8s0} $alignr up total ${totalup eth0}

Connection Quality: $alignr ${wireless_link_qual_perc wlp8s0}%
CROWZ / STAR / Devuan / refracta / VSIDO

Snap

  • Posts: 490
    • View Profile
Re: Commandlinefu
« Reply #4 on: September 05, 2015, 07:34:36 AM »
Thanks for this line, zephyr

Code: [Select]
${execi 30 lynx --dump http://www.commandlinefu.com/commands/random/plaintext | grep .}
Are you an open sans user too? My to go font in most of my systems. A great one for clarity and readability = confort.  8)

zephyr

  • Posts: 129
  • Never lost, no matter where, you are there.
    • View Profile
    • https://sourceforge.net/projects/crowz/
Re: Commandlinefu
« Reply #5 on: September 05, 2015, 10:26:56 AM »
@Snap: You are welcome for the script line, thought about posting just that one line, but decided to post it all. It maybe of use to someone.

Actually use the sans font for everything, easy to look at and does have a more uniform look. But, I need to take a look at the open sans see what the difference is. Imagine they are part of the sans serif category. Thanks-zephyr
CROWZ / STAR / Devuan / refracta / VSIDO

zephyr

  • Posts: 129
  • Never lost, no matter where, you are there.
    • View Profile
    • https://sourceforge.net/projects/crowz/
Re: Commandlinefu
« Reply #6 on: September 05, 2015, 11:34:40 AM »
@Snap: I did find the open sans font, a bit different than the sans true type. I found the package for a lot of fonts from the Deb package site, and did decide to download and install
Quote
Are you an open sans user too? My to go font in most of my systems. A great one for clarity and readability = confort.  8)
I concur, the open sans do render quite well and easy on the eye. For anyone else interested the link is below.

https://packages.debian.org/sid/texlive-fonts-extra

The font is also available with synaptic.  Listed as Texlive-fonts-extra. Thanks again-zephyr
CROWZ / STAR / Devuan / refracta / VSIDO

PackRat

  • Posts: 2211
    • View Profile
    • PackRat configs on github
Re: Commandlinefu
« Reply #7 on: September 05, 2015, 12:52:30 PM »
Open Sans font and many others at font squirrel

in case you don't want all the others in that package.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Snap

  • Posts: 490
    • View Profile
Re: Commandlinefu
« Reply #8 on: September 07, 2015, 06:37:28 AM »
Quote
I did find the open sans font, a bit different than the sans true type.

So it's that. I noticed something weird with that font sometimes. Very scarcely, it renders strange. So it must be that difference. But this hardly ever happens. I'm all fine with it.

Didn't knew it's part of the Textlive-fonts-extra package. I always install it alone. But good to know it's there. Thanks.