This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NetworkProtocolHTTP::~NetworkProtocolHTTP() | |
{ | |
for (int i = 0; i < collect_headers_count; i++) | |
if (collect_headers[i] != nullptr) | |
{ | |
free(collect_headers[i]); | |
collect_headers[i] = nullptr; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# create flask startup scripts for flask apps. | |
# a typical path: /home/ubuntu/yourProject | |
# with a venv at: /home/ubuntu/yourProject/venv | |
# | |
# adiller oct 2023 | |
# | |
################################################################# | |
# Function to display usage notes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -m venv venv | |
source venv/bin/activate | |
pip install Flask openai | |
python ./app.py | |
---------------------------------------------- | |
from flask import Flask, request, jsonify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Make a backup file of a Mastodon instance. The backup file is a TGZ containing | |
# the Postgres dump as well as the /public/system (media) files and the | |
# .env.production file. For loading the dump file contents, see: | |
# https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Migration-guide.md | |
# | |
# Usage: ./mastodon_backup.sh my_dump_file.tgz | |
# | |
# Advanced usage: MASTODON_LIVE_DIRECTORY=/path/to/live ./mastodon_backup.sh my_dump_file.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/bash | |
# chddeck_osx.sh for Macintosh OSX 2022 | |
# original script from https://www.emudeck.com/ EmuDeck installation. | |
# https://github.com/dragoonDorise/EmuDeck/blob/main/tools/chdconv/chddeck.sh | |
# modified to run on a local copy of ROM files to compress them before installing on SteamDeck | |
# | |
# N O T E S: | |
# | |
# install chdman from brew! You need this for the script to do anything... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'########:'##::::'##:::::::'##:'####:'##::: ##:'########:'########: | |
##.....:: ##:::: ##::::::: ##:. ##:: ###:: ##: ##.....::... ##..:: | |
##::::::: ##:::: ##::::::: ##:: ##:: ####: ##: ##:::::::::: ##:::: | |
######::: ##:::: ##::::::: ##:: ##:: ## ## ##: ######:::::: ##:::: | |
##...:::: ##:::: ##:'##::: ##:: ##:: ##. ####: ##...::::::: ##:::: | |
##::::::: ##:::: ##: ##::: ##:: ##:: ##:. ###: ##:::::::::: ##:::: | |
##:::::::. #######::. ######::'####: ##::. ##: ########:::: ##:::: | |
..:::::::::.......::::......:::....::..::::..::........:::::..::::: | |
----------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/sgug/bin/bash | |
# This script should be run as your user! | |
# Some useful variables | |
build_progress_dir="/usr/people/edodd/btw/tiny_build/output/PROGRESS" | |
sgug_rse_srpm_archive_root="/usr/people/edodd/rpmbuild/SRPMS" | |
sgug_rse_git_root="/usr/people/edodd/btw/tiny_build/sgug-rse.git" | |
sgug_rse_srpm_output_root="/usr/people/edodd/btw/tiny_build/output/SRPMS" | |
sgug_rse_rpm_output_root="/usr/people/edodd/btw/tiny_build/output/RPMS" | |
_rpmbuild=$1 | |
if [[ -z $_rpmbuild ]] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7:11:54.942 > Entering iwmDisk::mount - /APPLE/GAMES/CHOPLIFTER.PO | |
17:11:54.942 > | |
17:11:54.942 > Looking for Media Type- should be a PO image... | |
17:11:54.944 > Media Type PO | |
17:11:54.946 > idle | |
17:11:54.948 > enable | |
17:11:54.948 > f3 fc ff ff ff c3 83 80 80 80 80 82 81 80 84 83 90 c1 d1 f9 80 80 80 80 ee bf c8 | |
17:11:54.949 > handling control command | |
17:11:54.949 > Device 83 Control Code f9 | |
17:11:54.950 > Control List is at 41 51 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
______________________________________________________________________________ | |
8888888888 Y88b d88P | |
888 Y88b d88P | |
888 Y88o88P | |
8888888 Y888P | |
888 d888b | |
888 d88888b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
''' | |
Needs Requests (pip3 install requests) | |
Author: Marcello Salvati, Twitter: @byt3bl33d3r | |
License: DWTFUWANTWTL (Do What Ever the Fuck You Want With This License) | |
This should allow you to detect if something is potentially exploitable to the log4j 0day dropped on December 9th 2021. |