Skip to content

Instantly share code, notes, and snippets.

View zudsniper's full-sized avatar
🎲
snake eyes every time

zod zudsniper

🎲
snake eyes every time
View GitHub Profile
1. Add dependecy:
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j.version}</version>
</dependency>
2.Create config file for log4j (https://logging.apache.org/log4j/2.x/manual/configuration.html).
I prefer log4j2-test.properties because according documentation this format will look second, after configFile:
'If no system property is set the properties ConfigurationFactory will look for log4j2-test.properties in the classpath.'
---------------------------------------------------------------
@zudsniper
zudsniper / GRAB_TOKEN.js
Created May 10, 2023 02:11
discord webapp token grabber -- educational purposes only
function getToken() {
let a = [];
webpackChunkdiscord_app.push([[0],,e=>Object.keys(e.c).find(t=>(t=e(t)?.default?.getToken?.())&&a.push(t))]);
console.log(`${a}`);
return a[0];
}
getToken();
@zudsniper
zudsniper / simple_init_agpt.sh
Created May 1, 2023 20:07
[V1] initialization of Auto-GPT image with Redis memory. Version 1
#!/bin/bash
# init_agpt.sh
# ------------
#
# this script will initialize the redis server for AutoGPT
# then start the AutoGPT instance of name $1
# ---------------------------------------------------------
# MAKE SURE YOU SET YOUR REDIS ENVIRONMENT VARIABLES WITHIN YOUR CONFIGURATION!
# it may be `config.json` or `.env`, or some other way.
#
@zudsniper
zudsniper / init_agpt.sh
Last active June 29, 2023 08:31
[V4.7.0] Auto-GPT init script with docker.compose (snap) and python venv
#!/bin/bash
# init_agpt.sh
# ------------
#
# V4.7.0
# This script will initialize the redis server for AutoGPT
# then start the AutoGPT instance of name $1
# ---------------------------------------------------------
# MAKE SURE YOU SET YOUR REDIS ENVIRONMENT VARIABLES WITHIN YOUR CONFIGURATION!
# it may be `config.json` or `.env`, or some other way.
@zudsniper
zudsniper / agpt-pkg-gen2.sh
Last active April 30, 2023 05:34
[GEN2] AutoGPT-Package automatic configuration builder, as well as general CLI script for AutoGPT-Package with Kurtosis (only supports JSON for now)
#!/bin/bash
# [GPT-3.5] OBVIOUSLY ITS BY THE ROBOT ITS ALL BY THE ROBOT
# v4.6.0
# (this file).sh < AutoGPT-Package < AutoGPT + Kurtosis < OpenAI GPT Models + lots more....
# builder for `AutoGPT-Package`, a packaged deployment tool for AutoGPT.
#
# ⚠ WARNING ⚠ -- ONLY `.json` CONFIG FILES ARE FUNCTIONAL AT THE MOMENT.
# 4/29/2023
#
# SOURCES
@zudsniper
zudsniper / agpt-pkg-gen.sh
Last active April 30, 2023 03:30
[GEN1] AutoGPT-Package Generator Script built to simplify (for my lazy ass) the process of the already very simplified workflow of AutoGPT-Package.
#!/bin/bash
# [GPT-3.5] OBVIOUSLY ITS BY THE ROBOT ITS ALL BY THE ROBOT
# v4.2.0
# (this file).sh < AutoGPT-Package < AutoGPT + Kurtosis < OpenAI GPT Models + lots more....
# builder for `AutoGPT-Package`, a packaged deployment tool for AutoGPT.
#
# ⚠ WARNING ⚠ -- ONLY `.json` CONFIG FILES ARE FUNCTIONAL AT THE MOMENT.
# 4/29/2023
#
# SOURCES
upstream node_server {
server localhost:3000;
}
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
@zudsniper
zudsniper / fuck_this_pkg.sh
Last active April 26, 2023 08:18
[DEBIAN / UBUNTU] FULLY Remove a problematic package, the old fashioned way. I suggest running as root.
#!/bin/bash
# fuck_this_pkg.sh
# ----------------
# v2.3 + GPT-4 assistance
#####################################################
# load ~/.ansi_colors.sh if available
FILE="~/.ansi_colors.sh"
COLORS=0
@zudsniper
zudsniper / WSL_INSTALLATION.md
Last active October 29, 2023 08:56
Windows Subsystem for Linux Installation Guide (including AWS Amplify optionally)

📢 WSL INSTALLATION GUIDE

by @zudsniper

or something...

🔋 POWER QUICKSTART GUIDE

Sorry I let us get a little behind. Let's catch up, shall we?

Follow these steps to a T & you have a 0% guarantee of success!

🧰 BIOS Virtualization

@zudsniper
zudsniper / ARTEMIS_PROFILE_ON_APP.md
Last active April 24, 2023 11:07
[ARTEMIS] Little guide to adding Conditional Profiles, and a small fore into Nodescripts to accomplish goal.

[ARTEMIS][art] HELP

tutorial by [@zudsniper][zod]

[codebase - ARTEMIS][art-gh]

#0001 Profiles & Condition Scripts