Skip to content

Instantly share code, notes, and snippets.

View Koc's full-sized avatar
🇺🇦
Donate to United24 or Come Back Alive

Konstantin Myakshin Koc

🇺🇦
Donate to United24 or Come Back Alive
  • METRO Markets GmbH
  • Ukraine, Kyiv
  • X @myakshin
View GitHub Profile
@peters
peters / Sony WH-1000XM4.md
Last active July 2, 2024 19:57
Connecting Sony WH-1000XM4 to Ubuntu 22.04 (Jammy)

Connecting Sony WH-1000XM4 to Ubuntu 22.04 (Jammy)

This guide will help you connect your Sony WH-1000XM4 headset to Ubuntu 22.04 using Bluetooth. Once connected, you'll be able to listen to music and use the microphone on apps like Microsoft Teams.

1. Connect to Bluetooth Headset

Steps:

  1. Open a terminal and launch bluetoothctl:
@MintayRibkins
MintayRibkins / component.tw.html
Created December 23, 2020 23:21
Tailwind checkout
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link href="https://tailwindcomponents.com/css/component.ecommerce-checkout.css" rel="stylesheet">
<title>Корзина</title>
</head>
@f1r3starter
f1r3starter / mac.MD
Last active October 22, 2020 20:26
Linux -> MacOS migration

Packet manager installation:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

PHPStorm hotkeys are little bit different:

https://resources.jetbrains.com/storage/products/phpstorm/docs/PhpStorm_ReferenceCard.pdf
@Zayon
Zayon / README.md
Last active November 18, 2020 10:09
Xdebug x Docker

Xdebug with Docker

With docker dev image

Dockerfile

FROM production as dev

USER root
@internetztube
internetztube / README.md
Last active August 20, 2021 18:18
Nuxt Inline SVG Symbols
@rculp
rculp / vuejs.amsterdam.2020.slides.md
Last active August 5, 2021 16:33
A collection of talks/slides (where available) from #vuejsamsterdam 2020

Day 1

Time Speaker Title Description
9:00 Evan You, Creator of Vue.js State of the Vuenion 2020 The growth of Vue continues and we are almost ready for Vue 3. As ever Evan You will deliver the State of Vuenion 2020, if we are lucky maybe we see some Typescript code from him ;)
 Dima Vishnevetsky Scalable Vue Graphics for the Modern Web 
 Jessica Sachs, Maintainer of @vue/test-utils and Tech Lead at Intent The Future of Vue's Test Utils With an expanded Vue Test Utils team and with Vue 3 on the horizon, we’ll talk about our plans for 2020. What’s coming in v1?
11:00 Gregg Pollack, Teaching developers Vue.js at VueMastery Introduction into the Composition API Gregg Pollack i
@erikhansen
erikhansen / 1_product_queries.sql
Last active May 30, 2024 09:01
Magento 2 - Remove duplicate store view-specific product and category data
/*
* IMPORTANT: The queries below are written for Magento Enterprise. If you're going to run them on Magento Community, you need
* to replace all instances of ".row_id" with ".entity_id". See this for context: http://magento.stackexchange.com/questions/139740/magento-2-schema-changes-for-ee-catalog-staging
*
* When importing products in Magento 2, if you specify store view codes in the store_view_code column, product data will be set at
* both the global scope as well as the specific store view scope. This is not ideal because now you have duplicate
* data at two different scopes that shouldn't actually be duplicated. The scripts below clean up this data by finding
* data set at specific store view scopes and if it's an exact match to the data set at the global store view, then it
* deletes the data set at the specific store view scope.
*
@mwpastore
mwpastore / 00README.md
Last active April 18, 2024 06:21
Lightning Fast WordPress: Caddy+Varnish+PHP-FPM

README

This gist assumes you are migrating an existing site for www.example.com — ideally WordPress — to a new server — ideally Ubuntu Server 16.04 LTS — and wish to enable HTTP/2 (backwards compatibile with HTTP/1.1) with always-on HTTPS, caching, compression, and more. Although these instructions are geared towards WordPress, they should be trivially extensible to other PHP frameworks, other FastCGI backends, and even non-FastCGI backends (using proxy in lieu of fastcgi in the terminal Caddyfile stanza).

Quickstart: Use your own naked and canonical domain names instead of example.com and www.example.com and customize the Caddyfile and VCL provided in this gist to your preferences!

These instructions target Varnish Cache 4.1, PHP-FPM 7.0, and Caddy 0.10. (I'm using MariaDB 10.1 as well, but that's not relevant to this guide.)

@mpneuried
mpneuried / Makefile
Last active May 4, 2024 13:46
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)