Skip to content

Instantly share code, notes, and snippets.

@SellersEvan
SellersEvan / bing_images_download.py
Last active September 24, 2021 03:24
Bing URL image mass download (fork google-images-download)
#!/usr/bin/env python
# In[ ]:
# coding: utf-8
###### Searching and Downloading Google Images to the local disk ######
# Updated by Evan Sellers <sellersew@gmail.com> Feb 2020
# Now uses bing search and only supports url
# Import Libraries
@herberthamaral
herberthamaral / nats_to_sse.py
Last active May 12, 2025 07:26
Listen to a nats topic and write to a HTTP client listening via server-sent-events
import asyncio
from typing import AsyncGenerator, Dict
from fastapi import FastAPI
from nats.aio.client import Client as NATS
from nats.aio.client import Msg
from starlette.requests import Request
from starlette.responses import StreamingResponse
app = FastAPI()
// Launch WinAFL with current function as hook location
//@author richinseattle
//@category _NEW_
//@keybinding
//@menupath
//@toolbar
// Usage:
// Install DynamoRIO and WinAFL
// Add LaunchWinAFL to Ghidra scripts
@Luzifer
Luzifer / README.md
Last active March 31, 2025 18:54
Running docker-compose as a systemd service

Running docker-compose as a systemd service

Files

File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
@TheHackerDev
TheHackerDev / 301.py
Created June 12, 2017 13:43
Simple 301 redirect server in Python
import SimpleHTTPServer
import SocketServer
# Redirect to Google.com
class Redirect(SimpleHTTPServer.SimpleHTTPRequestHandler):
def do_GET(self):
print self.path
self.send_response(301)
new_path = '%s%s'%('https://google.com', self.path)
self.send_header('Location', new_path)
@weapp
weapp / nginx.conf
Created August 4, 2014 17:21
Return common errors as json in Nginx
error_page 500 /500.html;
location /500.html{
return 500 '{"error": {"status_code": 500,"status": "Internal Server Error"}}';
}
error_page 502 /502.html;
location /502.html{
return 502 '{"error": {"status_code": 502,"status": "Bad Gateway"}}';
}