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 / 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 / svn_notes.txt
Last active June 25, 2021 22:51
svn why,...
# Turn on exe on file
svn propset svn:executable on
# Turn off exe on file
svn propdel -R svn:executable
@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 / 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 / golang-request
Last active December 12, 2020 04:33 — forked from kendellfab/golang-request
Golang Example for adding custom headers to a request.
package main
import (
"bytes"
"fmt"
"net/http"
"os"
)
func main() {
@R4wm
R4wm / hexgoingon.py
Last active December 10, 2020 20:21
int an hex, hex to int
#!/usr/bin/python3
import re
import sys
import argparse
def getHex(a_user_int):
return hex(a_user_int).split('x')[-1].upper()
def getInt(a_hex):
@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 / 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 / verse_count_old_and_new.sql
Last active July 17, 2020 04:13
how many vs in Old and New Testament?
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 June 20, 2020 00:00
waflz_stuff
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 $