Skip to content

Instantly share code, notes, and snippets.

View AksAman's full-sized avatar
👨‍💻

Aman Kumar AksAman

👨‍💻
View GitHub Profile
@AksAman
AksAman / default.md
Created June 24, 2025 12:15 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@AksAman
AksAman / animated-noise.css
Created June 12, 2024 07:31
Noise Animation with CSS
.noise::before {
content: "";
z-index: 20;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZKADAAQAAAABAAAAZAAAAAD/wAARCABkAGQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEB
@AksAman
AksAman / next_auth_decrypt.py
Created December 22, 2023 12:59
Verify Next Auth JWT on python based backends
import json
import os
import time
from typing import Any
from Crypto.Protocol.KDF import HKDF # pip install pycryptodome cryptography
from Crypto.Hash import SHA256
from jose import jwe # pip install python-jose
from dataclasses import dataclass, field
@AksAman
AksAman / settings.json
Last active August 21, 2023 16:52
vscode settings.json for python
{
"files.exclude": {
"**/__pycache__": true,
"**/venv": true
},
"python.analysis.autoImportCompletions": true,
"python.defaultInterpreterPath": "./venv/bin/python",
"flake8.args": [
"--max-line-length=120",
"--ignore=E501, E402, E731, W503, W504"
@AksAman
AksAman / youtube_subtitle_parser.py
Created August 12, 2023 19:15
Subtitle Parser for Youtube Captions
"""
Example srt:
---
1
00:00:00,660 --> 00:00:04,600
[Music]
2
00:00:05,040 --> 00:00:06,960
Lorem Ipsum is simply dummy text of the printing
@AksAman
AksAman / CustomSafeAreaView.tsx
Created June 12, 2023 16:55
React Native SafeAreaView Component for Android/iOS
import { StyleSheet, Platform, StatusBar, SafeAreaView } from "react-native";
import React from "react";
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0
}
});
@AksAman
AksAman / react-native.code-snippets.json
Created May 20, 2023 10:02
VSCode snippet to generate React Native Function Component (typescript)
{
"React Native Functional Component (Custom)": {
"scope": "typescript,typescriptreact",
"prefix": "rfc",
"body": [
"import React from \"react\";",
"import { View, StyleSheet } from \"react-native\";\n\n",
"type ${TM_FILENAME_BASE}Props = {}\n",
"const defaultProps = {}\n",
"const ${TM_FILENAME_BASE}: React.FC<${TM_FILENAME_BASE}Props> = (props) => {",
@AksAman
AksAman / visualize_json.js
Created May 19, 2023 19:50
Visualize JSON data in postman
// GO TO THE END OF THE TEST SCRIPT.
// source: https://www.postman.com/postman/workspace/postman-team-collections/request/3407886-0cd8c17f-45bc-48b0-9be0-cd7d7704425d
var template = `
<style>
.fill,
body,
html {
height: 100%
}
@AksAman
AksAman / watch-amplify-jobs.sh
Last active February 16, 2023 13:55
Watch/Monitor AWS Amplify jobs build status
# Get the app id and branch name from the output of the below command.
# If you already know the app id and branch name, you can skip to step 2
# STEP 1
aws amplify list-apps --output table --query "apps[*].{name:name,appId:appId,branch:productionBranch.branchName}"
# output
# ----------------------------------------------
# | ListApps |
# +-----------------+---------+----------------+
@AksAman
AksAman / setPostmanVars.js
Created January 12, 2023 08:29
Set postman environment variables from json response
var jsonData = JSON.parse(responseBody);
let varsToSet = [
// Put all your keys here (nested don't work as of now)
]
const setEnvVar = (key, data) => {
if(data[key] !== undefined){
postman.setEnvironmentVariable(key, data[key]);