Skip to content

Instantly share code, notes, and snippets.

@ginjikata98
ginjikata98 / claude-code-prompt.txt
Created August 20, 2025 16:15 — forked from agokrani/claude-code-prompt.txt
Claude Code System Prompt
'system':
[
{
'type': 'text',
'text': "You are Claude Code, Anthropic's official CLI for Claude.",
'cache_control': {'type': 'ephemeral'}
},
{
'type': 'text',
'text': 'You are an interactive CLI tool that helps users with software engineering tasks.
@ginjikata98
ginjikata98 / claude_code_hooks_for_uv.md
Created July 26, 2025 16:14 — forked from glennmatlin/claude_code_hooks_for_uv.md
Claude Code hooks for working with `uv`

Claude Code Hooks for working with uv

by Glenn Matlin / glennmatlin on all socials

Installation

  1. Download and copy all files in this gist to ~/.claude/
  2. Move the .py files to ~/.claude/hooks
  3. Restart Claude Code.
@ginjikata98
ginjikata98 / private_fork.md
Created December 24, 2024 13:51 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@ginjikata98
ginjikata98 / cuda_install.md
Created September 5, 2023 04:17 — forked from denguir/cuda_install.md
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@ginjikata98
ginjikata98 / ubuntu-setup.md
Created September 2, 2023 04:34 — forked from BeKnowDo/ubuntu-setup.md
Setting up Ubuntu for my development environment and other utilities

Ubuntu 20.04

Installing gDebi

sudo apt install gdebi-core

Sharing Drives via Samba

  • Install the taskel and samba server packages
    • sudo tasksel install samba-server
    • sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
    • sudo bash -c 'grep -v -E "^#|^;" /etc/samba/smb.conf_backup | grep . > /etc/samba/smb.conf'
  • sudo nano /etc/samba/smb.conf
@ginjikata98
ginjikata98 / README.md
Created December 7, 2022 06:03 — forked from asimshankar/README.md
Training TensorFlow models in C

Training TensorFlow models in C

Python is the primary language in which TensorFlow models are typically developed and trained. TensorFlow does have bindings for other programming languages. These bindings have the low-level primitives that are required to build a more complete API, however, lack much of the higher-level API richness of the Python bindings, particularly for defining the model structure.

This gist demonstrates taking a model (a TensorFlow graph) created by a Python program and running the training loop in a C program.

The model

@ginjikata98
ginjikata98 / vectoradd.cu
Created December 6, 2022 14:48 — forked from al-indigo/vectoradd.cu
cuda runtime api example
/**
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related documentation outside the terms of the EULA
* is strictly prohibited.
*
*/
@ginjikata98
ginjikata98 / C-Code.md
Created November 24, 2022 01:00 — forked from Acry/C-Code.md
C-Idioms, C-Examples, C-Tutorials, C-Snippets, C-Resources
@ginjikata98
ginjikata98 / MultipleResolverResourcesConfig.java
Created September 24, 2022 13:36 — forked from bclozel/MultipleResolverResourcesConfig.java
Resource Handling configuration drafts
@Configuration
public class MultipleResolverResourcesConfig extends WebMvcConfigurerAdapter {
// Multiple ResourceResolver configuration
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
List<ResourceResolver> jsResolvers = new ArrayList<>();
jsResolvers.add(new PrefixResourceResolver("hexprefix"));
jsResolvers.add(new PathResourceResolver());
@ginjikata98
ginjikata98 / Gist for Plotting A2C
Created May 2, 2022 23:55 — forked from DanielTakeshi/Gist for Plotting A2C
For plotting some A2C results from OpenAI baselines.
"""
Quick script I ran to visualuze some A2C results. Just run `python plot.py` in the same directory
as where the stuff in `files` is located.
"""
import argparse, csv, os, pickle, sys, matplotlib
from os.path import join
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.style.use('seaborn-darkgrid')
import numpy as np