Skip to content

Instantly share code, notes, and snippets.

View jjasghar's full-sized avatar

JJ Asghar jjasghar

View GitHub Profile
# set 256 colors
set -g default-terminal "screen-256color"
# Set vi keys
set-window-option -g mode-keys vi
if-shell "uname | grep -q Darwin" {
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
} {
@jjasghar
jjasghar / 15mins.md
Last active August 12, 2025 00:17
15 mins to fun TechXchange

Welcome

Well, hello there, it's great to see you join us today. We'll be running through a tutorial today around leveraging the Granite open-source model in an interesting foundational way. People look at leveraging models in a local trusted way, or in a "public" way, but turns out there is a place right between them where you can run your trusted local model and share it with your team! In this lab, we'll walk through it, show you how to put it together, and highlight some huge gains you can get with your team if you go down this path. Let's get started!

Steps

  1. Open up Ollama and a terminal, and you should see something like this. (You might have more or less, depending on whether we've cleaned the machine or not.)
rentex@Rentexs-MacBook-Pro ~ % ollama list
NAME                     ID              SIZE      MODIFIED
granite3.3:latest fd429f23b909 4.9 GB 46 hours ago
@jjasghar
jjasghar / 1337chat.pl
Created October 20, 2025 13:16 — forked from phrawzty/1337chat.pl
SUPER ADVANCED CHAT SYSTEM USING A SUPER MODEN PROGRAMMING LANGUAGE
#!/usr/bin/perl
use strict;
use warnings;
use IO::Socket::INET;
use IO::Select;
# Configuration
my $port = 5000;
# Create a listening socket
@jjasghar
jjasghar / enterprise_token.rb
Created November 3, 2025 19:03 — forked from markasoftware/enterprise_token.rb
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################
@jjasghar
jjasghar / google-meet-cli.md
Created December 2, 2025 17:27 — forked from zeyadetman/google-meet-cli.md
Create google meet links directly from terminal, for personal and work usage

Meet

Create google meet links directly from terminal, for personal and work usage

meet
meet -w       # -w work email

Installation