Skip to content

Instantly share code, notes, and snippets.

@DoctorD90
DoctorD90 / torrent_trackers_list_generator.sh
Created September 5, 2021 11:10
Generate a clean formatted trackers list for torrents softwares
#!/bin/bash
# Generate a clean formatted trackers list for torrents softwares
# The newtrackon.com free service is used as main resource
INPUT_FILE="torlist_input.txt"
OUTPUT_FILE="torlist_output.txt"
# Create input file
if [ ! -e "$INPUT_FILE" ]; then
#!/bin/bash
# Replace with the hostname/FQDN of the Server
sslhost=github.com
# Replace with the SSL port of the Server
sslport=443
sslcert=$(openssl s_client -showcerts -connect "$sslhost":"$sslport" < /dev/null)
echo "$sslcert" | openssl x509 -noout -serial
echo "$sslcert" | openssl x509 -noout -hash
@DoctorD90
DoctorD90 / mteams_manage.ps1
Last active February 14, 2021 20:56
PowerShell script with GUI to manage users in Teams Groups in bulk mode
#Set-ExecutionPolicy unrestricted
#Install-Module -Name MicrosoftTeams
Add-Type -assembly System.Windows.Forms
$main_form = New-Object System.Windows.Forms.Form
$main_form.Text ='MTeams Group Bulk Manager'
#$main_form.Width = 300
#$main_form.Height = 400
$main_form.AutoSize = $true
$main_form.AutoScale = $true
$main_form.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterScreen
@DoctorD90
DoctorD90 / nctransfer
Created August 22, 2020 09:34
Receive and send file via netcat tool
#!/bin/bash
# COMMANDS
# 1) Receive a file
# nctransfer r ListenPort ?FileToReceive?
#
# 2) Send a file
# nctransfer s ServerIP ServerPort FileToSend
if [ "$1" == "r" ]; then
@DoctorD90
DoctorD90 / xcode-cli-tools.sh
Created January 24, 2020 20:10 — forked from trinitronx/xcode-cli-tools.sh
Script to download & install XCode Command Line tools on OSX 10.7 or 10.8. Lifted from jedi4ever/veewee template.
#!/bin/sh
OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}')
# Get Xcode CLI tools
# https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/index-3905972D-B609-49CE-8D06-51ADC78E07BC.dvtdownloadableindex
# https://developer.apple.com/downloads/index.action
TOOLS=clitools.dmg
if [ ! -f "$TOOLS" ]; then
if [ "$OSX_VERS" -eq 7 ]; then
DMGURL=http://devimages.apple.com/downloads/xcode/command_line_tools_for_xcode_os_x_lion_april_2013.dmg
@DoctorD90
DoctorD90 / Pact gw2timer_clip.ps1
Created May 29, 2018 16:26
This script uses http://gw2timer.com/ as source for daily Pact Supply Network
# This script uses http://gw2timer.com/ as source for daily Pact Supply Network:
# A collaborative effort to record what recipes are being offered daily by the Pact Supply Network Agents in Guild Wars 2. [cit.]
# So please, if something is outofdate, go there and follow rules about how to update and give a contribute to the community :)
# See Ya
###
# Do not edit below
###
$recipe = 'https://api.guildwars2.com/v2/items?ids='
$gcsv = 'https://docs.google.com/spreadsheets/d/1hIw2DAzdD72wPfP-GJ3sNlf4weaJ2L2mMFGJPFb93eE/export?format=csv&id=1hIw2DAzdD72wPfP-GJ3sNlf4weaJ2L2mMFGJPFb93eE&gid=0'
@DoctorD90
DoctorD90 / mailinator.xml
Created February 4, 2017 21:19
Browser Search Engine extension to open a Mailinator's mailbox
<?xml version="1.0" encoding="UTF-8" ?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Mailinator.com</ShortName>
<Description>Open a Mailinator's mailbox</Description>
<!--
<Image height="16" width="16" type="image/x-icon">https://mailinator.com/ico/favicon.ico</Image>
-->
<!--
wget https://mailinator.com/ico/favicon.ico
@DoctorD90
DoctorD90 / haveibeenpwned.sh
Created January 19, 2017 15:29
Bash script to download pastes listed on https://haveibeenpwned.com/Pastes/Latest
#!/bin/bash
pastes="$(curl -s https://haveibeenpwned.com/Pastes/Latest | grep http://pastebin.com/ | sed 's/<a href=\"//g' | sed 's/\">//g')"
for link in $pastes; do
mkdir -p haveibeenpwned
echo "Checking $link"
id="$(echo "$link" | sed 's/http:\/\/pastebin.com\///g')"
if [ ! -e ./haveibeenpwned/"$id".txt ]; then
echo "Downloading . . ."
@DoctorD90
DoctorD90 / multiusb.sh
Last active October 31, 2016 16:28
To create an usb with multiple ISO on it
# Write dev path to your usb
myDEV="/dev/sdc"
# Write Label for your usb
myVOL="MultiBootUSB"
##### DO NOT EDIT BELOW #####
# Write 10MegaByte to clear formats on usb
@DoctorD90
DoctorD90 / mailinator.sh
Created February 14, 2016 14:52
Get Mailinator.com alive domains
#!/bin/bash
maxtest="200"
prefix="<span style=\"font-weight: bold;color:lightblue;font-size:24px;\">@"
suffix="</span>"
hostout="mail is handled by"
mydir="./domains"
mydomfile="$mydir/total.txt"
mydomgood="$mydir/good.txt"
mydombad="$mydir/bad.txt"