Skip to content

Instantly share code, notes, and snippets.

@wpeasy
wpeasy / styles.css
Created September 13, 2024 02:12
Bricks Interaction Animations Util Class
/* Available globally */
:root {
--wpe-transition-distance: 15px;
--wpe-transition-rotation: 15deg;
/* use as globals if you wish to
e.g. var(--wpe-animation-duration--fast);
*/
--wpe-animation-duration--fast: 0.2s;
@justinswelch
justinswelch / beaverbuilder-random-layout-shortcode.php
Created August 10, 2018 00:50
Shortcode that displays a random saved BB layout on each page refresh.
<?php
/**
* Plugin Name: PXB - Random Beaver Layouts
* Description: Show random saved layouts in BB with shortcode
* Version: 1.0
* Author: Pixablaze
* Author URI: https://www.pixablaze.com
*/
/*----------------------------------------------------------
@tzmartin
tzmartin / m3u8-to-mp4.md
Last active December 12, 2025 00:58
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@v0lkan
v0lkan / nginx.conf
Last active December 2, 2025 18:08
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
@bzerangue
bzerangue / _verify-repair-permissions-disk.md
Last active September 30, 2025 20:46
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@v0lkan
v0lkan / app.js
Last active August 29, 2015 14:06
#nodejs #tip Tame your dependencies with a `rekuire` function ;)
// ----------------------------------------------------------------------------
// File: PROJECT_ROOT/ ... / servers/app1/app.js
// Define this **before** all the `require`s.
function initRekuire(baseDir, appDir) {
var base = baseDir || '.',
app == appDir || '.';
global.rekuire = function(name) {
return require(

Web Design Contract (open-source)

Between [your name] and [their name]

Summary:

You ([their name]), located at [customer address] are hiring me ([your name]) located at [company address] to [design and develop a web site] for the estimated total price of [total] as outlined in our previous correspondence.

What do both parties agree to do?

@tkersey
tkersey / Undo a commit and redo
Created October 8, 2010 22:36
Git: undo a commit and redo
http://stackoverflow.com/questions/927358/git-undo-last-commit
Undo a commit and redo
$ git commit ...
$ git reset --soft HEAD^ (1)
$ edit (2)
$ git commit -a -c ORIG_HEAD (3)
This is most often done when you remembered what you just committed is incomplete, or you misspelled your commit message, or both. Leaves working tree as it was before "reset".