Skip to content

Instantly share code, notes, and snippets.

@kdankov
kdankov / hide-shorts.css
Created February 15, 2023 15:34
Hide YouTube shorts from Subscriptions feed
ytd-grid-video-renderer:has(*[overlay-style="SHORTS"]) {
display: none;
}
@kdankov
kdankov / podcast.xml
Created January 31, 2023 11:40
Podcast RSS Template for Jekyll
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xml:lang="{{ site.lang }}">
<channel>
<atom:link href="{{ site.url }}/podcast.rss" rel="self" type="application/rss+xml" />
<title>{{ site.title }}</title>
<link>{{ site.url }}{{ site.baseurl }}</link>
@kdankov
kdankov / List of Fonts
Created November 11, 2022 18:29
Install Nerd Fonts with Homebrew
# Nerd Fonts for your IDE
# https://www.nerdfonts.com/font-downloads
brew tap homebrew/cask-fonts
brew install --cask font-3270-nerd-font
brew install --cask font-fira-mono-nerd-font
brew install --cask font-inconsolata-go-nerd-font
brew install --cask font-inconsolata-lgc-nerd-font
brew install --cask font-inconsolata-nerd-font
brew install --cask font-monofur-nerd-font
@kdankov
kdankov / index.html
Created January 31, 2022 18:29
HTML & CSS Essentials - Introduction - 01
<!DOCTYPE html>
<html>
<head>
<title>My First HTML Document</title>
</head>
<body>
<h1>My First HTML Document</h1>
<p>It is really cool, isn't it?</p>
</body>
</html>
@kdankov
kdankov / NGINX_PHP_with_Homebrew.md
Last active November 17, 2020 22:15
NGINX with PHP with Homebrew

Stop Apache and remove it from starting on login

$ sudo apachectl -k stop
$ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

Install nginx

<?php
/**
* Template Name: ACF Sections
*/
get_header();
$fields = get_fields();
@kdankov
kdankov / WindowsKeyboardFixes.ahk
Created March 22, 2020 11:20
Windows Keyboard Mapping Fixes
#SingleInstance force
/*
#InstallKeybdHook
$VKE2::Send, {``}
$+VKE2::Send, {~}
$VKC0::Send, {\}
$+VKC0::Send, {|}
@kdankov
kdankov / Dockerfile-php
Created March 16, 2020 08:11
Local Development with Docker
FROM php:7.3-fpm
RUN docker-php-ext-install mysqli
@kdankov
kdankov / gist:1804705076cb2b1a2edda132093f31e5
Created November 21, 2019 16:58
CSS Advanced - Nov 2019 - Gulpfile
"use strict";
let gulp = require("gulp"),
autoprefixer = require("gulp-autoprefixer"),
exec = require("gulp-exec"),
browserSync = require('browser-sync').create(),
sass = require('gulp-sass'),
cp = require("child_process");
gulp.task("css", function() {
@kdankov
kdankov / gist:9cccc498cc70aafabbcaaa1e98a49b7c
Created November 21, 2019 16:58
CSS Advanced - Nov 2019 - Gulpfile
"use strict";
let gulp = require("gulp"),
autoprefixer = require("gulp-autoprefixer"),
exec = require("gulp-exec"),
browserSync = require('browser-sync').create(),
sass = require('gulp-sass'),
cp = require("child_process");
gulp.task("css", function() {