Skip to content

Instantly share code, notes, and snippets.

View WillPresley's full-sized avatar
🏠
Working from home

Will Presley WillPresley

🏠
Working from home
View GitHub Profile
@paolocarrasco
paolocarrasco / README.md
Last active April 7, 2025 22:13
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@GAS85
GAS85 / split_tunnel_VPN.md
Last active October 4, 2024 12:58
Force Torrent/user Traffic through VPN Split Tunnel on Ubuntu 16.04
@MaximeCulea
MaximeCulea / wp-cli-ms-cheatset.php
Last active July 17, 2024 01:22
A list of WordPress WP Cli commands when into Multisite usage.
#!/usr/bin/env bash
# Related to WP CLI as single site, check following link
# @see https://gist.github.com/MaximeCulea/dbd5835a01d2b4e6a6544919db3f26a0
# All wp cli comands will be declared both (as much as possible) :
# - with xargs (not all servers support xargs)
# - more native shell syntax "for in"
# WP Crons MS
@mustelida
mustelida / Hexpatcher.md
Last active January 19, 2025 08:12
Batch apply hex edits in PowerShell
@altbdoor
altbdoor / README.md
Last active June 10, 2023 01:37
Sublime Text 3 plugin to automatically close purchase pop up on save
@nzec
nzec / README.MD
Last active May 7, 2025 02:47
DeezLoader Offical Page

Thanks to /u/zpoo32 for reporting several issues in this list!

Deemix

  • deemix: just the cli and the library
  • deemix-pyweb: the app with a GUI
  • deemix-server: just the server part of deemix-pyweb
@nicomollet
nicomollet / polylang-langswitcher-shortcode.php
Last active April 16, 2025 15:26
Polylang shortcode for lang switcher
<?php
/**
* Polylang Shortcode - https://wordpress.org/plugins/polylang/
* Add this code in your functions.php
* Put shortcode [polylang_langswitcher] to post/page for display flags
*
* @return string
*/
function custom_polylang_langswitcher() {
$output = '';
@holmberd
holmberd / php-pools.md
Last active April 29, 2025 08:29
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active May 12, 2025 19:28
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@MoOx
MoOx / README.md
Last active May 11, 2023 13:59
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily