Skip to content

Instantly share code, notes, and snippets.

View alexmazaltov's full-sized avatar
🎯
Blockchain development

Oleksii Bondarenko alexmazaltov

🎯
Blockchain development
View GitHub Profile
@alexmazaltov
alexmazaltov / build_renamed_rocm_wheel.py
Created October 1, 2024 18:09 — forked from dgdguk/build_renamed_rocm_wheel.py
Script to build a version of llama-cpp-python for AMD renamed in accordance with Oobabooga's odd requirements
"""
build_renamed_rocm_wheel.py
===========================
:author: David Griffin <dgdguk@gmail.com>
:license: MIT License
:copyright: 2024
Copyright 2024, David Griffin
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dgdguk
dgdguk / build_renamed_rocm_wheel.py
Last active December 23, 2024 00:21
Script to build a version of llama-cpp-python for AMD renamed in accordance with Oobabooga's odd requirements
"""
build_renamed_rocm_wheel.py
===========================
:author: David Griffin <dgdguk@gmail.com>
:license: MIT License
:copyright: 2024
Copyright 2024, David Griffin
@alexmazaltov
alexmazaltov / email_validation_simple.php
Created September 28, 2020 06:35 — forked from anxp/email_validation_simple.php
Simple email address validation - check syntax and MX record existing.
<?php
function _nxte_redeem_is_email_valid($email) {
if (empty ($email)) {return false;}
list($user_name, $mail_domain) = explode('@', $email);
if (empty($user_name) || empty($mail_domain)) {return false;}
$is_syntax_ok = (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
$is_MX_exists = checkdnsrr($mail_domain, 'MX');
@sdwfrost
sdwfrost / counties.geojson
Created September 23, 2019 17:54
US Counties data in geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?php
/**
* @file
* Contains wa_advice.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\node\Entity\NodeType;
use Drupal\Core\Form\FormStateInterface;
@andypost
andypost / Makefile
Last active December 17, 2023 18:43
drupal 10 core contributor docker kickstarter
.PHONY: up upx log down exec exec0 h t
CUID := $(shell id -u)
CGID := $(shell id -g)
IMAGEPHP := skilldlabs/php:8
all: | exec
up:
docker run --rm --name core9 \