Skip to content

Instantly share code, notes, and snippets.

@tce
tce / clojureDirectoryList
Created January 18, 2012 21:52
clojure directory listings
(comment "wildcardfilter from http://corfield.org/blog/post.cfm/real-world-clojure-powermta-log-files")
(defn- wildcard-filter
"Given a regex, return a FilenameFilter that matches."
[re]
(reify java.io.FilenameFilter
(accept [_ dir name] (not (nil? (re-find re name))))))
(defn- nonhidden-filter
"return a FilenameFilter that ignores files that begin with dot or end with ~."
aasb = Unknown
action = Unknown
ad = Unknown
addh = Unknown
adsafe = Unknown
adtest = Ads test mode (when adtest=on, Google treats the query as a test so ad impressions aren’t counted)
adtest-useragent = Unknown
aec = Unknown
aep = Unknown
affdom = Unknown
@2S1one
2S1one / osed-rp-helper.ps1
Created June 3, 2025 11:37
RP powershell wrapper
$max_depth = 6
$rp_exe_path = "C:\tools\rp-win-x86.exe"
$out_dir = Join-Path (Get-Location) "rp_output"
$all_prefix = "all_"
$target_files = $args
# Ensure the output directory exists
New-Item -ItemType Directory -Path $out_dir -Force -ErrorAction SilentlyContinue | Out-Null
@ayodejiayodele
ayodejiayodele / copilot-metrics-dashboard-instructions.md
Last active June 4, 2025 21:04
Setup Instructions for GitHub Copilot Metrics Power BI Dashboard

Copilot Metrics Dashboard (Power BI Version)

This guide provides step-by-step instructions for deploying the Copilot Metrics Dashboard in your environment.

English | Español |

Setup Instructions

To use this report, ensure you have Power BI Desktop installed or access to the Power BI online service.

@codigoconjuan
codigoconjuan / db.sql
Last active June 4, 2025 21:00
Introducción a Bases de Datos
INSERT INTO reservaciones (nombre, apellido, hora, fecha, servicios) VALUES
('Juan', 'De la torre', '10:30:00', '2021-06-28', 'Corte de Cabello Adulto, Corte de Barba' ),
('Antonio', 'Hernandez', '14:00:00', '2021-07-30', 'Corte de Cabello Niño'),
('Pedro', 'Juarez', '20:00:00', '2021-06-25', 'Corte de Cabello Adulto'),
('Mireya', 'Perez', '19:00:00', '2021-06-25', 'Peinado Mujer'),
('Jose', 'Castillo', '14:00:00', '2021-07-30', 'Peinado Hombre'),
('Maria', 'Diaz', '14:30:00', '2021-06-25', 'Tinte'),
('Clara', 'Duran', '10:00:00', '2021-07-01', 'Uñas, Tinte, Corte de Cabello Mujer'),
('Miriam', 'Ibañez', '09:00:00', '2021-07-01', 'Tinte'),
@Steboss
Steboss / submit.sh
Created June 4, 2025 13:03
Example for using SLURM in Fuji
#!/bin/bash
#SBATCH -A something
#SBATCH -p some partition
#SBATCH -N 2 # number of nodes to use
#SBATCH -t
#SBATCH -J
export CONFIG="fuji-70B-v2-flash"
export CONTAINER="my-container"
@santisbon
santisbon / Update-branch.md
Last active June 4, 2025 20:58
Deploying from #Git branches adds flexibility. Bring your feature branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master.

@hunterjm
hunterjm / frigate_notification.yaml
Last active June 4, 2025 20:57
Frigate Notification Blueprint
blueprint:
name: Frigate Notification
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but will update to include actionable notifications allowing you to view the saved clip/snapshot when available, or silence the notification for a configurable amount of time.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Required entities:
@Dandy-CP
Dandy-CP / RequestInterceptor.tsx
Last active June 4, 2025 20:56
React Query with axios setup Typescript
import { useEffect, useRef } from "react";
import { useRouter } from "next/router";
import Cookies from "js-cookie";
import { client } from "./queryClient";
const RequestInterceptor = () => {
const router = useRouter();
const interceptorId = useRef<any>();
useEffect(() => {