Skip to content

Instantly share code, notes, and snippets.

View Machy8's full-sized avatar
:octocat:
¯\_(ツ)_/¯

Vladimír Macháček Machy8

:octocat:
¯\_(ツ)_/¯
View GitHub Profile
@Posandu
Posandu / vite.config.js
Created July 6, 2022 11:56
Stylify config for React-vite
import { defineConfig } from "vite";
import { vitePlugin } from "@stylify/unplugin";
import react from "@vitejs/plugin-react";
const stylifyPlugin = vitePlugin({
transformIncludeFilter: (id) =>
id.endsWith("js") ||
id.endsWith("ts") ||
id.endsWith("tsx") ||
id.endsWith("jsx"),
@harunpehlivan
harunpehlivan / index.html
Created December 22, 2021 11:34
Stylify.dev Playground
<div class="
font-weight:bold
font-size:24px
border-radius:4px
padding:24px
border:2px__dotted__#01befe
transition:border-color__0.3s__ease-in-out
hover:border-color:#bd0c65
width:400px
margin:50px__auto__0__auto
@Machy8
Machy8 / index.html
Last active March 7, 2020 18:17
Apicart full configuration - https://apicart.net
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Apicart vue bundle example">
<title>Vue default bundle example</title>
</head>
<body>
<div style="max-width: 1902px; margin: 0 auto; padding: 0 20px;">
@Machy8
Machy8 / index.html
Last active March 25, 2020 11:39
Apicart - minimum configuration - https://apicart.net
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Apicart vue bundle example">
<title>Vue default bundle example</title>
</head>
<body>
<!-- You can use custom layout. This is just for the example -->
@Machy8
Machy8 / readme.md
Last active August 6, 2023 13:38
Start Kubernetes proxy server automatically
  1. Create an empty file and paste the content bellow into it /lib/systemd/system/kubectlproxy.service
[Unit]
Description=kubectl proxy 8080
After=network.target

[Service]
User=root
ExecStart=/bin/bash -c "/usr/bin/kubectl proxy --address=127.0.0.1 --port=8080"
@Machy8
Machy8 / installation.md
Last active May 20, 2022 08:59
Kubernetes, single node, bare metal cluster installation (Debian)
@loilo
loilo / pass-slots.md
Last active October 16, 2024 18:16
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {

@crittermike
crittermike / xdebug_alpine.md
Last active October 1, 2020 12:49
Xdebug + PHPStorm for PHP 7 on Alpine Linux

First, install the Xdebug package from the testing repository.

$ apk add php7-xdebug --repository http://dl-3.alpinelinux.org/alpine/edge/testing/

Now edit the /etc/php7/php.ini file and add the following to the end of it:

zend_extension=/usr/lib/php7/modules/xdebug.so