Skip to content

Instantly share code, notes, and snippets.

View anthonyalayo's full-sized avatar

Anthony Alayo anthonyalayo

  • San Francisco Bay Area
View GitHub Profile

Crippling Facebook

Facebook works with advertisers to target you. These instructions are one of the many ways to begin crippling that relationship. When AI targeting is crippled, your psychosecurity improves :)

  1. On your desktop machine, goto https://accountscenter.facebook.com/ads/audience_based_advertising
  2. Maximize the browser window
  3. Press F12 and click on the Console tab
  4. Select the code below, copy it, paste it upon the Console line (The area next to the > character in the Console window), and press enter:
@neoakris
neoakris / Example of kustomized helm Install.md
Last active July 21, 2025 04:05
How to customize helm charts without forking. By using helm's post renderer technique with kustomize.md

Example of Kustomized Helm Install
(Using Helm's Post Rendering Feature)

Overview: Why would you want to do this?

Background Context:

  • Question: What is a helm chart?
  • Answer: helm charts are just templating engines that render generated yaml
    • input variables (with a mix of default and override values for those variables)
    • get plugged into golang templatized yaml
    • and output a wall of text of generated yaml
  • Community Helm Charts:
// Find all Send to Card Buttons
let arrayElements = document.querySelectorAll(".coupon-action.button-blue.sc-send-to-card-action");
// Declare a Looping Function to Delay Click Event!
function loopThroughNodes(arrayElements) {
let intDelay = 2000; // 2 Seconds Timeout to
for (var i = 0; i < arrayElements.length; i++) {
(function (i) {
let timeoutID = window.setTimeout(function () {
@othyn
othyn / guide.md
Last active July 22, 2025 19:39
Fix horrendously bad macOS (12.3.1 tested) SMB (Samba) performance on Unraid

Intro

Out of the box, my SMB performance on macOS 12.3.1 would top out at around 20MB/s in short ~5 second bursts, which was absolutely horrendous, slow to navigate in Finder and slugish to interact with.

Since making these changes, I now get sustained ~80-100MB/s+ and instant Finder navigation which is superb and how things should be out-of-the-box (OOTB)!

May 2023 update: As of Ventura, the SMB issues were just horribly inconsistent and hard to maintain. Something in the combination of Unraid, macOS and SMB just doesn't play nice. I ended up binning NFS/SMB all together and heading to a locally hosted Nextcloud instance for file syncing, then using SFTP/Ansible Git flow for editing files within appdata.

Sources

@jjmartres
jjmartres / helm-chart-conventions.md
Last active November 3, 2024 00:32
Helm chart conventions
@tatsumoto-ren
tatsumoto-ren / subs.md
Last active August 16, 2025 13:31
Japanese Subtitles
@GuillaumeDua
GuillaumeDua / 13_valuable_things_I_learned_using_CMake.md
Last active August 24, 2025 20:03
13 valuable things I learned using CMake

13 valuable things I learned using CMake

Author : Dua Guillaume
Date : 04-26-2020

Requirement : A first experience with CMake

Intro

As a modern C++ specialist, my job is to focus on software development, from a performance and quality perspective.

@LukasWoodtli
LukasWoodtli / CMakeGraphVizOptions.cmake
Last active October 25, 2024 20:59
How to produce dependency graphs from cmake
# put this file in the top source dir (CMAKE_SOURCE_DIR)
# see: https://cmake.org/cmake/help/latest/module/CMakeGraphVizOptions.html
set(GRAPHVIZ_EXTERNAL_LIBS FALSE)
# only dependencies between libraries
set(GRAPHVIZ_EXECUTABLES FALSE)
@jbfriedrich
jbfriedrich / nsmb.conf
Last active August 29, 2025 08:21
macOS 11.2 NSMB configuration
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29
#------------------------------------------------------------------------------
# SMB configuration for macOS 11.3 <-> Synology
#------------------------------------------------------------------------------
# Additional information:
# -----------------------
# https://support.apple.com/de-de/HT211927
# https://support.apple.com/en-us/HT208209
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra
# https://photographylife.com/afp-vs-nfs-vs-smb-performance
@zcaceres
zcaceres / Error-Handling-Patterns-Express.md
Last active August 3, 2023 13:40
error handling patterns in Express

Handling Errors

Express.js makes it a breeze to handle errors in your routes.

Express lets you centralizes your error-handling through middleware.

Let's look at patterns for how to get the most out of your error-handling.

First, our error-handling middleware looks like this: