Skip to content

Instantly share code, notes, and snippets.

@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
@axel-op
axel-op / dart-github-actions.md
Last active May 6, 2024 15:28
3 ways to build a GitHub Action with Dart

3 ways to build a GitHub Action with Dart

In 2020, I published the Pub package github_actions_toolkit to write GitHub Actions with Dart more easily. However, GitHub Actions runners don't support natively the Dart language, and some steps are necessary to execute a Dart program in a GitHub Actions workflow.

Below I compare three ways to create a GitHub Action with Dart, with their pros and cons.

. Shared Dart container Isolated Dart container Natively compiled executable
✍️ Defines the environment User Developer Developer
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 6, 2024 15:28
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android πŸ‹πŸ“±

Edit πŸŽ‰

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary