Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
STATS=$(speedtest -s 3926 -f json | jq '.ping.latency,.download.bandwidth,.upload.bandwidth')
PING=$(echo $STATS | awk '{printf "%d", $1}')
DOWNLOAD=$(echo $STATS | awk '{printf "%d", $2}')
UPLOAD=$(echo $STATS | awk '{printf "%d", $3}')
echo "rp1_office.ping:${PING}|g" | nc -w 1 -4u localhost 8125
#!/bin/bash
base_url="https://ce987049f84bba9d289197c0b600d84ceb039d42991c8783:@packagecloud.io"
#curl https://ce987049f84bba9d289197c0b600d84ceb039d42991c8783:@packagecloud.io/api/v1/distributions
dist=$(curl -ss "$base_url/api/v1/repos/grafana/stable/packages.json" | | jq -r '.[]' | jq -r '[.version,.distro_version,.downloads_count_url] | @csv' | tr -d '"' )
while IFS= read -r line; do
dl_url=$(echo $line | awk -F"," '{print $3}'
dl_count=$(curl -ss "$base_url$dl_url" | jq -r .)
<pre><strong>pub</strong> <a href="/pks/lookup?op=get&amp;search=0x555eb989bfc45c8464fd3bfae985eef656d23992">rsa4096/555eb989bfc45c8464fd3bfae985eef656d23992</a> 2019-07-14T20:56:36Z
Hash=<a href="/pks/lookup?op=hget&amp;search=0400acaa49f003d6ffc2a74e0c2515da">0400acaa49f003d6ffc2a74e0c2515da</a>
<strong>uid</strong> <span class="uid">Anthony Sottile (deadsnakes) &lt;[email protected]&gt;</span>
sig sig <a href="/pks/lookup?op=get&amp;search=0xe985eef656d23992">e985eef656d23992</a> 2019-07-14T20:56:36Z ____________________ ____________________ <a href="/pks/lookup?op=vindex&amp;search=0xe985eef656d23992">[selfsig]</a>
<strong>sub</strong> rsa4096/8ff6981e2e1ca5b7670654ab0edbc7164da70dbc 2019-07-14T20:56:36Z
sig sbind <a href="/pks/lookup?op=get&amp;search=0xe985eef656d23992">e985eef656d23992</a> 2019-07-14T20:56:36Z ____________________ ____________________ <a href="/pks/lookup?op=vindex&amp;search=0x" e985eef656d23992="">[]</a>
</pre>
@MikeeI
MikeeI / ssrf_iframe.svg
Last active April 5, 2022 17:02 — forked from akhil-reni/ssrf_iframe.svg
SVG Foreign Objects IFrame SSRF
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MikeeI
MikeeI / gist.txt
Created February 28, 2022 22:48
PublicDebug
DEBUG
@MikeeI
MikeeI / wireguard_privatekey.conf
Created February 10, 2022 01:55
wireguard_privatekey.conf
[Interface]
PrivateKey = uztN4RmrrPGH8X36ATibhAoUcY4XPnDnhty1YldlpUs=
Address = 192.168.123.107/32
[Peer]
PublicKey = uy722TzVz9Vy0xpFW0yZFrf39TawbmmfaO/UzKUeCHw=
AllowedIPs = 192.168.1.0/24
Endpoint = 52.18.63.80:51820
PersistentKeepalive = 60
@MikeeI
MikeeI / oneliner.sh
Created February 3, 2022 17:31 — forked from royalgarter/oneliner.sh
Oneliners shellscript
System information commands
===========================
(*) #su Show only errors and warnings: `dmesg --level=err,warn`
(*) View dmesg output in human readable format: `dmesg -T`
(*) Get an audio notification if a new device is attached to your computer: `dmesg -tW -l notice | gawk '{ if ($4 == "Attached") { system("echo New device attached | espeak") } }`
(*) Dmesg: follow/wait for new kernel messages: `dmesg -w`
(*) The proper way to read kernel messages in realtime.: `dmesg -wx`
(*) Query graphics card: `lspci -nnk | grep -i VGA -A2`
@MikeeI
MikeeI / customKali.sh
Created January 21, 2022 00:44 — forked from mikiminoru/customKali.sh
Update OS, download and install tools from other repositories to customize Debian.
#=======================================================#
#Update used tools after new installation #
#Credits: @mikiminoru and the developers used tools's #
#=======================================================#
#set the keyboard languaje and the directory (instead of 'es' you can choose your native languaje)
setxkbmap es
cd ~/
@MikeeI
MikeeI / _how-to.md
Created November 8, 2021 16:13 — forked from glennschler/_how-to_algovpn_1.md
Algo VPN configs and scripts
  • First follow the Algo instructions to install requirements. Confirm the python virtual environment prompt is shown

  • Download the modified config.cfg. Edit as needed

curl -o config.cfg https://gist.githubusercontent.com/glennschler/8edcadb6ba5e151898774441dbffb739/raw/04ce253a5b2a304a77d12968966c3d1a1eb65898/config.cfg
  • Prepare the ansible-vault of aws_secrets
mkdir vars
@MikeeI
MikeeI / mobileconfig-letsencrypt.md
Last active October 31, 2021 16:37 — forked from Fastidious/mobileconfig-letsencrypt.md
Sign mobileconfig files with Letsencrypt
#!/bin/bash

certs="/etc/letsencrypt/live/ievents.me"

openssl smime \
    -sign \
    -signer ${certs}/cert.pem \
    -inkey ${certs}/privkey.pem \
 -certfile ${certs}/chain.pem \