Skip to content

Instantly share code, notes, and snippets.

@phil-blain
phil-blain / .gitattributes
Last active March 28, 2024 21:37
Git pickaxe : show only relevant hunks (filter displayed hunks using the given search string)
*.md diff=markdown
@0xjac
0xjac / private_fork.md
Last active March 28, 2024 21:36
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@OrionReed
OrionReed / DOM3D.js
Last active March 28, 2024 21:34
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; // ¯\\_(ツ)_/¯
@rxaviers
rxaviers / gist:7360908
Last active March 28, 2024 21:34
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@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