Skip to content

Instantly share code, notes, and snippets.

😐
hopeful

paigeadelethompson

😐
hopeful
Block or report user

Report or block paigeadelethompson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@paigeadelethompson
paigeadelethompson / curl formatter json output
Last active Feb 24, 2019
curl log connection stats (--write-out) in JSON format
View curl formatter json output
╭─  24.02.19   01:32:32  erratic@molly   1.58   34.14G    master   
├─  /etc/tor   10585  
╰─ curl -s --xattr -m 15 --connect-timeout 2 --proxy-insecure -L -w '{\n\t"content_type": "%{content_type}",\n\t"filename_effective": "%{filename_effective}",\n\t"ftp_entry_path": "%{ftp_entry_path}",\n\t"http_code": "%{http_code}",\n\t"http_connect": "%{http_connect}",\n\t"http_version": "%{http_version}",\n\t"local_ip": "%{local_ip}",\n\t"local_port": "%{local_port}",\n\t"num_connects": "%{num_connects}",\n\t"num_redirects": "%{num_redirects}",\n\t"proxy_ssl_verify_result": "%{proxy_ssl_verify_result}",\n\t"redirect_url": "%{redirect_url}",\n\t"remote_ip": "%{remote_ip}",\n\t"remote_port": "%{remote_port}",\n\t"scheme": "%{scheme}",\n\t"size_download": "%{size_download}",\n\t"size_header": "%{size_header}",\n\t"size_request": "%{size_r
View gist:405fd7382709b5a7afdb386c2a4d25cd
00000290: 0000 0000 0000 0000 0000 0063 8253 6335 ...........c.Sc5
000002a0: 0101 3902 05c0 3723 0102 0304 0506 0c0d ..9...7#........
000002b0: 0f11 1216 171c 2829 2a2b 3233 363a 3b3c ......()*+236:;<
000002c0: 4243 6180 8182 8384 8586 8761 1100 0000 BCa........a....
000002d0: 0000 0000 0000 0000 0000 0000 0000 5e03 ..............^.
000002e0: 0103 015d 0200 073c 2050 5845 436c 6965 ...]...< PXEClie
000002f0: 6e74 3a41 7263 683a 3030 3030 373a 554e nt:Arch:00007:UN
00000300: 4449 3a30 3033 3030 31ff ffff ffff ffff DI:003001.......
00000310: 5254 0012 3456 0800 4500 0177 da30 0000 RT..4V..E..w.0..
00000320: 4011 9f46 0000 0000 ffff ffff 0044 0043 @..F.........D.C
View ip2long.sh
cidr=$(echo $1 | sed 's/.xz//g' | tr '/' ' ' | awk '{print $NF}' | tr '_' '/')
for y in $(xzcat $1); do
a=$(printf "0x%2X\n" $(echo $y | tr '.' ' ' | awk '{print $1}') | tr -d ' ')
b=$(printf "0x%2X\n" $(echo $y | tr '.' ' ' | awk '{print $2}') | tr -d ' ')
c=$(printf "0x%2X\n" $(echo $y | tr '.' ' ' | awk '{print $3}') | tr -d ' ')
View gist:4a9bcf4f0593047f3993ab6b7d79da0f
curl 'https://www.ethernodes.org/network/1/data?draw=1&columns%5B0%5D%5Bdata%5D=id&columns%5B0%5D%5Bname%5D=&columns%5B0%5D%5Bsearchable%5D=true&columns%5B0%5D%5Borderable%5D=true&columns%5B0%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B0%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B1%5D%5Bdata%5D=host&columns%5B1%5D%5Bname%5D=&columns%5B1%5D%5Bsearchable%5D=true&columns%5B1%5D%5Borderable%5D=true&columns%5B1%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B1%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B2%5D%5Bdata%5D=port&columns%5B2%5D%5Bname%5D=&columns%5B2%5D%5Bsearchable%5D=true&columns%5B2%5D%5Borderable%5D=true&columns%5B2%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B2%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B3%5D%5Bdata%5D=country&columns%5B3%5D%5Bname%5D=&columns%5B3%5D%5Bsearchable%5D=true&columns%5B3%5D%5Borderable%5D=true&columns%5B3%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B3%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B4%5D%5Bdata%5D=clientId&columns%5B4%5D%5Bname%5D=&columns%5B4%5D%5Bsearchable%5D=true&columns%5B4%5D%5Borderable%5D=tr
View compile_python_suse.sh
#!/bin/bash
sudo zypper install readline-devel sqlite3-devel libbz2-devel zlib-devel libopenssl-devel libgcrypt-devel glib2-devel autoconf automake libtool install libbz2-devel libssl45 libreadline7 libsqlite3-0 tk-devel
sudo zypper install -t pattern devel_C_C++
curl -vvv --retry 2 -Lsk https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz -O
tar -xJvf Python-3.7.3.tar.xz
cd Python-3.7.3
./configure --prefix=/usr
View gist:fc9189a4a9690d5bd92b3ce0a98bed33
byebug) backtrace
--> #0 #<Class:Yast::Debugger>.start(remote#FalseClass, port#Integer, start_client#TrueClass) at /usr/lib64/ruby/vendor_ruby/2.5.0/yast/debugger.rb:63
#1 #<Class:Yast::WFM>.handle_exception(e#NoMethodError, client#String) at /usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:268
#2 rescue in #<Class:Yast::WFM>.rescue in run_client(client#String) at /usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:329
#3 #<Class:Yast::WFM>.run_client(client#String) at /usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:310
ͱ-- #4 #<Class:Yast::WFM>.call_builtin(*args) at /usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:206
#5 #<Class:Yast::WFM>.call_builtin_wrapper(*args#Array) at /usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:206
#6 #<Class:Yast::WFM>.CallFunction(client#String, args#Array) at /usr/lib64/ruby/vendor_ruby/2.5.0/yast/wfm.rb:195
#7 Yast::ApparmorClient.startDialog at /usr/share/YaST2/clients/apparmor.rb:124
#8 Yast::ApparmorClient.main at /usr/share/YaST2/clients/apparmor
View retroarch deps
mbedtls-devel libswresample-devel libavdevice-devel libavformat-devel libavcodec-devel libavresample-devel libavutil-devel
libswscale-devel libjack-devel flac-devel libXv-devel vulkan-devel libass-devel openal-soft-devel
View 1. kde crash
There's a problem with virtio guest video and opengl guest display support being enabled at the same time when running tumbleweed as a guest (seemed to work fine with backtrack a few months ago but I'll have to double check)
However right around the same time as the crash I was trying to get the compositor to restart, because I noticecd my terminal was no longer transparent, so really that catalyzed it but I'm not sure the other
is completely unrelated, it all seems to be related to graphics issues. (complete log in file #5)
[ 18.276367] virbr0: port 1(virbr0-nic) entered disabled state
[ 18.276425] device virbr0-nic entered promiscuous mode
[ 18.502744] virbr0: port 1(virbr0-nic) entered blocking state
[ 18.502747] virbr0: port 1(virbr0-nic) entered listening state
[ 18.514901] Initializing XFRM netlink socket
[ 18.522188] ctnetlink v0.93: registering with nfnetlink.
View gist:42610b99731993cf324a926d0c46278c
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 46.246.35.1 0.0.0.0 UG 0 0 0 IPREDATOR
10.242.0.0 0.0.0.0 255.255.255.0 U 0 0 0 enp1s0
10.242.239.0 0.0.0.0 255.255.255.0 U 0 0 0 enp2s0
46.246.34.130 192.168.1.1 255.255.255.255 UGH 0 0 0 enp0s3
46.246.35.0 0.0.0.0 255.255.255.0 U 0 0 0 IPREDATOR
46.246.35.2 192.168.1.1 255.255.255.255 UGH 0 0 0 enp0s3
46.246.35.130 0.0.0.0 255.255.255.255 UH 0 0 0 enp0s3
46.246.36.130 192.168.1.1 255.255.255.255 UGH 0 0 0 enp0s3
You can’t perform that action at this time.