Skip to content

Instantly share code, notes, and snippets.

View jcohen66's full-sized avatar

Jonathan T. Cohen jcohen66

View GitHub Profile
@jcohen66
jcohen66 / grep_with_jq.md
Created October 13, 2025 22:09
Network Grep with JQ #network #log #grep #jq

grep "n8n.15garlen.org" /var/log/traefik/access.log | tail -1 | jq .

@jcohen66
jcohen66 / ollama_cloud.md
Created October 9, 2025 18:34
AI Ollama Cloud #ai #gpu #cloud #remote #local #ollama

Must add "-cloud" suffix to model name to indicate to run in the cloud.

ollama run qwen3-coder:480b-cloud

Limited list of models: - qwen3-coder:480b-cloud - gpt-oss:120b-cloud

@jcohen66
jcohen66 / linux_date.md
Created October 9, 2025 03:08
Linux Date Stuff #linux #date #epoch #whois

date +%s

whois hak5.org | grep -i "Creation Date" Creation Date: 2005-07-21T19:10:40Z

whois hak5.org | grep -i "Creation Date" | awk '{print $3}' 2005-07-21T19:10:40Z

whois hak5.org | grep -i "Creation Date" | awk '{print $3}' | cut -d'T' -f1

@jcohen66
jcohen66 / chuk-llm-demo.md
Created October 8, 2025 19:54
AI Ollama Granite Demo #ai #ollama #granite #uv #asyncio

uv init chuk-llm-demo uv venv .env\Scripts\activate uv add chuk-llm

import asyncio
from chuk_llm import ask_ollama_granite, stream_ollama_granite
@jcohen66
jcohen66 / windows_get_children.md
Created October 8, 2025 17:38
Windows Find Equivalent #windows #find #file

Get-ChildItem -Path "C:\Users\jonathan.cohen\AppData\Local\Programs" -Name -ErrorAction SilentlyContinue | Where-Object { $_ -like "*ollama*" }

@jcohen66
jcohen66 / ai_limitations.md
Created October 8, 2025 13:50
AI Limitations #ai #agi #limit

Things AI can do well - Reason - Problem solve - NLP - Create stuff from influences - Art - Music - Literature - Robots

@jcohen66
jcohen66 / telos_template.md
Last active October 7, 2025 02:47
AI TELOS File #ai #career #telos #file #identity #purpose

TELOS File Template: [https://github.com/danielmiessler/Telos]

PROBLEMS

  • Things that you see wrong with the world that you want to actively solve
  • Things that frustrate you
  • Does this affect anyone else?

MISSIONS

@jcohen66
jcohen66 / python_pallidrome.py
Created September 25, 2025 19:43
Python Pallindrome Code #python #pallindrome #problem
forwardStr = input('Enter a string: ')
backwardStr = ''
i = 0
while i < len(forwardStr):
backwardStr = forwardStr[i] + backwardStr
i += 1
if forwardStr == backwardStr:
print(f'{forwardStr} is a Palindrome Word')
@jcohen66
jcohen66 / jwt.md
Created September 25, 2025 19:32
AAA JWT #java #web #token #jwt #jot

How JWT Works

1. Workflow

  • The server creates a JWT on user authentication
  • The server gives the JWT to the client after signing it
  • The client includes JWT in each request
  • The server allows a request only if the JWT's signature is valid

2. Authorization

  • The server doesn't store session information
@jcohen66
jcohen66 / linux_nano_commands.md
Created September 25, 2025 19:23
Linux Nano Commands #linux #nano #commands

Essential Nano keyboard shortcuts

Shortcut Description

nano filename Open file for editing in Nano Arrow keys Move cursor up, down, left and right Ctrl+A, Ctrl+E Move cursor to start and end of the line Ctrl+Y/Ctrl+V Move page up and down Ctrl+_ Move cursor to a certain location Alt+A and then use arrow key Set a marker and select text Alt+6 Copy the selected text