Skip to content

Instantly share code, notes, and snippets.

# pip install "distilabel[vllm] @ git+https://github.com/argilla-io/distilabel.git@develop"
# pip install flash-attn --no-build-isolation
# huggingface-cli login
import time
from distilabel.llms import vLLM
from distilabel.pipeline import Pipeline
from distilabel.steps import KeepColumns, LoadHubDataset
from distilabel.steps.tasks import PrometheusEval
@reinvanoyen
reinvanoyen / terminal-prompt-git-branch-zsh.md
Last active May 8, 2024 15:15
Add Git Branch Name to Terminal Prompt (MacOS zsh)

Add Git Branch Name to Terminal Prompt (zsh)

Updated for MacOS with zsh

  • Catalina
  • Big Sur
  • Monterey
  • Ventura
  • Sonoma

screenshot

@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@qvaqvaboo
qvaqvaboo / bulk_unwatch.js
Last active May 8, 2024 15:12
JIRA bulk unwatch with your browser only (JS)
// Simple JS snippet to bulk unwatch (stop watching, un-watch) issues in JIRA.
// Written and tested for JIRA 5.2, but should work for all 5+ versions.
// WHAT IT DOES:
// 1. Gets list of issues you watch using JQL search via REST API. You can modify JQL per your needs.
// 2. For each issue found, triggers REST API call to unwatch this issue for current user.
// HOWTO:
// 1. Go to JIRA in your browser, log in.
// 2. Open your browser JavaScript console.
@tdr2d
tdr2d / helm_usage.md
Created November 5, 2020 17:07
Helm 3 Usage Cheatsheet

Helm Usage Cheatsheet

1. Generate a new helm chart

helm create portail-web

This will generate a helm chart structured like:

portail-web/
  Chart.yaml
 values.yaml
@ciiqr
ciiqr / zod-optional-null.ts
Last active May 8, 2024 15:11
zod optional/nullable/nullish differences
// zod schema
z.object({
// valid if string or:
optional: z.string().optional(), // field not provided, or explicitly `undefined`
nullable: z.string().nullable(), // field explicitly `null`
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined`
});
// type
{
@diegopacheco
diegopacheco / pbpaste-pbcopy-ubuntu.md
Last active May 8, 2024 15:11
pbpaste && pbcopy for Ubuntu Linux 20.04

Install

sudo apt-get install xclip -y

Create Alias

alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'

Try out

@ChromeOrange
ChromeOrange / gist:7955195
Created December 14, 2013 02:55
Move WooCommerce Related Products to a tab
/**
* Move WooCommerce Related Products to a tab
*
* Copy code to theme functions.php
*/
// Remove standard Related Products section
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
/**
@artikus11
artikus11 / snippet-woo.php
Created December 10, 2022 23:04
Подключение скриптов и стилей только на страницах WooCommerce
/**
* Подключение скриптов и стилей только на страницах WooCommerce
*
* @testedwith WooCommerce 7.0
* @verphp 7.4
* @author Artem Abramovich
*/
function art_connection_css_js_only_woocommerce_pages() {
if ( ! class_exists( 'Woocommerce' ) ) {
const notice = (msg) => new Notice(msg, 5000);
const log = (msg) => console.log(msg);
const parser = new DOMParser();
const API_URL = "https://api.geekdo.com/xmlapi2";
module.exports = {
entry: start,
settings: {
name: "BoardGameGeek",