Skip to content

Instantly share code, notes, and snippets.

View dabumana's full-sized avatar
:shipit:
XOR

null_xun dabumana

:shipit:
XOR
View GitHub Profile
@dabumana
dabumana / dockpod_python (Django+PostgreSQL+Nginx+Redis) [ELK optional]
Last active September 15, 2022 23:54
Dockerized development stack, this script helps you to organize and prepare a virtual environment in a abstracted container for development or production purposes, the requirements and variables of the project are adjusted to the parameters of architecture detailed in the sequence.
#!/bin/bash
### Intro ########################
echo '''
### WELCOME <=0x0=> ########################################################################
# This script helps you to organize a virtual environment on a isolated container #
# for development and production purposes, the requirements and variables of the project #
# are adjusted to the parameters of architecture detailed in the sequence. #
############################################################################################
'''
### Project Values ###############
@dabumana
dabumana / io
Last active November 26, 2022 02:17
This tool help you to generate an initial structure and *configuration* file, you can setup your own environment, according to the requirements of your project please follow the instructions to complete the process of initial setup and then you can *build* your services for production or test purposes.
#!/bin/bash
#
# Author: @dabumana
# Copyright BSD
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
#1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
#
#2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
#
@dabumana
dabumana / SetIPTables.sh
Last active May 4, 2022 23:32
A ready to use firewall configuration IPTABLES (FRAGMENTPACKAGE, XMAX, LAND, SMURF PORTKNOCKING).
#!/bin/bash
# Flash the current table
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
# Log current scan
iptables -A INPUT -j LOG
iptables -A FORWARD -j LOG
iptables -A OUTPUT -j LOG
@dabumana
dabumana / dietpi-pitft.sh
Created August 2, 2020 03:33
TFT Screen installation
cd /tmp
wget https://github.com/goodtft/LCD-show/archive/master.zip
unzip master.zip
rm master.zip
cd LCD-show-master
cp usr/tft35a-overlay.dtb /boot/overlays/
mv usr/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo
mkdir -p /etc/X11/xorg.conf.d
cp usr/99-calibration.conf-35-90 /etc/X11/xorg.conf.d/99-calibration.conf
mkdir -p /usr/share/X11/xorg.conf.d
@dabumana
dabumana / criptic.py
Last active November 15, 2022 03:31
Simple minimal tool to encrypt payloads, generating keys and hidding kernel callbacks.
import sys
import hashlib
from base64 import b64encode
from Crypto.Cipher import AES
from os import urandom
class user_preferences:
SIZE = 0
KEY = ""
@dabumana
dabumana / install-caos.sh
Last active July 21, 2023 06:35
Our conversational assistant is designed to support a wide range of OpenAI services. It features advanced modes that allow you to customize the contextual information for specific use cases, including modifying the engine, results, and probabilities. With the ability to adjust the amount of words and predefined values, you can achieve the highes…
#!/usr/bin/env bash
mkdir caos
curl https://raw.githubusercontent.com/dabumana/caos/main/ci/service/Dockerfile >> ./caos/Dockerfile
#Generate initialize script and first run
echo docker run -it --cpus=$1 caos:latest >> caos.sh
docker build --build-arg KEY=$2 --build-arg ZKEY=$3 --pull --rm -f "caos/Dockerfile" -t caos:latest ./caos
docker run -it --cpus=$1 caos:latest