Skip to content

Instantly share code, notes, and snippets.

@vdite
vdite / notify-on-new-post.php
Last active March 28, 2024 21:33
Send an email notification to the Wordpress administrator when a new post is published.
<?php
/**
Plugin Name: Alert Admin on new Post
Plugin URI: http://wordpress.stackexchange.com/questions/19040/alert-email-when-any-post-or-page-is-changed
Description: Send an email notification to the administrator when a new post is published.
Author: TheDeadMedic, transfered by Viktor Dite
Version: 1.0
Copyright CC share alike
* @param string $new_status
#!/usr/bin/python
# redict - redis based dictionary
# this version uses UserDict and a mostly cached redis data for low I/O impact
# almost always consistent dict. to make sure you have all latest data run __sync() periodically
# gleicon 2010 - http://zenmachine.wordpress.com - http://github.com/gleicon - http://7co.cc
import redis
from UserDict import UserDict
import time
@jlturner
jlturner / Gemfile
Last active March 28, 2024 21:33
A quick and dirty redirect tracker with sinatra and redis
source 'https://rubygems.org'
gem 'sinatra'
gem 'redis'
@mmenanno
mmenanno / .vixen_media_group.md
Last active March 28, 2024 21:31
Vixen Media Group Trailers, Studio Code, and Click to Copy

Vixen Media Group - Trailers, Studio Code, and Click to Copy

  • Displays Studio Code
  • Displays trailer links in 320p, 480p, 720p, 1080p, and 2160p formats (links open in new tab)
  • Click to copy studio code
  • Click to copy date in stash format (YYYY-MM-DD)
  • Click to copy duration
  • Click to copy Director name
@nntrn
nntrn / espn-api-list.md
Last active March 28, 2024 21:31
List of nfl api endpoints from espn

List of NFL API Endpoints

This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:

  • June 2021 - list of endpoints for other sports/leagues (i.e. basketball, baseball, lacrosse, rugby)
  • August 2021 - get historical fantasy league data
  • September 2021 - list of endpoints in plain text
  • May 2023 - collapsed endpoint response examples

Additional Resources

@OrionReed
OrionReed / DOM3D.js
Last active March 28, 2024 21:30
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@PurpleVibe32
PurpleVibe32 / vmwk17key-5000keys-unchecked.txt
Created February 21, 2023 19:28
5000k+ vmware workstation pro 17 (untested)
4U612-DN31H-MJEJ0-0V0Z4-978HD
5G44H-ACH50-0J4C9-1VC5P-CY0QD
JC000-8G047-MJDF1-0H3E6-8QR5F
JV2NU-0XL5N-0J4Q8-0T0E6-8GH56
JZ6E0-4R1E0-HJ1Q0-1R8NH-3AK28
0Z48K-4X29Q-MJE80-113GK-C7K3A
HF4H0-46K80-MJ8D9-1KAZP-CKK12
NY69H-2N05P-HJ170-1V1ZM-CG222
4C45A-D8J0H-HJ5T0-1T25H-92A76
0Z4H2-0WK9K-4JE10-0T9G6-9C8M4
@Zeinok
Zeinok / wine-breeze-dark-theme.md
Last active March 28, 2024 21:20
Breeze Dark theme for Wine

Made possible with this reddit post.

Install

wine regedit wine-breeze-dark.reg

Uninstall (Reset Wine color scheme)

wine regedit wine-reset-theme.reg