Skip to content

Instantly share code, notes, and snippets.

View mpql's full-sized avatar

mpql

View GitHub Profile
@mpql
mpql / check-service.sh
Created March 24, 2022 21:06
Script to check service status and hit URL ; intended to be cron'd
#!/bin/bash
service=${1} ;
url=${2} ;
if [[ -z "${url}" ]] || [[ -z "${service}" ]]
then
echo 'Argument missing.' ;
echo 'Usage: check-service.sh [servicename] [push URL]' ;
exit
{
"blacklist": [],
"cache": false,
"custom": {
"twitch.tv": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"
},
"exactMatch": false,
"faqs": false,
"json-forced": false,
"json-guid": "0bf79774-ff1f-40ab-aad8-4d46f4ce4270",
@mpql
mpql / getcardinfo.sh
Created September 13, 2024 05:07
Gets eMMC info for e.g. Micro SD cards to generate info about possible genuine status
#!/usr/bin/env bash
NC='\033[0m' ;
RED='\033[1;31m' ;
GRN='\033[1;32m' ;
# Get OEM ID and Manufacturer IDs
oemid=$(cat '/sys/block/mmcblk0/device/oemid') ;
manfid=$(cat '/sys/block/mmcblk0/device/manfid') ;
oemid_ascii=$(echo -e "\x${oemid:2:2}\x${oemid:4:2}") ;