• Download
  • Dream page
  • [STYLE]
  • Do we get to the other side?

    *cough* *cough* *cough*

    We are experiencing troubles with|in a|the tube(s). Please help us diagnosis this issue by verifying https://dave.thehorners.com/ is responding and displaying properly for you on your device. At this time, the main host is still

    OPERATIONAL,

    https cert is NOT locked on either http(s)! disturbance in the force. USE AT YOUR OWN RISK!

    it should work but lock may not show green and secure; that is expected. If you can't get to secure sites, please use http://dave.thehorners.com/. If your ISP has restrictions to certain sites, consider another provider or another VPN. Life is too short and precious to be controlled and manipulated. I pray for ALL those people who are endure under censor and control; This is the Land of the Free and the Home of The Brave....the always on always connected multi-verse Internet right?! What's your locale like? I hope it's not oppressive. See here, a beautiful view from satellite(s) below. God Speed; and Good Luck.

    .

    Ppl of the Internet. Right now, dave.thehorners.com is unavailable on the *[LTE AT&T network] (outage has been persistent for a long while; last personal report to ATT with no response 11/11/2018)

    I don' t know if it is an outage or what; but please do a tracert from your device and request access to dave.thehorners.com if it doesn't route from your ISP (at this time I only KNOW that LTE ATT is affected if you find otherwise, please post proof in deepdream. I was told 24 hours; but that was days and days ago. I would be interested in the help...frustrating figuring out a routing|sensor|censor problem. I will remove this message from my site when LTE is routing again from my phone. [DOWN NETWORK QUICK ACCESS NOTES] AT&T LTE - Customer service: 1 (800) 331-0500
    Pardon|Thank you|Merci|Gracias


    My current preferred deep dream site(s) are: fibFile dave.thehorners.com My last 3 deep dreams were:(b0caa;5141d;bcab1) the current time is 11/17/2018 at 01:56
    https://q4j2g5j9.stackpathcdn.com/ddg-dream/a9f99e2f09d974fdfc36e91384e18e453e9b0caa.jpg - AT&T
    https://q4j2g5j9.stackpathcdn.com/ddg-dream/01cce5bee4c316e5ae8e1a4f53957b527525141d.jpg
    https://q4j2g5j9.stackpathcdn.com/ddg-dream/70cebfdbcdeb8c09a0d9076a5c669d735cbbcab1.jpg


    If you are reading these bytes and you didn't have to hop around N+1 nodes to anon and make things confusing.....CONGRATULATIONS you're blessed to be free. Thank|Pardon|Garcias someone. It didn't happen by itself.
    and now back to the strange loop perspective of just another.

    Dave Horner's Website - Yet another perspective on things...
    Home Tech Talk Programming Bash and batch programming
    100 guests
    Rough Hits : 3552252
    moon and stars
    how did u find my site?





     
    morning or night person?


     
    There is grandeur in this view of life, with its several powers, having been originally breathed into a few forms or into one; and that, whilst this planet has gone cycling on according to the fixed law of gravity, from so simple a beginning endless forms most beautiful and most wonderful have been, and are being, evolved.
    --Charles Robert Darwin
    \begin{bmatrix} 1 & 0 & \ldots & 0 \\ 0 & 1 & 0 & \vdots \\ \vdots & 0 & \ddots & 0\\ 0 & \ldots & 0 & 1_{n} \end{bmatrix}

    Bash and batch programming

    Saturday, 26 March 2005 22:08
    Hidden features of Windows batch files - Stack Overflow - windows cmd.exe has many hidden features, this page has most of it covered...

    Wanna loop over files in bash and perform a cmd on those files?

    # (where $i is replaced by the name of the file)
    for i in ./*.conf; do cmd -c $i; done
    

    or using find
    # (where {} is replaced by the name of the file)
    find . -name *.conf -exec cmd {} \;
    I usually opt. for the find version because it seems to be more capable.

    Then if you are on windows, you don't get find and you can't use the bash syntax of course.... So use, forfiles! What a gem. Gives you access to filename without extension and do things differently if you are testing for files or folders.
    forfiles is very powerful.
    O'Reilly -- Ten Essential Windows 2000 Commands


    Cutting up file/path strings in bash

    Of course you could use the programs 'dirname' or 'basename'...but you can also do it using bash regex...
    Get directory portion of path
    dirportion = ${path%/*}
    Get the filename of path
    filename = ${path##*/}
    Get the basename of the file (without extension)
    basename = ${path%%.*}
    Get the extension of the path
    ext = ${file#*.}
    These examples are based on these operations:
    ${variable%pattern}
    Trim the shortest match from the end
    ${variable##pattern}
    Trim the longest match from the beginning
    ${variable%%pattern}
    Trim the longest match from the end
    ${variable#pattern}
    Trim the shortest match from the beginning
    bash String Manipulations Issue 18


    Wanna make a CGI script in bash?

    If you ever need to quickly code up a bash CGI script, use bashlib.

    Great programming info:
    Advanced Bash-Scripting Guide
    Quick syntax guide
    If
    if [ expression ]
    then
       commands
    elif [ expression2 ]
    then
       commands
    else
       commands
    fi
    While
    #This program lists the parameters that were passed to the program, along with the parameter number.
     
    count=1
    while [ -n "$*" ]
    do
       echo "This is parameter number $count $1"
       shift
       count='expr $count + 1'
    done
    Case statement
    case $1 in
    -i)
       count='grep ^i $2 | wc -l'
       echo "The number of lines in $2 that start with an i is $count"
       ;;
    -e)
       count='grep ^e $2 | wc -l'
       echo "The number of lines in $2 that start with an e is $count"
       ;;
    *)
       echo "That option is not recognized"
       ;;
    esac
    For
    # In this form, the for statement executes once for each item in the list. 
    # This list can be a variable that contains several words separated by spaces, 
    # or it can be a list of values that is typed directly into the statement. Each 
    # time through the loop, the variable var1 is assigned the current item in the 
    # list, until the last one is reached.
    for var1 in list
    do
       commands
    done
    How to run a command for each line of a file using sed.
    sed is your friend.
    for i in `sed -e 's/,.*$//g' < upgrade/4.1.9-4.1.11/file.lst`; do chmod 666 $i ; done


    Find and replace using find and sed

    find ./ -type f -exec sed -i ’s/string1/string2/’ {} \;


    Display ls tree || dirtree in unix

    Unix Tree / Linux Tree • Display Structure of Directory Hierarchy -
    ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/   /' -e 's/-/|/'
    

    tree (Unix) - Wikipedia
    The Tree Command for Linux Homepage

    < Prev  Next >
    Last Updated on Thursday, 17 October 2013 21:06