Monthly Archives: August 2022

Sed

All the words in the Bible that come after “Thou shalt not” cat kjv.txt | tr ‘[A-Z]’ ‘[a-z]’ | awk -F ‘thou shalt not ‘ ‘NF>1{ sub(/ .*/,””,$NF); print $NF }’ | sed ‘s/punct://g’ | sort | uniq    

Posted in Uncategorized | Leave a comment

Age of the Earth

THE AGE OF THE EARTH If you believe the Bible is the inerrant word of God, there is no way around the fact that the bible teaches the Earth was created in 4163 BCE and that the flood was in … Continue reading

Posted in Uncategorized | Leave a comment

Minor Prophets

Also we cannot resist the call of God. God is sovereign and has chosen his elect before the worlds existence. Just look at Paul. Would we have the Gospel if not for Paul? Is the sovereignty of God not thoroughly … Continue reading

Posted in Uncategorized | Leave a comment

Bash

Convert between numerical bases #!/bin/bash printf “hex2dec=”;echo “ibase=16;$1″|bc printf “dec2hex=”;echo “obase=16;$1″|bc printf “oct2dec=”;echo “ibase=8;$1″|bc printf “dec2oct=”;echo “obase=8;$1″|bc Binary to decimal   #! /bin/bash D2B=({0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}{0..1}) echo $((10#${D2B[$1]}))  

Posted in Uncategorized | Leave a comment

Perl

Print all the four letter words in the Bible cat kjv.txt | perl -ne ‘print map(“$_\n”, m/\w+/g);’ | tr A-Z a-z | sort | uniq | awk ‘length($1) == 4 {printf “%s “, $0}’

Posted in Uncategorized | Leave a comment

GEM

GEM by Digital Research coulda been a GUI contender. It coulda been somebody. But Bill Gates was more ruthless than Gary Kildall.

Posted in Uncategorized | Leave a comment

Vim

In vim add a blank line above and below all search matches: :%s/.\+salvation.\+/\r&\r/g

Posted in Uncategorized | Leave a comment

Ufology

FLYING SAUCERS On June 24, 1947, a U.S. Marine C-46 transport plane crashed on the northwest side of Mount Rainier in Washington State, and when word got around, a private pilot named Kenneth Arnold volunteered to aid with the search. While … Continue reading

Posted in Uncategorized | Leave a comment

Bc

Using bc to crank out pi. The answer becomes more trustworthy the longer you let bc think about it. #!/bin/bash echo “scale=$1;a(1)*4” | bc -l Calculate absolute magnitude of Sirius Visual magnitude = -1.46 Distance = 8.6 light-years $ echo … Continue reading

Posted in Uncategorized | Leave a comment

The Writings

Context is everything. For example, does the following sentence occur in the Bible? “There is no God.” Yes, twice actually. Psalm 14:1 and Psalm 53:1 as follows: “The fool says in his heart, ‘There is no God.’” Context is everything. … Continue reading

Posted in Uncategorized | Leave a comment