Skip to content

Instantly share code, notes, and snippets.

@farneser
farneser / windows-change-ttl.md
Last active May 7, 2024 06:52
How to change TTL on windows 10/11 in on command

Change windows 10/11 TTL in one command and reboot

netsh int ipv4 set glob defaultcurhoplimit=65

Check TTL value

ping 1.1.1.1
@isaumya
isaumya / cf_cache_rules_implementation_guide_spcc.md
Last active May 7, 2024 06:51
Super Page Cache for Cloudflare — Guide for using Remove Cache Buster Query Parameter feature (when using Cache Everything page rule)

Implementation Guide for using "Remove Cache Buster Query Parameter" feature

The Super Page Cache for Cloudflare plugin has recently added the feature for using the Cache Everything pagerule withing the ?swcfpc=1 cache buster query paramater. This opens up so many new doors where users previously had to use the Cloudflare Workers to remove the cache buster.

With this new option now users are able to take advantage of Cloudflare Cache Everything page rule and take it to the next level by using the new Rulesets released by Cloudflare. Basically this is achived by taking advantage of the all new Cache Rules feature implemented by Cloudflare.


Setp 1 — Setting up the Cache Rules inside your Cloudflare Dashboard

The first thing that you need to do is, log-in to your Cloudflare Dahsbord and go to the domain/zone doe which you are setting up the [Super Page Cache for Cloudflare](https://wordpress.org/plug

// ==UserScript==
// @name Literotica DatatableJS
// @namespace botmtl
// @description literotica sort/filter tables
// @match https://www.literotica.com/*
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.16/js/jquery.dataTables.min.js
// @resource customCSS https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.16/css/jquery.dataTables.css
// @grant GM_addStyle
// @grant GM_getResourceText
@fnky
fnky / ANSI.md
Last active May 7, 2024 06:49
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@m-jovanovic
m-jovanovic / .editorconfig
Created June 7, 2023 12:17
Sample editor config with a bunch of rules turned off 😅
root = true
# C# files
[*.cs]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
indent_style = space
@b0gdanw
b0gdanw / Disable-Ventura-Bloatware.sh
Last active May 7, 2024 06:47
Disable Ventura Bloatware
#!/bin/zsh
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12) and macOS Ventura (13)
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/*
# user
@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active May 7, 2024 06:43
Pairing bluetooth devices in dual boot with Linux Ubuntu and Windows 10/11

Pairing Bluetooth Devices in Dual Boot with Linux Ubuntu and Windows 10/11

Introduction

This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.

Instructions

1. Pair in Linux First

  • Pair your Bluetooth device in Linux. This is crucial to ensure the LinkKey remains consistent.
  • Note: Do not re-pair the device in Linux after completing the pairing in Windows.
@royshil
royshil / cylindricalWarping.py
Last active May 7, 2024 06:42
Warp an image to cylindrical coordinates for cylindrical panorama stitching, using Python OpenCV
import cv2
import numpy as np
def cylindricalWarp(img, K):
"""This function returns the cylindrical warp for a given image and intrinsics matrix K"""
h_,w_ = img.shape[:2]
# pixel coordinates
y_i, x_i = np.indices((h_,w_))
X = np.stack([x_i,y_i,np.ones_like(x_i)],axis=-1).reshape(h_*w_,3) # to homog
Kinv = np.linalg.inv(K)
@johncm
johncm / !Remove.md
Last active May 7, 2024 06:42
Cluster# #ProxmoxVE

Proxmox - Remove Node from cluster

Caution Read the procedure carefully before proceeding, as it may not be what you want or need.

Use the Proxmox VE Cluster Manager command to show the status of the cluster.

pvecm status

(Console/shell)


Error: Corosync config '/etc/pve/corosync.conf' does not exist - is this node part of a cluster?

@ross-u
ross-u / README.md
Created January 14, 2021 15:31
M1 - VSCode extensions & Prettier Setup

M1 - VSCode Extensions


VSCode Extensions: