Skip to content

Instantly share code, notes, and snippets.

Avatar
💝
tab tab tab...

r4wm R4wm

💝
tab tab tab...
View GitHub Profile
@R4wm
R4wm / webster_short.sh
Created Jul 6, 2022
webster command line
View webster_short.sh
#!/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 / daysfromnow.html
Created May 27, 2022
simple tool to help brandy with work stuff
View daysfromnow.html
<html>
<head>
<style>
.calendar-wrapper {
width: 360px;
margin: 3em auto;
padding: 2em;
border: 1px solid #dcdcff;
border-radius: 5px;
background: #fff;
@R4wm
R4wm / romans6.md
Last active Jul 6, 2022
Romans 6 personal outline
View romans6.md

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 / docker_notes.md
Last active Aug 23, 2021
docker notes bc i forget
View docker_notes.md

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 / emacs_notes.txt
Last active Apr 16, 2021
useful commands in emacs for c++
View emacs_notes.txt
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 / get_singthekjv_mp3.sh
Created Apr 9, 2021
get all singthekjv.app mp3
View get_singthekjv_mp3.sh
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 / bible.service
Created Nov 30, 2020
systemd service file for bible_api (local)
View bible.service
[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 / bible_api_json_example.sh
Created Sep 4, 2020
getting verse range from json output of bible_api
View bible_api_json_example.sh
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 / verse_count_old_and_new.sql
Last active Jul 17, 2020
how many vs in Old and New Testament?
View verse_count_old_and_new.sql
sqlite> select count(*) from kjv where testament="OLD";
count(*)
----------
23145
sqlite> select count(*) from kjv where testament="NEW";
count(*)
----------
7957
sqlite>
@R4wm
R4wm / output.sh
Last active Jun 20, 2020
waflz_stuff
View output.sh
build/util/scopez_server/scopez_server -S tests/data/waf/conf/scopes -r tests/data/waf/ruleset -g tests/data/waf/db/GeoLite2-City.m-i tests/data/waf/db/GeoLite2-ASN.mmdb -c tests/data/bot/bot-challenges.json -a -d tests/data/waf/conf
Path: tests/data/waf/conf/rules/0050-ZrLf3KkQ.rules.jsonPath: tests/data/waf/conf/rules/0051-4fsYnj9c.rules.jsonPath: tests/data/waf/conf/rules/0052-svUweMIX.rules.jsonPath: tests/data/waf/conf/rules/0052-7eWjgqLK.rules.jsonPath: tests/data/waf/conf/rules/0052-l9nTkowq.rules.jsonlisteners added
ᚱ@waflz $ curl -s -XPOST http://localhost:12345/update_scopes -d@./tests/data/waf/conf/scopes/0051.scopes.json | jq .
{
"status": "success"
}
ᚱ@waflz $