Skip to content

Instantly share code, notes, and snippets.

@kyo-takano
kyo-takano / making-the-most-of-local-llms.ipynb
Last active May 6, 2024 15:38
ローカルLLMはこーやって使うの💢
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paulredmond
paulredmond / docker.conf
Last active May 6, 2024 15:38
Example www pool for PHP-FPM with dynamic Environment variables
; if you're using the starter bundle file `docker/php/php-fpm.d/docker.conf`
[global]
daemonize = no
pid = run/php-fpm.pid
[www]
listen = /usr/local/var/run/php-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
@freppp
freppp / config.yml
Last active May 6, 2024 15:37
Vulcan 2.0 Configuration File Revisions
##############################################
# Vulcan Anti-Cheat Configuration File #
##############################################
# The prefix that will be used for all of the %prefix% messages throughout the plugin
prefix: '&4&lVulcan &8»'
alerts:
# This is the chat format that will be followed when a player fails a check.
# Valid placeholders are %player% (player name), %max-vl% (max violations), %check% (name of check), %description% (check description),
@ph4ge
ph4ge / sources.list
Last active May 6, 2024 15:37
Ubuntu 21.10 Impish Indri - apt sources.list
#deb cdrom:[Ubuntu 21.10 _Impish Indri_ - Release amd64 (20211012)]/ impish main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ impish main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ impish main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ impish-updates main restricted
@Alfonzzoj
Alfonzzoj / README.md
Last active May 6, 2024 15:37
Libreria de colores C / C++

Libreria de colores para C / C++ 🎨

Permite modificar el color de fuente del texto y color de fondo en consola al momento de ejecucion.

Screenshot-2

fondos

( font color and background color )

@wojteklu
wojteklu / clean_code.md
Last active May 6, 2024 15:33
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

# This supports merging as many adapters as you want.
# python merge_adapters.py --base_model_name_or_path <base_model> --peft_model_paths <adapter1> <adapter2> <adapter3> --output_dir <merged_model>
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
import os
import argparse
@ElanDeyan
ElanDeyan / main.dart
Created May 6, 2024 15:27
Dart read-only function parameters.
void main() {}
@juanjovn
juanjovn / AnimatedSelector.swift
Created April 20, 2024 18:10
Animated Icon Selector in SwiftUI
import SwiftUI
struct AnimatedSelector: View {
// Change this model for the proper case you need.
@Binding var selectedType: AnimatedSelectorType
// This boolean is used to disable the animated hand
@State var touchedAnySocialMedia = false