Topic | Days | Importance | Status |
---|---|---|---|
Arrays | 10 | ⭐⭐⭐⭐ | Not Started |
Two Pointer & Sliding Window | 5 | ⭐⭐⭐ | Not Started |
Discover gists
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
type PromiseObject<T> = { | |
promise: Promise<T>; | |
required: boolean; | |
}; | |
type PromiseResult<T> = T extends Promise<infer U> ? U : never; | |
type PromiseResults<T extends readonly PromiseObject<unknown>[]> = { | |
[K in keyof T]: T[K]['required'] extends true | |
? PromiseResult<T[K]['promise']> |
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/env python | |
############################################################################################################### | |
## [Title]: linuxprivchecker.py -- a Linux Privilege Escalation Check Script | |
## [Author]: Mike Czumak (T_v3rn1x) -- @SecuritySift | |
##------------------------------------------------------------------------------------------------------------- | |
## [Details]: | |
## This script is intended to be executed locally on a Linux box to enumerate basic system info and | |
## search for common privilege escalation vectors such as world writable files, misconfigurations, clear-text | |
## passwords and applicable exploits. |
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
import anthropic | |
import os | |
import sys | |
from termcolor import colored | |
from dotenv import load_dotenv | |
class ClaudeAgent: | |
def __init__(self, api_key=None, model="claude-3-7-sonnet-20250219", max_tokens=4000): | |
"""Initialize the Claude agent with API key and model.""" |
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
/* | |
HOW TO USE | |
########## | |
- Go to the unity asset store (https://assetstore.unity.com/) | |
- Select any category and adapt filters to what you want to get | |
It is recommended to set the "Hide Purchased Assets" and "Free Assets" to reduce working load. | |
You might also set other filters like for example only 3D Characters or 4+ star ratings only | |
- Open up the developer console (normally F12) | |
- Copy this script to the Console (you might change the consts at the beginning, numbers are in milliseconds) | |
- Write "redeemAll();" (without the quotes) in the console and hit enter |
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
// Types for the result object with discriminated union | |
type Success<T> = { | |
data: T; | |
error: null; | |
}; | |
type Failure<E> = { | |
data: null; | |
error: E; | |
}; |
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
Windows 7 Ultimate Retail Offline Activation Key | |
BR6G7-729GM-DQDQW-F9M4P-MM2JX | |
J6XG4-8JFTF-43CHH-8Q2VW-KHQH6 | |
YQMCM-3W6TK-YXP66-GKCJV-PX7PH | |
[Tested working on 18 June 2013] | |
================================================================================= | |
Windows 7 Pro / Enterprise Online Activation MAK Key |
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 | |
installCursor() { | |
local CURSOR_URL="https://downloader.cursor.sh/linux/appImage/x64" | |
local ICON_URL="https://miro.medium.com/v2/resize:fit:700/1*YLg8VpqXaTyRHJoStnMuog.png" | |
local APPIMAGE_PATH="/opt/cursor.appimage" | |
local ICON_PATH="/opt/cursor.png" | |
local DESKTOP_ENTRY_PATH="/usr/share/applications/cursor.desktop" | |
echo "Checking for existing Cursor installation..." |
We are going to edit cursors settings to point to the microsoft extensions marketplace.
- Remove all extensions and exit Cursor.
- Locate your Cursor
project.json
file depending on your platform and open it.- On MacOS:
/Applications/Cursor.app/Contents/Resources/app/product.json
- On Windows:
C:\Users\<user_name>\AppData\Local\Programs\cursor\resources\app\product.json
- On Linux:
/usr/lib/code/product.json
- On MacOS:
- Locate the object value for key
extensionsGallery
in the json document.
NewerOlder