Skip to content

Instantly share code, notes, and snippets.

View R4wm's full-sized avatar
💝
tab tab tab...

r4wm R4wm

💝
tab tab tab...
View GitHub Profile
@R4wm
R4wm / bible_api_json_example.sh
Created September 4, 2020 01:31
getting verse range from json output of bible_api
curl -s https://bible.mintz5.com/bible/daily/nt | jq '.. | objects | select((.Verse >= 06) and (.Verse <= 11))'
{
"Book": "2CORINTHIANS",
"Chapter": 2,
"Verse": 6,
"Text": "Sufficient to such a man [is] this punishment, which [was inflicted] of many."
}
{
"Book": "2CORINTHIANS",
"Chapter": 2,
@R4wm
R4wm / bible.service
Created November 30, 2020 06:18
systemd service file for bible_api (local)
[Unit]
Description=bible
After=syslog.target
[Service]
ExecStart=/home/rmintz/bin/bible_api -dbPath /home/rmintz/kjv.db
Restart=always
KillSignal=SIGQUIT
Type=fork
StandardError=syslog
@R4wm
R4wm / get_singthekjv_mp3.sh
Created April 9, 2021 01:21
get all singthekjv.app mp3
for i in $(curl 'https://singthekjv.app/scripture-songs' | egrep -o 'data-path=".*"' | tr " " "\n" | egrep "*.mp3" | cut -f2 -d'=' | tr -d '"'); do wget --tries=3 "https://singthekjv.app/$i" ; done
@R4wm
R4wm / emacs_notes.txt
Last active April 16, 2021 05:48
useful commands in emacs for c++
https://boruch-baum.github.io/emacs_mini_manual/c-ide.html
dumb-jump
semantic-mode
semantic-ia-fast-jump
sr-speedbar-open
global-semantic-idle-summary-mode # this one shows me where the definition is!
semantic-stickyfunc-mode # Keeps function name at the top
@R4wm
R4wm / docker_notes.md
Last active August 23, 2021 20:40
docker notes bc i forget

Get image

list found at: docker hub

docker pull ubuntu:xenial

create docker container from image id

the hash is the docker image ID
Note: the hash after -it is the image ID from docker container ls -a

@R4wm
R4wm / romans6.md
Last active July 6, 2022 17:21
Romans 6 personal outline

Chapter 6

  • we have a choice on who to serve
  • True baptism, into Jesus Christ, into His death
    • I am buried WITH Him by baptism into death
      • I shall also live with Him
      • This is NOTHING related to water baptism (washing away of sins)
  • The old man is crucified with Him
  • I am not under the law, I am under grace
    • Dead unto sin
  • This means that sin has no hold on me. It cant condemn me anymore. Sin is nullified even if/when I commit the act
@R4wm
R4wm / daysfromnow.html
Created May 27, 2022 18:03
simple tool to help brandy with work stuff
<html>
<head>
<style>
.calendar-wrapper {
width: 360px;
margin: 3em auto;
padding: 2em;
border: 1px solid #dcdcff;
border-radius: 5px;
background: #fff;
@R4wm
R4wm / webster_short.sh
Created July 6, 2022 17:20
webster command line
#!/bin/bash
key=$(cat ~/.webster/config.json | jq .key | sed s/\"//g)
curl -s "https://www.dictionaryapi.com/api/v3/references/collegiate/json/$1?key=$key" | jq .[0].shortdef
@R4wm
R4wm / Dockerfile
Last active January 6, 2023 07:05
setup hoyj clickhouse docker instance
[r4wm@todo hoyj_clickhouse_database]$ cat Dockerfile
FROM yandex/clickhouse-server
RUN apt update
COPY create_database.sh .
COPY create_media_table.sql .
VOLUME /home/r4wm/hoyj_clickhouse_database:/var/lib/clickhouse
EXPOSE 8123/tcp
[r4wm@todo hoyj_clickhouse_database]$
@R4wm
R4wm / projects.README.md
Created June 6, 2023 14:37
projects.README.md
  • create encrypted personal linux server
  • create a beacon to track ip address of personal server