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 / blocking.go
Last active August 11, 2019 20:32
blocking channel demonstration
package main
import "fmt"
const mock = "haha you waited"
func main() {
c := make(chan string)
@R4wm
R4wm / curlf.sh
Last active August 15, 2019 17:12
source the file then curlf for time formatted results
#!/bin/bash
echo '
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n' > /tmp/format.txt
@R4wm
R4wm / no_blanking.sh
Created September 15, 2019 22:34
disable screen auto blackout
#!/bin/bash
xset -dpms ; xset s off
@R4wm
R4wm / plots.go
Created September 22, 2019 22:10
example embedded png plots html outputter
package main
import (
"bytes"
"encoding/base64"
"fmt"
"log"
"math/rand"
"net/http"
"time"
@R4wm
R4wm / raspberry_pi_notes.sh
Created September 27, 2019 06:46
raspberry pi install notes for my setip
#!/bin/bash
pacman -S xf86-video-fbdev
@R4wm
R4wm / questions.txt
Created October 24, 2019 00:07
ERASE ME
ᚱ@soc $ cat /tmp/questions.txt
Sheriff Alex Villanueva Hosts Monthly Briefing
Uploaded 10/23/2019
Condolences for Brian Ishmael, El DOrado kia
Palm Dale shooting
East LA Community outi
@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 / stuff_to_remember.md
Last active June 13, 2020 01:44
Moments to remember

Scenario:: Daughter heated her own tortilla

Dad: its just I dont want you playing with fire my love, your only 8..
Daughter: Im practically a grown up in 2 years.


Scenario:: Dad is turning on the stove for daughter

Dad: Im just worried about you burning yourself
Daughter: : Im not 4 anymore, i know how to cook Dad.. (reaches for the stepping stool)

@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 $
@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>