Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - superwow

#31
How To's / Re: Watch Netflix Natively in VSIDO
October 13, 2014, 02:29:30 AM
V-ger, I mean, native in Chrome. It runs without any changes to the user-agent string, or any additional extensions or Chrome "apps." As I understand it, the HTML5 method will only work in Chrome, not Chromium/Firefox/Iceweasel/etc. I will verify that I am too lazy to have tried any other method than Chrome, so cannot validate my own statement.

Still, yay.
#32
WM Designs and Discussions / Re: Fluxbox Styles
October 13, 2014, 01:40:00 AM
I have a question about gtk themes and security.

First you gotta understand that I worked for years in government, where we were pounded left and right about social engineering and proper IT security and communicating to the public, etc, so that our magic fairy dust knowledge would be protected. So, I naturally became even more cautious than I am naturally. Second, you gotta understand that I hate the grey gtk theme. Ugh, give me glorious black, charcoal, midnight, just bring down the lights. I used to use tawan's gtk-carbon theme (http://ta-wan.deviantart.com/art/carbon-fiber-gtk-160333821), which is almost perfection to me, back when I only surfed casually and did no personal financial, or any truly private junk on my linux system. Just a toy. But now, with my understanding of linux increasing (partially from using linux both at home AND work), I am more inclined to make the move completely. But that means it has to be more secure, so that I can do banking and stock market speculation etc.

The xbm and png files used to skin windows are jpg files with root permissions, right? So, how am I supposed to feel regarding someone's generic gtk theme I downloaded from boxlook or DeviantArt or whatnot? Image files can contain code other than just the image itself. Shouldn't I be cautious about this?
#33
How To's / Re: Watch Netflix Natively in VSIDO
October 13, 2014, 01:19:29 AM
Thanks to all who have posted various fixes or semi-hacks to do this. Netflix announced about a month or so ago that linux support would be native. And today, without having installed any webapps, extensions, changed any user-agent strings, or anything like that, I went to Netflix and played a movie. Boom. Native. As of today I reckon.

Superhappy!
#34
General Support / Re: inxi & uptime
October 12, 2014, 02:39:19 PM
Thanks V-ger. Your solution of adding a path statement into my .zshrc worked (added it to .bashrc too). Mischief managed!
#35
General Support / (Solved) inxi & uptime
October 12, 2014, 01:13:44 AM
Vsidians,

I have watched the amazing amount of updates for the past month, and glad some of my fav apps, which have been broken due to the systemd or lightdm or other issue, are back up and running.

But sadly one of my fav utilities, inxi, is still MIA, apparently due to a missing 'uptime.'

When I run inxi --recommends, I get a lot of stuff, but sifting through to the part that matters:

The following applications are missing from your system:

Application: uptime
To add to your system, install the proper distribution package for your system:
Debian/Ubuntu: procps :: Arch Linux: procps :: Redhat/Fedora/Suse: procps


It says I need 'uptime' and recommends I install 'procps'. When I do that (via: sudo apt-get install procps), it tells me

get procps
[sudo] password for superwow:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
procps is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


Are y'all having the same problems?
#36
VSIDO Discussions / Re: Vsido source files
October 03, 2014, 11:29:21 PM
V-ger, sweet that's what I though. Aside from new kernels, I got what you got. Good stuff. Now back to playing with ranger keybindings....
#37
VSIDO Discussions / Re: Vsido source files
October 03, 2014, 10:49:56 PM
Just curious but what is the difference between VSIDO on my computer and VSIDO in the iso? The differences that I can think of are a) the install script, b) updated configs, c) the kernel, d) the apps & configs I have made myself. Is the reason to open the iso to get the new install scripts & configs?
#38
Good find @siralucardt and a good read. Of note is that Pardus OS uses python to initialize (available at https://github.com/Pardus-Linux/mudur. Interesting OS, was Gentoo now is Debian. The article itself seems to have lots of valid points, but a ton of comments, both on its own site and http://www.reddit.com/r/linux/comments/2hkkwb/systemd_the_biggest_fallacies/.
#39
General Support / Re: Light DM issues
September 29, 2014, 02:55:30 AM
How about that, you got some buds over at Semplice. Their distro looks pretty good too. I'll have to follow him on Twitter.
#40
General Support / Re: dmenu question
September 29, 2014, 02:39:37 AM
PackRat, running dmenu_run from terminal does work.

Here's the keybinding.

</keybind>
        <keybind key="C-space">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>dmenu</name>
        </startupnotify>
        <command>dmenu</command>
      </action>
    </keybind>


I'm thinking I should add the "_run" to the dmenu part? Doing so, changing to below:

</keybind>
        <keybind key="C-space">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>dmenu</name>
        </startupnotify>
        <command>dmenu_run</command>
      </action>
    </keybind>


and, boom it works. You're the best Packrat!
#41
General Support / [SOLVED] dmenu question
September 29, 2014, 02:12:50 AM
So, I've been happy on VSIDO for quite some time. Got my millions of keybindings and all kind of productivity shortcuts set up. And along comes this weird lightdm/systemd business and now I am switching things around and being a detective with new setups and whatnot. So the investigating sparked the bug again and this morning I thought well heck I'll just install OB and set up all my old keybindings and menu etc and start a multi-wm system. Yes, that is actually the direction I want to go, as I want to try jwm, awesomewm, and a few others, just for the heck of it.

So, in the standard FB VSIDO install, I have dmenu keybound to control+space. It works flawlessly.

In the OB side of my VSIDO, which I have nicely set up with all kinds of goodnes, my lovely dmenu shows up, but won't search. Type as I may, it never indexes anything.

The problem is obviously one of the PEBCAC variety. So, can someone educate me as to what I have done wrong, or haven't done? In various other systems I have run, a keybinding for dmenu needed to call a dmenu-xxx.sh file that called dmenu. But VSIDO-FB did not, as far as I know. How can I make my dmenu work in VSIDO-OB?
#42
Scripts / Re: Aliases you use
September 28, 2014, 03:02:25 PM
Current aliases file, customized for zsh:


alias up='sudo apt-get update && sudo apt-get dist-upgrade'
alias get='sudo apt-get install'
#alias rem='sudo apt-get autoremove'
#alias cl='sudo apt-get autoclean'
alias prg='sudo apt-get purge'
alias dupgrd='sudo apt-get update && sudo apt-get dist-upgrade -d'
alias acs='apt-cache search'
alias se='apt-cache policy'
alias deps='apt-cache show' #with app will give you depends info etc.
alias upg='sudo update-grub'
alias grc='ps aux | grep'
#alias cd..='cd ..'
alias md=mkdir
alias sdn='sudo shutdown -h now'
alias sdr='sudo shutdown -r now'
alias ls='ls -F --color --group-directories-first'
alias l='ls -lha'
alias c='clear'
alias q='exit'
alias s='sudo'
alias reload='source ~/.zshrc'
alias al='cat ~/.zsh_aliases'
alias alr='ls -R'

alias gpoud='gpo update && gpo download'

alias hmr='mplayer http://hotmixradio-dance.ice.infomaniak.ch/hotmixradio-dance-128.mp3'

### from greywolf on VSIDO forums
## Colorize the grep command output for ease of use (good for log files)##
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'

# install  colordiff package :)
alias diff='colordiff'

alias mount='mount |column -t'

## pass options to free ##
alias meminfo='free -m -l -t'

## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'

## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'

## Get server cpu info ##
alias cpuinfo='lscpu'

## older system use /proc/cpuinfo ##
##alias cpuinfo='less /proc/cpuinfo' ##

## get GPU ram on desktop / laptop##
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log'

# some more ls aliases
alias ls='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
alias ll='ls -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
alias la='ls -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
alias lx='ls -lXB'        # sort by extension
alias lk='ls -lSr'        # sort by size
alias lr='ls -lR'        # recursice ls
alias lt='ls -ltr'        # sort by date
alias lm='ls -al |more'        # pipe through 'more'
alias tree='tree -Cs'        # nice alternative to 'ls'
alias l='ls -hF --color'    # quick listing
alias lsize='ls --sort=size -lhr' # list by size
alias lsd='ls -l | grep "^d"'   #list only directories

# copy with a progress bar.
alias cpv="rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress --"

#Command substitution
alias ff='sudo find / -name $1'
alias df='df -h -x tmpfs -x usbfs'
alias psg='ps -ef | grep $1'
alias h='history | grep $1'
#alias rm='rm -i'
#alias cp='cp -i'
#alias mv='mv -i'
alias mkdir='mkdir -p -v'
alias which='type -all'
alias path='echo -e ${PATH//:/\\n}'
alias vi='vim'
alias du='du -h -c --max-depth=1'
alias c='clear'

#Personal Help
#alias dn='OPTIONS=$(\ls -F | grep /$); select s in $OPTIONS; do cd $PWD/$s; break;done'
#alias help='OPTIONS=$(\ls ~/.tips -F);select s in $OPTIONS; do less ~/.tips/$s; break;done'

#show most popular commands
alias top-commands='history | awk "{print $2}" | awk "BEGIN {FS="|"} {print $1}" |sort|uniq -c | sort -rn | head -10'

# empty trash
alias trash="rm -fr ~/.Trash"

## Moving around & all that jazz
# http://www.tuxradar.com/content/z-shell-made-easy
alias -g back='cd "$OLDPWD"'
alias -g ..="cd .."
alias -g ...="cd ../.."
alias -g ....="cd ../../.."
alias -g .....="cd ../../../.."
alias -g ......="cd ../../../../.."

## Dir shortcuts (slightly diff from bash
# http://www.tuxradar.com/content/z-shell-made-easy
hash -d home=~/
hash -d docs=~/Documents
hash -d dls=~/downloads
hash -d imgs=~/images
hash -d vids=~/videos
hash -d muz=~/music
#hash -d news=~/gPodder/Downloads/NBC Nightly News '(video')')

## App-specific

## Sudo fixes
alias orphand='sudo deborphan | xargs sudo apt-get -y remove --purge'
alias cleanup='sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean && sudo apt-get remove && orphand'
alias upddb='sudo updatedb'
alias swapclear='sudo swapoff -a && sleep 2s && sudo swapon -a'

#find sorted list of biggest files under current directory:
# http://stackoverflow.com/questions/171563/whats-in-your-zshrc
alias biggest='find -type f -printf '\''%s %p\n'\'' | sort -nr | head -n 40 | gawk "{ print \$1/1000000 \" \" \$2 \" \" \$3 \" \" \$4 \" \" \$5 \" \" \$6 \" \" \$7 \" \" \$8 \" \" \$9 }"'

### /from grewolf

### from digit on VSIDO forums

alias big='ls -laSh | head'
alias cdls='cd $1 && ls'
alias dit='emacsclient'
alias fehb='feh --bg-scale'
alias fehbc='feh --bg-center'
alias fehbf='feh --bg-fill'
alias fehbs='feh --bg-scale'
alias ls='ls --color=auto'
alias running='PS_FORMAT="user,pid,pcpu,pmem,start,args" ps axf'

### /from digit on VSIDO forums
#digit's flite aliases
alias fime='flite_time `date +%H:%M`'

### from me
alias weathIL='inxi -W60089'
alias weathSD='inxi -W92116'
alias weathAT='inxi -W30064'
alias weathHO='inxi -W70002'

## a few from http://zsh.sourceforge.net/Contrib/startup/std/zshrc
# List only directories and symbolic
# links that point to directories
alias lsd='ls -ld *(-/DN)'
# List only file beginning with "."
alias lsa='ls -ld .*'

## ## ## ## FUNCTIONS
### /from statmonkey @ vsido.org/forums

# This is just a simple function to take notes.  You can just enter note (whatever you want)
# and it will append it to notes in home/documents but you can set it to go anywhere
note () {
    # if file doesn't exist, create it
    if [[ ! -f $HOME/documents/notes ]]; then
        touch $HOME/documents/notes
    fi

    if [[ $# -eq 0 ]]; then
        # no arguments, print file
        cat $HOME/documents/notes
    elif [[ "$1" == "-c" ]]; then
        # clear file
        echo "" > $HOME/documents/notes
    elif [[ "$1" == "-e" ]]; then
        nano $HOME/documents/notes
    else
        # add all arguments to file
        echo "$@" >> $HOME/documents/notes
    fi
}

#43
VSIDO Discussions / Re: bash vulnerabilities - use zsh
September 28, 2014, 02:15:08 PM
Yep, most things are the same. My alias file was nearly identical escept for aliases to directories, which are 'hashes' not 'aliases' in zsh.

Configuration of the prompt is totally different, but you can figure it out in like 5 min or less. One cool thing about zsh is you can get a prompt on the left AND right at the same time, and put different stuff there. I'm working on a battery indicator I found on the webz but had to go to sleep last night so wasn't done.

Some bash scripting works out of the box. Some needs rejiggering. Like that 'help' bit which I have commented out. Zsh doesn't have a help function like bash. You have to code it. Our Arch cousins provided that nifty bit, but I can't get it to work.

Also, I would like to figure out how to keep the prompt always visible as the top line of the terminal emulator. I think that bit is different.
#44
VSIDO Discussions / bash vulnerabilities - use zsh
September 28, 2014, 03:28:16 AM
There has been a ton of talk on here about systemd and lightdm of late. So i feel like another potentially more critical topic may have been completely missed.

Several days ago Bash was shown to have vulnerabilities. Promptly massive exploits were reported across multiple OS's. Even the Fruit company updated their Bash implementation (which is almost unheard of, as the fruity bash has long gone unnoticed).

There have been updates to bash of late, but the sentiment on security blogs is that they are like tape on a cracked dam.

I switched to zsh and spent the weekend working on my .zshrc.

We had unbelievably beautiful fall weather in my city of residence; but I spent the entire day scouring zsh blogs for configs and info and had a blast. If you are interested in switching to zsh and need configs, here is my .zshrc.

# Set up the prompt

autoload -Uz promptinit
promptinit
#prompt adam1
#"prompt -l" lists available, "prompt -p" previews
#prompt elite2 'yellow'
#prompt fade 'blue'
prompt fire 'blue green yellow white white white'

setopt histignorealldups sharehistory

# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e

# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
SAVEHIST=1000
HISTFILE=~/.zsh_history

# Use modern completion system
autoload -Uz compinit
compinit

zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
eval "$(dircolors -b)"
zmodload -i zsh/complist
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true

zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'

# color code completion!!!!  Wohoo!
zstyle ':completion:*' list-colors "=(#b) #([0-9]#)*=36=31"

# History search: past commands beginning with the current input would have been shown
# [url]https://wiki.archlinux.org/index.php/Zsh[/url]
[[ -n "${key[PageUp]}"   ]]  && bindkey  "${key[PageUp]}"    history-beginning-search-backward
[[ -n "${key[PageDown]}" ]]  && bindkey  "${key[PageDown]}"  history-beginning-search-forward

# 10 second wait if you do something that will delete everything.  I wish I'd had this before...
# http://stackoverflow.com/questions/171563/whats-in-your-zshrc
setopt RM_STAR_WAIT

# beeps are annoying
setopt NO_BEEP

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.zsh_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.zsh_aliases ]; then
    . ~/.zsh_aliases
fi

## ## ## NOTE: shopt may only be a bash command, not zsh
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
#shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

#Zsh can be configured to remember the DIRSTACKSIZE last visited folders.
#This can then be used to cd them very quickl
# USE "dirs -v" to print the dirstack
# USE "cd -<NUM>" to go back to a visited folder
# [url]https://wiki.archlinux.org/index.php/Zsh[/url]

DIRSTACKFILE="$HOME/.cache/zsh/dirs"
if [[ -f $DIRSTACKFILE ]] && [[ $#dirstack -eq 0 ]]; then
  dirstack=( ${(f)"$(< $DIRSTACKFILE)"} )
  [[ -d $dirstack[1] ]] && cd $dirstack[1]
fi
chpwd() {
  print -l $PWD ${(u)dirstack} >$DIRSTACKFILE
}

DIRSTACKSIZE=20

setopt autopushd pushdsilent pushdtohome

## Remove duplicate entries
setopt pushdignoredups

## This reverts the +/- operators.
setopt pushdminus

#Unlike bash, zsh does not enable a built in help command.
#But this below gives it to you
# [url]https://wiki.archlinux.org/index.php/Zsh[/url]
autoload -U run-help
autoload run-help-git
autoload run-help-svn
autoload run-help-svk
#unalias run-help
alias help=run-help

#Put working directory in titlebar of terminal emulator
# http://www.tuxradar.com/content/z-shell-made-easy
precmd() {
  [[ -t 1 ]] || return
  case $TERM in
    (sun-cmd) print -Pn "\e]l%~\e\\"
      ;;
    (*xterm*|rxvt|(dt|k|E)term) print -Pn "\e]2;%~\a"
      ;;
  esac
}

# Save the time and how long a command ran
setopt EXTENDED_HISTORY

setopt HIST_SAVE_NO_DUPS
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_FIND_NO_DUPS

#}}}

#{{{ Prompt!

host_color=cyan
history_color=yellow
user_color=green
root_color=red
directory_color=magenta
error_color=red
jobs_color=green

host_prompt="%{$fg_bold[$host_color]%}%m%{$reset_color%}"
jobs_prompt1="%{$fg_bold[$jobs_color]%}(%{$reset_color%}"
jobs_prompt2="%{$fg[$jobs_color]%}%j%{$reset_color%}"
jobs_prompt3="%{$fg_bold[$jobs_color]%})%{$reset_color%}"
jobs_total="%(1j.${jobs_prompt1}${jobs_prompt2}${jobs_prompt3} .)"
history_prompt1="%{$fg_bold[$history_color]%}[%{$reset_color%}"
history_prompt2="%{$fg[$history_color]%}%h%{$reset_color%}"
history_prompt3="%{$fg_bold[$history_color]%}]%{$reset_color%}"
history_total="${history_prompt1}${history_prompt2}${history_prompt3}"
error_prompt1="%{$fg_bold[$error_color]%}<%{$reset_color%}"
error_prompt2="%{$fg[$error_color]%}%?%{$reset_color%}"
error_prompt3="%{$fg_bold[$error_color]%}>%{$reset_color%}"
error_total="%(?..${error_prompt1}${error_prompt2}${error_prompt3} )"

#ALT+S inserts "sudo " at the beginning of the line
insert_sudo () { zle beginning-of-line; zle -U "sudo " }
zle -N insert-sudo insert_sudo
bindkey "^[s" insert-sudo

#on slow infrastructure where tab-completion takes a while, show "waiting dots"
#while something tab-completes. (found on zsh-users)
# http://stackoverflow.com/questions/171563/whats-in-your-zshrc
expand-or-complete-with-dots() {
  echo -n "\e[31m......\e[0m"
  zle expand-or-complete
  zle redisplay
}
zle -N expand-or-complete-with-dots
bindkey "^I" expand-or-complete-with-dots

#fix all terminal bugs
# http://stackoverflow.com/questions/171563/whats-in-your-zshrc
export TERM=rxvt

#Set VIEW to your browser, e.g. export VIEW=/usr/bin/elinks or whatever
# you want to use for a quick google search
# URL encode something and print it.
function url-encode; {
        setopt extendedglob
        echo "${${(j: :)@}//(#b)(?)/%$[[##16]##${match[1]}]}"
}
# Search google for the given keywords.
function google; {
        $VIEW=/usr/bin/w3m -no-cookie "http://www.google.com/search?q=`url-encode "${(j: :)@}"`"
}


and created a .zsh_aliases with rejiggering from bash_aliases, which are slightly different

alias up='sudo apt-get update && sudo apt-get dist-upgrade'
alias get='sudo apt-get install'
#alias rem='sudo apt-get autoremove'
#alias cl='sudo apt-get autoclean'
alias prg='sudo apt-get purge'
alias dupgrd='sudo apt-get update && sudo apt-get dist-upgrade -d'
alias acs='apt-cache search'
alias se='apt-cache policy'
alias deps='apt-cache show' #with app will give you depends info etc.
alias upg='sudo update-grub'
alias grc='ps aux | grep'
#alias cd..='cd ..'
alias md=mkdir
alias sdn='sudo shutdown -h now'
alias sdr='sudo shutdown -r now'
alias ls='ls -F --color --group-directories-first'
alias l='ls -lha'
alias c='clear'
alias q='exit'
alias s='sudo'
alias reload='source ~/.zshrc'
alias al='cat ~/.zsh_aliases'
alias alr='ls -R'

alias gpoud='gpo update && gpo download'

alias hmr='mplayer http://hotmixradio-dance.ice.infomaniak.ch/hotmixradio-dance-128.mp3'

### from greywolf on VSIDO forums
## Colorize the grep command output for ease of use (good for log files)##
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'

# install  colordiff package :)
alias diff='colordiff'

alias mount='mount |column -t'

## pass options to free ##
alias meminfo='free -m -l -t'

## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'

## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'

## Get server cpu info ##
alias cpuinfo='lscpu'

## older system use /proc/cpuinfo ##
##alias cpuinfo='less /proc/cpuinfo' ##

## get GPU ram on desktop / laptop##
alias gpumeminfo='grep -i --color memory /var/log/Xorg.0.log'

# some more ls aliases
alias ls='ls --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
alias ll='ls -l --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
alias la='ls -la --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
alias lx='ls -lXB'        # sort by extension
alias lk='ls -lSr'        # sort by size
alias lr='ls -lR'        # recursice ls
alias lt='ls -ltr'        # sort by date
alias lm='ls -al |more'        # pipe through 'more'
alias tree='tree -Cs'        # nice alternative to 'ls'
alias l='ls -hF --color'    # quick listing
alias lsize='ls --sort=size -lhr' # list by size
alias lsd='ls -l | grep "^d"'   #list only directories

# copy with a progress bar.
alias cpv="rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress --"

#Command substitution
alias ff='sudo find / -name $1'
alias df='df -h -x tmpfs -x usbfs'
alias psg='ps -ef | grep $1'
alias h='history | grep $1'
#alias rm='rm -i'
#alias cp='cp -i'
#alias mv='mv -i'
alias mkdir='mkdir -p -v'
alias which='type -all'
alias path='echo -e ${PATH//:/\\n}'
alias vi='vim'
alias du='du -h -c --max-depth=1'
alias c='clear'

#Personal Help
#alias dn='OPTIONS=$(\ls -F | grep /$); select s in $OPTIONS; do cd $PWD/$s; break;done'
#alias help='OPTIONS=$(\ls ~/.tips -F);select s in $OPTIONS; do less ~/.tips/$s; break;done'

#show most popular commands
alias top-commands='history | awk "{print $2}" | awk "BEGIN {FS="|"} {print $1}" |sort|uniq -c | sort -rn | head -10'

# empty trash
alias trash="rm -fr ~/.Trash"

## Moving around & all that jazz
# http://www.tuxradar.com/content/z-shell-made-easy
alias -g back='cd "$OLDPWD"'
alias -g ..="cd .."
alias -g ...="cd ../.."
alias -g ....="cd ../../.."
alias -g .....="cd ../../../.."
alias -g ......="cd ../../../../.."

## Dir shortcuts (slightly diff from bash
# http://www.tuxradar.com/content/z-shell-made-easy
hash -d home=~/
hash -d docs=~/Documents
hash -d dls=~/downloads
hash -d imgs=~/images
hash -d vids=~/videos
hash -d muz=~/music
#hash -d news=~/gPodder/Downloads/NBC Nightly News '(video')')

## App-specific

## Sudo fixes
alias orphand='sudo deborphan | xargs sudo apt-get -y remove --purge'
alias cleanup='sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean && sudo apt-get remove && orphand'
alias upddb='sudo updatedb'
alias swapclear='sudo swapoff -a && sleep 2s && sudo swapon -a'

#find sorted list of biggest files under current directory:
# http://stackoverflow.com/questions/171563/whats-in-your-zshrc
alias biggest='find -type f -printf '\''%s %p\n'\'' | sort -nr | head -n 40 | gawk "{ print \$1/1000000 \" \" \$2 \" \" \$3 \" \" \$4 \" \" \$5 \" \" \$6 \" \" \$7 \" \" \$8 \" \" \$9 }"'

### /from grewolf

### from digit on VSIDO forums

alias big='ls -laSh | head'
alias cdls='cd $1 && ls'
alias dit='emacsclient'
alias fehb='feh --bg-scale'
alias fehbc='feh --bg-center'
alias fehbf='feh --bg-fill'
alias fehbs='feh --bg-scale'
alias ls='ls --color=auto'
alias running='PS_FORMAT="user,pid,pcpu,pmem,start,args" ps axf'

### /from digit on VSIDO forums
#digit's flite aliases
alias fime='flite_time `date +%H:%M`'

### from me
alias weathIL='inxi -W60089'
alias weathSD='inxi -W92116'
alias weathAT='inxi -W30064'
alias weathHO='inxi -W70002'

## a few from http://zsh.sourceforge.net/Contrib/startup/std/zshrc
# List only directories and symbolic
# links that point to directories
alias lsd='ls -ld *(-/DN)'
# List only file beginning with "."
alias lsa='ls -ld .*'

## ## ## ## FUNCTIONS
### /from statmonkey @ vsido.org/forums

# This is just a simple function to take notes.  You can just enter note (whatever you want)
# and it will append it to notes in home/documents but you can set it to go anywhere
note () {
    # if file doesn't exist, create it
    if [[ ! -f $HOME/documents/notes ]]; then
        touch $HOME/documents/notes
    fi

    if [[ $# -eq 0 ]]; then
        # no arguments, print file
        cat $HOME/documents/notes
    elif [[ "$1" == "-c" ]]; then
        # clear file
        echo "" > $HOME/documents/notes
    elif [[ "$1" == "-e" ]]; then
        nano $HOME/documents/notes
    else
        # add all arguments to file
        echo "$@" >> $HOME/documents/notes
    fi
}



#45
VSIDO Discussions / Re: Runit vs systemd placeholder
September 28, 2014, 03:12:18 AM
Linux userland has recently been outraged by systemd, including the VSIDOland. I myself voted for systemd v. upstart back when we had our discussion in January & February. It now seems to me that systemd is just another version of corporate decisions interfering with the libertarian linux-userland. Why bother to discuss those two offerings?

Why not discuss alternatives?

Gentoo uses OpenRC.
http://www.gentoo.org/proj/en/base/openrc/
And Manjaro has a pretty good page on OpenRC.
https://wiki.manjaro.org/index.php?title=OpenRC,_an_alternative_to_systemd

Slackware I believe does it differently. Same name as the systemd program but I think it is a totally different software.
http://www.slackware.com/config/init.php

Or maybe use something less. I mean useless. No, for real:
http://uselessd.darknedgy.net/

Everybody is hooting and hollerin about systemd, including me. All these damn problems with my favorite programs because of corporate decisions? Whatevs.

Anyway, solutions are out there.

Slack & Gentoo have pretty savvy user bases, so the knowledge is there to pull from, though I don't know anyone who uses either. Don't know a thing about useless though. What would be the difficulty in using one of these solutions?