Skip to content

Instantly share code, notes, and snippets.

Avatar
💝
tab tab tab...

r4wm R4wm

💝
tab tab tab...
View GitHub Profile
@R4wm
R4wm / stuff_to_remember.md
Last active Jun 13, 2020
Moments to remember
View stuff_to_remember.md

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 / hexgoingon.py
Last active Dec 10, 2020
int an hex, hex to int
View hexgoingon.py
#!/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):
View questions.txt
ᚱ@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 / raspberry_pi_notes.sh
Created Sep 27, 2019
raspberry pi install notes for my setip
View raspberry_pi_notes.sh
#!/bin/bash
pacman -S xf86-video-fbdev
@R4wm
R4wm / plots.go
Created Sep 22, 2019
example embedded png plots html outputter
View plots.go
package main
import (
"bytes"
"encoding/base64"
"fmt"
"log"
"math/rand"
"net/http"
"time"
@R4wm
R4wm / no_blanking.sh
Created Sep 15, 2019
disable screen auto blackout
View no_blanking.sh
#!/bin/bash
xset -dpms ; xset s off
@R4wm
R4wm / curlf.sh
Last active Aug 15, 2019
source the file then curlf for time formatted results
View curlf.sh
#!/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 / blocking.go
Last active Aug 11, 2019
blocking channel demonstration
View blocking.go
package main
import "fmt"
const mock = "haha you waited"
func main() {
c := make(chan string)
@R4wm
R4wm / fan.go
Created Jul 10, 2019
Fan In demonstration
View fan.go
package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
fmt.Println("start main")
View stuff and stuff
lfs chroot) I have no name!:/# whoami
root
(lfs chroot) I have no name!:/# which
bash: which: command not found
(lfs chroot) I have no name!:/# find . -iname "whoami" -print
./tools/bin/whoami
./tools/lib/bash/whoami
(lfs chroot) I have no name!:/# file ./tools/bin/whoami
./tools/bin/whoami: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /tools/lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, with debug_info, not stripped
(lfs chroot) I have no name!:/#