Skip to content

Instantly share code, notes, and snippets.

View 7h3rAm's full-sized avatar

Ankur Tyagi 7h3rAm

View GitHub Profile
@yzdbg
yzdbg / auto-dr.md
Last active December 27, 2025 05:32

Automating Daily Reports, because fuck it, really...

Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.

So now, there's a scribe for that :

auto-dr-

Code

@Mikaayenson
Mikaayenson / sample_chatgpt_security_use_case.py
Last active September 2, 2023 17:29
Sample use case to demonstrate applying the new chatGPT model to security summaries.
import openai
import requests
import textwrap
import uuid
# pip3 install openai requests
# setup the API credentials
es_username = "<your username>"
es_password = "<your password>"
es_url = "https://localhost:9200"
@veekaybee
veekaybee / chatgpt.md
Last active April 26, 2026 02:20
Everything I understand about chatgpt

ChatGPT Resources

Context

ChatGPT appeared like an explosion on all my social media timelines in early December 2022. While I keep up with machine learning as an industry, I wasn't focused so much on this particular corner, and all the screenshots seemed like they came out of nowhere. What was this model? How did the chat prompting work? What was the context of OpenAI doing this work and collecting my prompts for training data?

I decided to do a quick investigation. Here's all the information I've found so far. I'm aggregating and synthesizing it as I go, so it's currently changing pretty frequently.

Model Architecture

@djsime1
djsime1 / fz_forks.md
Last active November 18, 2024 18:34
Flipper Zero firmware differences

This document has moved!

This comparison list has been relocated into the Awesome Flipper Zero repository. While you can read still read an archived version in this gist, all future updates will take place in the new repository.

Last archived version (Adapted from Nano's original messages in the Unleashed firmware Discord.)

Flipper Zero firmware differences

:: Last updated July 10 2022. ::

At this point, it is probably easier to just use something like this: https://github.com/reznok/Spring4Shell-POC
- clone https://spring.io/guides/gs/handling-form-submission/
- you can skip right to gs-handling-form-submission/complete, no need to follow the tutorial
- modify it so that you can build a war file (https://www.baeldung.com/spring-boot-war-tomcat-deploy)
- install tomcat9 + java 11 (i did it on ubuntu 20.04)
- deploy the war file
- update the PoC (https://share.vx-underground.org/) to write the tomcatwar.jsp file to webapps/handling-form-submission instead of webapps/ROOT
@pmarreck
pmarreck / coinflip.bash
Created February 9, 2022 23:40
Simplest way to simulate a coin flip or toss on the Linux command line (in Bash; may work in other shells)
# return code is either 0 (success) or 1 (fail), so you can use it straight-up in logical statements
coinflip() { return $(($RANDOM%2)); }
coinflip && echo "heads" || echo "tails"
@trevor229
trevor229 / ambient_aprs.py
Created July 25, 2021 08:49
Script for using the Ambient Weather API to upload data to APRS/CWOP
# Ambient Weather API APRS/CWOP upload script from this thread https://www.wxforum.net/index.php?topic=36181.0
# Originally written by uajqq and Ron B.
# Modified by me (trevor229) for amateur radio use (added a few new variables)
# Be aware there are apparently some issues with the coordinates not being rounded properly in some cases. Read the thread above for more info. It works fine for me though.
# When using this script, make sure it is not running more than once per 5 minutes, as CWOP requests.
import os
from socket import *
from datetime import datetime, time
@ranuzz
ranuzz / conway_gol_pwp.py
Created June 9, 2021 02:29
Conway's Game of Life in Processing with Python
"""
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
conway's game of life
"""
from random import randint
def gameOfLife(grid):
state = {}
rows = len(grid)