Skip to content

Instantly share code, notes, and snippets.

View LubeckHuaman's full-sized avatar

Lubeck Huaman LubeckHuaman

  • BairesDev
  • peru
View GitHub Profile
@adrienbrault
adrienbrault / llama2-mac-gpu.sh
Last active April 8, 2025 13:49
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM. UPDATE: see https://twitter.com/simonw/status/1691495807319674880?s=20
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
make clean
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
class Node:
def __init__(self, val=0, neighbors=None):
self.val = val
self.neighbors = neighbors if neighbors is not None else []
def dfs(node, node_map):
clone = Node(node.val)
node_map[node.val] = clone
for neighbor in node.neighbors:
@iamavnish
iamavnish / CKAD_Notes.txt
Last active March 24, 2025 20:35
CKAD Cheatsheet
# Good Links
http://www.yamllint.com/
https://youtu.be/02AA5JRFn5w
#########################################
minikube
#########################################
minikube start
minikube status
minikube stop

The PATH is an important concept when working on the command line. It's a list of directories that tell your operating system where to look for programs, so that you can just write script instead of /home/me/bin/script or C:\Users\Me\bin\script. But different operating systems have different ways to add a new directory to it:

Windows

  1. The first step depends which version of Windows you're using:
  • If you're using Windows 8 or 10, press the Windows key, then search for and
@meetkabeershah
meetkabeershah / default nginx configuration file
Last active January 11, 2025 12:19
The default nginx configuration file inside /etc/nginx/sites-available/default
# Author: Zameer Ansari
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
#instalar nodemon (en la máquina virtual)
sudo npm install -g nodemon
#copiar nodemon.json al directorio del proyecto
#copiar rails.sh al directorio del proyecto
#dar permisos de ejecución a rails.sh
sudo chmod +x rails.sh
#iniciar nodemon
@gyribeiro
gyribeiro / tmux_italic.md
Last active February 15, 2025 11:37
enable italic font on tmux
@obonyojimmy
obonyojimmy / active-window.go
Created January 1, 2017 02:50
Go lang get current foreground window
package main
import (
"fmt"
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var (
@Ashwinning
Ashwinning / OpenCVTextureinOpenGL.md
Last active May 21, 2023 11:54
Using webcam video as texture in OpenGL
@vasanthk
vasanthk / System Design.md
Last active May 11, 2025 15:30
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?