Skip to content

Instantly share code, notes, and snippets.

View 9M2PJU's full-sized avatar

9M2PJU

View GitHub Profile
Blok Youtube Web
^.+(youtube).*$|a.youtube.com|b.youtube.com|c.youtube.com|d.youtube.com|e.youtube.com|f.youtube.com| g.youtube.com|h.youtube.com|i.youtube.com|j.youtube.com|l.youtube.com|googlevideo.com|m.youtube.com|(facebook.com).*$
Blok Youtube App
^.+(youtube.com|www.youtube.com|m.youtube.com|ytimg.com|s.ytimg.com|ytimg.l.google.com|youtube.l.google.com|i.google.com|googlevideo.com|youtu.be).*$
/ip firewall layer7-protocol
add name=YouTube regexp="^.+(youtube.com|youtube.com|www.youtube.com|m.youtube.com|ytimg.com|s.ytimg.com|ytimg.l.google.com|youtube.l.google.com|i.google.com|googlevideo.com|youtu.be|www.youtube.com|m.youtube.com|ytimg.com|s.ytimg.com|ytimg.l.google.com|youtube.l.google.com|i.google.com|googlevideo.com|youtu.be).*$"
@9M2PJU
9M2PJU / cty.sh
Last active August 7, 2024 15:31 — forked from anthonydiiorio/cty.sh
Update script for DX Spider Country Files
#!/bin/bash
echo 'Downloading CTY.DAT'
wget -q https://www.country-files.com/cty/cty.dat -P ~/spider/local_data/
echo 'Downloading WPXLOC.RAW'
wget -q https://www.country-files.com/cty/wpxloc.raw -P ~/spider/local_data/
echo 'Creating Prefixes'
~/spider/perl/create_prefix.pl
echo ''
echo 'Log into the cluster as Sysop and type: load/prefix'
read -n 1 -r -s -p $'Press [Enter] to login as Sysop...\n'
@9M2PJU
9M2PJU / gist:e6e756f0eaaa021ec071d8c87c5d4e28
Created August 7, 2024 15:31
Nasabare and CTY.DAT DX Spider Updates
wget -q http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt && /spider/perl/convkeps.pl -p nasabare.txt && rm -rf nasabare.txt &&
wget -O https://www.country-files.com/cty/cty.dat -P /spider/local_data/ && wget -O https://www.country-files.com/cty/wpxloc.raw -P /spider/local_data/ &&
/spider/perl/create_prefix.pl
#include <stdio.h>
#include <math.h>
int main()
{
float a,b,c;
float BMI;
printf("Please enter your weight:");
scanf("%f",&a);
#!/bin/sh
#extract related files and folders to users home dir and run this script. with nochroot available environment. config file, logs dir and web dir must be on users home.
echo "Killing aprs now!"
sleep 1
killall -9 aprsc
nohup /usr/local/sbin/aprsc -f /usr/CRAP/piju/aprsc.conf -p /usr/CRAP/piju/aprsc/logs/aprsc.pid -o /usr/CRAP/piju/aprsc/logs/aprsc.log
echo "aprsc restarted!"
@9M2PJU
9M2PJU / gist:085676d5338534970df391b8786694ec
Created August 7, 2024 15:45
Get Callsign Info from MCMC
#!/bin/bash
# Check if the callsign argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 <callsign>"
exit 1
fi
CALLSIGN="$1"
SANITIZED_CALLSIGN=$(echo "$CALLSIGN" | sed 's/[\/:*?"<>|]/_/g')
@9M2PJU
9M2PJU / outbound-email-with-cloudflare.md
Created October 3, 2024 18:42 — forked from irazasyed/outbound-email-with-cloudflare.md
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail