Skip to content

Instantly share code, notes, and snippets.

Alexandros Georgiou alex-georgiou

Block or report user

Report or block alex-georgiou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ldodds
ldodds / scribd.js
Created May 13, 2015
Scribd bypass
View scribd.js
var id = window.location.href.match(/\/doc\/([0-9]+)\//)[1]
window.location.href = "https://www.scribd.com/document_downloads/" + id + "?extension=pdf&from=embed&source=embed"
@jmuspratt
jmuspratt / Exiftool Canonize
Last active Aug 21, 2019
exiftool : rename files in current dir to YYYY-MM-DD-HH-MM-SS-1.ext
View Exiftool Canonize
# Rename image and MOV files according to EXIF capture date, using YYYY-MM-DD-HH-MM-SS.ext
format.
# Files shot within the same second get copy number added (-1,-2, etc.).
# Video files require a different, so we run exiftool 3 times:
# 1. Exclude MOV files and rename the image files with <CreateDate>.
# 2. Target MOV files and rename them with MediaCreateDate (for iPhone videos).
# 3. Target MOV files and rename them with DateTimeOriginal (for Fuji camera videos).
# Requirements: install the package manager Homebrew (http://brew.sh), then install exiftool (type brew install exiftool in Terminal.app).
# Now open Terminal.app, cd to the relevant directory, and run the command.
@tommusrhodus
tommusrhodus / example-skills-block
Created Feb 18, 2015
This example is just really simple, the main shortcode is simple enough to not need any options or globals applied, it simply wraps the innner shortcodes.
View example-skills-block
<?php
/**
* The Shortcode
*/
function ebor_skills_shortcode( $atts, $content = null ) {
$output = '<div class="skills-wrapper">'. do_shortcode($content) .'</div>';
return $output;
}
add_shortcode( 'machine_skills', 'ebor_skills_shortcode' );
@danielbachhuber
danielbachhuber / gist:7684646
Created Nov 27, 2013
How to integrate WordPress Core updates with your custom Plugin or Theme
View gist:7684646
<?php
/**
* How to integrate WordPress Core updates with your custom Plugin or Theme
*
* Filter the `update_plugins` transient to report your plugin as out of date.
* Themes have a similar transient you can filter.
*/
add_filter( 'site_transient_update_plugins', 'wprp_extend_filter_update_plugins' );
add_filter( 'transient_update_plugins', 'wprp_extend_filter_update_plugins' );
function wprp_extend_filter_update_plugins( $update_plugins ) {
You can’t perform that action at this time.