Skip to content

Instantly share code, notes, and snippets.

@BrokenGabe
BrokenGabe / gist:51d55a11c2090d9402e40f12a6ece275
Created December 12, 2023 15:04
uBlock Origin "My Filters"
www.youtube.com###donation-shelf
www.youtube.com##ytd-reel-shelf-renderer.ytd-item-section-renderer.style-scope
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.service_worker_enabled, false)
www.youtube.com##+js(nano-stb, resolve(1), *, 0.001)
||googlevideo.com/videoplayback$xhr,3p,method=get,domain=www.youtube.com
@kacperlukawski
kacperlukawski / qdrant-0.10-multiple-vectors.ipynb
Last active April 24, 2024 18:22
Using multiple vectors in Qdrant 0.10
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@conormm
conormm / r-to-python-data-wrangling-basics.md
Last active April 24, 2024 18:22
R to Python: Data wrangling with dplyr and pandas

R to python data wrangling snippets

The dplyr package in R makes data wrangling significantly easier. The beauty of dplyr is that, by design, the options available are limited. Specifically, a set of key verbs form the core of the package. Using these verbs you can solve a wide range of data problems effectively in a shorter timeframe. Whilse transitioning to Python I have greatly missed the ease with which I can think through and solve problems using dplyr in R. The purpose of this document is to demonstrate how to execute the key dplyr verbs when manipulating data using Python (with the pandas package).

dplyr is organised around six key verbs:

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 24, 2024 18:21
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@timothyjensen
timothyjensen / functions.php
Last active April 24, 2024 18:20
Enforce anti-spam honeypot on all Gravity Forms forms
<?php
/**
* Enforce anti-spam honeypot on all Gravity forms.
*
* @param array $form
*
* @return array $form
*/
add_filter( 'gform_form_post_get_meta', function ( $form ) {
www.youtube.com##+js(set, yt.config_.EXPERIMENT_FLAGS.web_enable_ab_rsp_cl, false)
@Yuki2718
Yuki2718 / gist:46b4335d2e5cd422b68aac72d7706d41
Last active April 24, 2024 18:20
YT - mitigate slow loading
www.youtube.com##+js(nano-stb, resolve(1), *, 0.001)
@hwei
hwei / gist:c1eae657b44f3436702a
Created April 27, 2015 09:26
Convert matcap to cubemap (Unity 5.0)
using UnityEngine;
using UnityEditor;
public class MatcapToCubemap : ScriptableWizard {
public Texture matcap;
public float emissionScale = 1f;
public int size = 256;
void OnWizardUpdate () {
this.isValid = this.matcap != null;
@grihabor
grihabor / Makefile.version
Last active April 24, 2024 18:18
Makefile to use for incremental semantic versioning
MAKE := make --no-print-directory
DESCRIBE := $(shell git describe --match "v*" --always --tags)
DESCRIBE_PARTS := $(subst -, ,$(DESCRIBE))
VERSION_TAG := $(word 1,$(DESCRIBE_PARTS))
COMMITS_SINCE_TAG := $(word 2,$(DESCRIBE_PARTS))
VERSION := $(subst v,,$(VERSION_TAG))
VERSION_PARTS := $(subst ., ,$(VERSION))
@matt-dres
matt-dres / install_certs_mac.sh
Created December 15, 2022 23:50
Download & install selfsigned certs from TAP onto macOS
#!/bin/bash
set -euo pipefail
#####
# Simple bash script to retrieve the selfsigned cert from TAP and install it locally on macOS
#####
echo "--- Fetching TAP Ingress Certificate ---"
kubectl get secret -n cert-manager tap-ingress-selfsigned-root-ca -o yaml | yq '.data."ca.crt"' | base64 -d > ca.crt