Skip to content

Instantly share code, notes, and snippets.

@gistol
gistol / uuid
Created May 31, 2024 08:21 — forked from woodm1979/uuid
uuid (v4) generator script for mac
#!/usr/bin/env bash
# Old UUID generating command. Use this if uuidgen doesn't suit your needs AND python is installed.
#uuid4=$(python -c 'from uuid import uuid4; print(uuid4())')
uuid4=$(uuidgen | tr '[:upper:]' '[:lower:]')
echo -n "${uuid4}" | pbcopy
echo "'${uuid4}' has been placed in your paste-buffer"
@gistol
gistol / TrixEditor.vue
Created September 25, 2023 07:07 — forked from DarkGhostHunter/TrixEditor.vue
Using Trix (WYSIWYG editor) with Vue 3
<template>
<div class="trix-editor">
<textarea
:id="formId"
type="hidden"
ref="input"
:value="modelValue"
@input="$emit('update:modelValue', $event.target.value)"
style="display:none;"
><slot /></textarea>
@gistol
gistol / ConstraintViolationsConverter.php
Created March 14, 2022 09:34 — forked from enleur/ConstraintViolationsConverter.php
Symfony json body to request object auto mapping
<?php
namespace App\Request\ParamConverter;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Validator\ConstraintViolationListInterface;
final class ConstraintViolationsConverter implements ParamConverterInterface
@gistol
gistol / teamcity_2018_ubuntu_setup.md
Created May 18, 2021 08:56 — forked from brunojppb/teamcity_2018_ubuntu_setup.md
Setup TeamCity 2018 on Ubuntu

Setting up TeamCity 2018 on Ubuntu

Install Java 8

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
@gistol
gistol / !Как установить сфинкс.md
Created October 19, 2020 06:25 — forked from codedokode/!Как установить сфинкс.md
Как установить и настроить сфинкс.

Как установить и настроить сфинкс.

Скачиваем сфинкс (берем версию с MySQL и со стеммингом на 15 языков Win32 binaries w/MySQL+PgSQL+libstemmer+id64 support соответствующую битности твоей ОС), распаковываем например в d:\temp\s\

На этом установка sphinx завершена. В дебиане просто делаем sudo apt-get install sphinxsearch.

Создаем таблицы:

CREATE TABLE news 

(id INT(10) AUTO_INCREMENT PRIMARY KEY, topic INT(10) NOT NULL, header VARCHAR(200) NOT NULL,

@gistol
gistol / sphinx.conf
Created October 19, 2020 06:15 — forked from shekhargulati/sphinx.conf
Sphinx Configuration file
#
# Sphinx configuration file sample
#
# WARNING! While this sample file mentions all available options,
# it contains (very) short helper descriptions only. Please refer to
# doc/sphinx.html for details.
#
#############################################################################
## data source definition
@gistol
gistol / how_to_set_up_ssh_keys.md
Created August 26, 2019 08:28 — forked from stormpython/how_to_set_up_ssh_keys.md
Setting up ssh keys for remote server access

How to Set up SSH Keys

Create the RSA Key Pair

ssh-keygen -t rsa

Store the Keys and Passphrase

Once you have entered the Gen Key command, you will get a few more questions:

@gistol
gistol / php-code-inspection.md
Created June 21, 2019 10:25 — forked from hassanjamal/php-code-inspection.md
How to install PHP code inspection tools using homebrew-php and how to integrate with JetBrain's IntelliJ or PhpStorm

#Inspection Tools with homebrew-php#

##Prerequisites##

  • Homebrew is installed

##Step 1: Installing homebrew-php##

  1. brew tap homebrew/dupes
  2. brew tap josegonzalez/homebrew-php
  3. brew install PHP53 (or other version of your choice)

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
http://cronus.allowed.org works for me, 2018.1.6