Skip to content

Instantly share code, notes, and snippets.

@bacoords
bacoords / twitter-font-awesome-4.css
Last active July 16, 2025 08:04
Update the Twitter / X Icon in Font Awesome 4
.fa.fa-twitter{
font-family:sans-serif;
}
.fa.fa-twitter::before{
content:"𝕏";
font-size:1.2em;
}
//import 'bootstrap@4.6.0'
//import $ from 'jquery'
var startValue = '0.00000001', // Don't lower the decimal point more than 4x of current balance
stopPercentage = 0.001, // In %. I wouldn't recommend going past 0.08
maxWait = 500, // In milliseconds
stopped = false,
stopBefore = 1; // In minutes for timer before stopping redirect on webpage
@dropmeaword
dropmeaword / corsproxy.php
Last active October 6, 2025 07:24
simple CORS proxy in php
<?php
error_reporting( error_reporting() & ~E_NOTICE ); // evil
// config
$enable_jsonp = false;
$enable_native = false;
$valid_url_regex = '/.*/';
// ############################################################################
@MikeNGarrett
MikeNGarrett / wp-config.php
Last active November 3, 2025 17:25
All those damned wp-config constants you can never remember.
<?php
// PHP memory limit for this site
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit.
// Database
define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database.
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users)
// Explicitely setting url
@jppommet
jppommet / nodejs-crypto-sha1.js
Last active January 2, 2025 08:24
nodejs crypto sha1 hash in hexadecimal string representation.
// We use crypto.randomBytes(20) as an example to generate the seed with a higher entropy, higher number of unique values
var hash = crypto.createHash('sha1').update(crypto.randomBytes(20)).digest('hex')