Skip to content

Instantly share code, notes, and snippets.

@jfgordon2
jfgordon2 / deepseek_coder.preset.json
Created November 19, 2023 23:36
DeepSeek Coder LM Studio Config
{
"name": "DeepSeek Coder",
"load_params": {
"n_ctx": 16384,
"n_batch": 4096,
"rope_freq_base": 10000,
"rope_freq_scale": 0.25,
"n_gpu_layers": 1,
"use_mlock": true,
"main_gpu": 0,
#!/bin/bash
# Reads a gitleaks report and converts displays surrounding code from commits
# Usage: gl-reporter.sh [--repo <path>] [--report <path>] [--lines <number>]
function show_help() {
printf "\e[1m%s\e[0m%s" "Usage: " "$0 [--repo <path>] [--report <path>] [--lines <number>]"
echo ""
echo "Reads a gitleaks report and converts displays surrounding code from commits"
echo ""
#!/bin/bash
# Scan all local repos for secrets using gitleaks
# Usage: gitleaks-scan.sh [--path <path>] [--config <path>] [--report <path>]
function show_help(){
printf "\e[1m%s\e[0m%s" "Usage: " "$0 [--path <path>] [--config <path>] [--report <path>]"
echo ""
echo "Scans all local repos for secrets using gitleaks"
echo ""
@jfgordon2
jfgordon2 / gh-clone.sh
Last active July 27, 2023 07:02
Clone all GitHub repos for an organization
#!/bin/bash
# Clone all GitHub repos for an organization
# Usage: gh-clone.sh [--limit <number>] [--path <path>] [--update] <organization>
# Requires GitHub CLI: https://cli.github.com/manual/installation
# Requires jq: https://stedolan.github.io/jq/download/
function check_requirements() {
# ensure GitHub CLI installed
if ! command -v gh &>/dev/null; then