This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function LOGOP($value, ?string $identifier = null) | |
{ | |
echo 'LOGOP'; | |
echo $identifier ? "($identifier)" : ''; | |
echo ': ' . (string) $value . "\n"; | |
return $value; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function easyCreateElement(name, attrs = {}) { | |
const el = document.createElement(name); | |
for (const [k, v] of Object.entries(attrs)) { | |
el.setAttribute(k, v instanceof Element ? v.getAttribute(k) : k); | |
} | |
return el; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If installed throught `pecl install xdebug` | |
# zend_extension="<php lib path [/opt/local/lib/php]>/extensions/no-debug-zts-20240924/xdebug.so" | |
[XDebug] | |
# -- Debugging | |
xdebug.mode="debug" | |
xdebug.start_with_request="trigger" | |
# -- Profilling | |
# xdebug.mode="profile" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Lower Your Volume with Me | |
// @namespace http://tampermonkey.net/ | |
// @version 2025-01-31 | |
// @description Lower Your Volume with Me | |
// @author You | |
// @match *://*/* | |
// @exclude https://*.youtube.com/watch* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=instagram.com | |
// @require https://cdn.jsdelivr.net/gh/vanjs-org/mini-van@latest/public/mini-van-latest.nomodule.min.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Create a remap object that maps an input array to an output array by a given | |
* schema. | |
* | |
* The schema is an array of `key`-`value` pairs, or a `string` value, where the | |
* `key` is the key from the input array and the `value` is the key to be mapped | |
* to in the output array. If a `string` is given, the value will be passed-through. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- data:text/html;base64,PHNjcmlwdCBzcmM9Imh0dHBzOi8vdW5wa2cuY29tL3BldGl0ZS12dWUiIGRlZmVyIGluaXQ+PC9zY3JpcHQ+PGRpdiB2LXNjb3BlPSJ7dzo4MDAsIGg6ODAwfSIgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jayI+PGZpZWxkc2V0PjxsZWdlbmQ+RWFzeSBQaWNzdW0gLSBDb25maWd1cmF0aW9uPC9sZWdlbmQ+PHRhYmxlIHN0eWxlPSJ3aWR0aDogMTAwJSI+PHRyPjx0ZCBzdHlsZT0id2lkdGg6IDAiPldpZHRoOjwvdGQ+PHRkPjxpbnB1dCB0eXBlPSJudW1iZXIiIHYtbW9kZWw9InciIG1pbj0iMSIgc3R5bGU9IndpZHRoOiAxMDAlIj48L3RkPjwvdHI+PHRyPjx0ZCBzdHlsZT0id2lkdGg6IDAiPkhlaWdodDo8L3RkPjx0ZD48aW5wdXQgdHlwZT0ibnVtYmVyIiB2LW1vZGVsPSJoIiBtaW49IjEiIHN0eWxlPSJ3aWR0aDogMTAwJSI+PC90ZD48L3RyPjx0cj48dGQgc3R5bGU9IndpZHRoOiAwIj5VUkw6PC90ZD48dGQ+PGlucHV0IHJlYWRvbmx5IHYtbW9kZWw9ImBodHRwczovL3BpY3N1bS5waG90b3MvJHt3fS8ke2h9YCIgc3R5bGU9IndpZHRoOiAxMDAlIj48L3RkPjwvdHI+PC90YWJsZT48L2ZpZWxkc2V0PjxmaWVsZHNldD48aW1nIDpzcmM9ImBodHRwczovL3BpY3N1bS5waG90b3MvJHt3fS8ke2h9YCIgc3R5bGU9Im1heC13aWR0aDogOTB2dzsgbWF4LWhlaWdodDogODV2aCI+PC9maWVsZHNldD48L2Rpdj4= --> | |
<script src="https://unpkg.com/petite-vue" defer init></script> | |
<div v- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Hello World!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LAST_VERSION_NUMBER=$(curl -s "https://go.dev/dl/?mode=json" | jq ".[0].version" | sed 's/"//g' | sed 's/go//') | |
DOWNLOAD_URL="https://go.dev/dl/go${LAST_VERSION_NUMBER}.linux-amd64.tar.gz" | |
BASE_DIR="/opt/go" | |
FOLDER_NAME="go-${LAST_VERSION_NUMBER}" | |
UNPACK_DST="${BASE_DIR}/${FOLDER_NAME}" | |
if [ -d "${UNPACK_DST}" ]; then | |
echo "Already installed last version ${LAST_VERSION_NUMBER}!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import htmx from "htmx.org"; | |
class ExtensionName { | |
/** @private @type {WeakMap<HTMLElement, ExtensionName>} */ | |
static _elementInstances = new WeakMap(); | |
/** @private @type {HTMLElement} */ _rootElement; | |
/** | |
* @param {HTMLElement} element |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Push setting current branch as default upstream | |
git push -u origin $(git branch --show-current) |
NewerOlder