Skip to content

Instantly share code, notes, and snippets.

View by77er's full-sized avatar
🐟
sleeping

by77er

🐟
sleeping
View GitHub Profile
@by77er
by77er / Cargo.toml
Created September 8, 2023 03:44
Two Discord Bots Communicating with Channels
[package]
name = "rust_bot_queues"
version = "0.1.0"
edition = "2021"
[dependencies]
serenity = { version = "0.11", default-features = false, features = ["client", "gateway", "rustls_backend", "model", "cache"] }
tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] }
@by77er
by77er / pull_updates.py
Last active April 21, 2023 08:09
Update docker compose deployment from public git repository
#!/usr/bin/python3
import subprocess
def update_compose_repo():
print('>>> git pull - ing')
pullresult = subprocess.run(['git', 'pull', 'origin', 'main'], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
if b'Already up to date.\n' == pullresult.stdout:
print('>>> no update')
return
@by77er
by77er / da_scrape.exs
Last active January 24, 2020 01:54
sequentially scrape DeviantArt for Wix image URLs (Obsolete)
defmodule DA.API do
def main(args) do
# prepare :inets
setup()
# arg validation
{named, unnamed, _} = OptionParser.parse(args, aliases: [o: :out], strict: [out: :string])
{first, last} = case unnamed do
[f, l] -> {f, l}
_ -> print_help()
@by77er
by77er / shellcode_runner.c
Last active August 9, 2019 16:49
For testing shellcode on machines with DEP/NX enabled
#include <stdio.h>
#include <sys/mman.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
// Executes shellcode on Unix machines with DEP/NX enabled
// exec /bin/bash (MacOS)
char payload[] = "\x48\x31\xf6\x56\x48\xbf"

Keybase proof

I hereby claim:

  • I am by77er on github.
  • I am by77er (https://keybase.io/by77er) on keybase.
  • I have a public key ASDUcqUxaJQzP9P2WAzwZY_IbeB1Q_m6aKyYDMTC4sjbAAo

To claim this, I am signing this object: