A simple port scanner program written in Python using the standard library
Scan all ports from 1 to 65535 on localhost
$ python portscan.py
Scan all ports from 1 to 65535 on host google.com
from sanic import Sanic | |
from sanic.response import json | |
from sanic.exceptions import InvalidUsage | |
app = Sanic(__name__) | |
def webhook_actions(): | |
"""Actions to perform when webhook receives POST request""" | |
pass |
Here is a guide to help you what Discord bot host to pick. This was originally a tag on the discord.py server, but was moved to this GitHub gist as it eventually rolled over the 2000 character limit.
I recommend a cheap VPS server as the best way to host your bot online for 24/7. Here are some good picks, credit to the discord.py server for this
--> Run this program on an (advanced) wireless pocket computer in your off-hand for best results | |
--> Replace 'id' with the id of the turtle - run the 'id' command in the turtle's shell | |
rednet.CHANNEL_BROADCAST = 8000 | |
rednet.open("back") | |
print("Controller open on port "..rednet.CHANNEL_BROADCAST) | |
while true do | |
rednet.send(id, io.read()) |
diff --git "a/.\\Portal Still Alive Beta/32_584109600002000100010001.PNG" "b/.\\Portal Still Alive Retail/32_584109600002000100010001.PNG" | |
index 5ed7564..7163f8a 100644 | |
Binary files "a/.\\Portal Still Alive Beta/32_584109600002000100010001.PNG" and "b/.\\Portal Still Alive Retail/32_584109600002000100010001.PNG" differ | |
diff --git "a/.\\Portal Still Alive Beta/32_584109600002000100020001.PNG" "b/.\\Portal Still Alive Beta/32_584109600002000100020001.PNG" | |
deleted file mode 100644 | |
index 42d6e1a..0000000 | |
Binary files "a/.\\Portal Still Alive Beta/32_584109600002000100020001.PNG" and /dev/null differ | |
diff --git "a/.\\Portal Still Alive Beta/32_584109600002000100030001.PNG" "b/.\\Portal Still Alive Beta/32_584109600002000100030001.PNG" | |
deleted file mode 100644 | |
index d9ae228..0000000 |
import os | |
import re | |
CHD_DIR = "/path/to/chds" | |
chds = [*filter(lambda i: i.endswith(".chd"), os.listdir(CHD_DIR))] | |
games = set(name[:name.find("(")] for name in chds) | |
for game in games: | |
m3u_list = [chd + "\n" for chd in chds if game in chd] |
{ | |
"PresetList": [ | |
{ | |
"AlignAVStart": false, | |
"AudioCopyMask": [ | |
"copy:aac" | |
], | |
"AudioEncoderFallback": "av_aac", | |
"AudioLanguageList": [], | |
"AudioList": [ |
spruce now has a menu script that allows you to generate M3U playlists to better organise your multi-disc games! This script supports discs named with the Redump (e.g. Metal Gear Solid (USA) (Disc 1).chd
) and TOSEC (e.g. Shenmue v1.001 (2000)(Sega)(PAL)(M4)(Disc 1 of 4)[!].chd
) naming conventions.
This feature will be available beginning with the release of spruce v3.2.0 "Dripline"
To generate M3U playlists for your multi-disc games, first go to a disc-based console through the Games menu; this script supports the following:
{ | |
"PresetList": [ | |
{ | |
"AlignAVStart": true, | |
"AudioCopyMask": [ | |
"copy:aac" | |
], | |
"AudioEncoderFallback": "av_aac", | |
"AudioLanguageList": [], | |
"AudioList": [ |