Skip to content

Instantly share code, notes, and snippets.

<?php
add_filter('avf_title_args', 'fix_events_page_title', 10, 2);
function fix_events_page_title($args,$id)
{
if (get_query_var('post_type') == 'tribe_events' && !is_single())
{
if((tribe_is_upcoming() || tribe_is_past()))
{
$args['title'] = 'Events List';
}
@InoPlugs
InoPlugs / the events calendar fixes
Last active December 20, 2015 01:19
Enfold styling adjustments for The Events Calendar, The Events Calendar Pro and WooTickets
//php code fixes
add_filter('tribe_get_embedded_map','avia_deactivate_google_api',10,1);
function avia_deactivate_google_api($google_map){
global $avia_config;
if(!empty($google_map)) $avia_config['g_maps_widget_active'] = 1;
return $google_map;
}
//custom css
@petethepig
petethepig / mfa-delete.rb
Created January 29, 2013 08:08 — forked from anonymous/mfa-delete.rb
A simple tool that will help you enable MFA Delete feature on your S3 bucket
#!/usr/bin/env ruby
require 'aws'
if ARGV.length < 5
print <<-EOF
Usage: mfa-delete.rb <bucket_name> <aws_id> <aws_secret> <mfa_serial> <mfa_token> <s3_endpoint>
<s3_endpoint> is optional
EOF
exit
end
@kamaljoshi
kamaljoshi / check_cloudflare.rb
Last active May 27, 2017 21:57
This script collects domains from your Chrome history for the default profile and checks to see if they are being proxied through Cloudflare by checking presence of a header.
# Except sqlite3 all the libraries are standard that should be present with a Ruby installation.
# If you don't have sqlite3 installed. Use `gem install sqlite3`
require 'fileutils'
require 'sqlite3'
require 'uri'
require 'net/http'
require 'set'
require 'thread'
@lgp171188
lgp171188 / auto-expand-tco-links-on-tweetdeck-website.user.js
Created October 6, 2015 05:47
Auto expand t.co links on Tweetdeck website
@cure53
cure53 / 1266386.md
Last active May 30, 2020 17:55
OTF+SVG allows to read info character by character with only a STYLE injection through XEE & timing

OTF+SVG allows to read info character by character with only a STYLE injection through XEE & timing

Intro

Mozilla Firefox supports a feature that allows to define SVG images inside an OTF font to represent characters. This is useful if we for example want to work with colorful characters, Emoji, animated characters and so on. Firefox is currently the only relevant browser supporting this technology.

The general technology and its advantages are described here:

@mattvh
mattvh / favicon.rb
Last active September 4, 2020 12:13
Discovering and saving favicons with Ruby
# by Matt Harzewski
# Read more: http://www.webmaster-source.com/2013/09/25/finding-a-websites-favicon-with-ruby/
require "httparty"
require "nokogiri"
require "base64"
class Favicon
@pwfisher
pwfisher / gtm-util.js
Last active April 20, 2021 19:32
Ember.js Google Tag Manager utility
// Google Tag Manager
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s);j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-ABCDEF');
// End Google Tag Manager
App.GtmUtil = {
#!/usr/bin/sudo sh
## ruby_revealer.sh -- decrypt obfuscated GHE .rb files. 2.0.0 to 2.3.1+.
## From `strings ruby_concealer.so`:
##
## > This obfuscation is intended to discourage GitHub Enterprise customers
## > from making modifications to the VM.
##
## Well, good, as long as its not intended to discourage *me* from doing this!
@JumpsecLabs
JumpsecLabs / main.go
Created June 20, 2019 10:56
JUMPSEC Antivirus Bypass
package main
import (
"encoding/hex"
"fmt"
"os"
shellcode "github.com/brimstone/go-shellcode"
)