Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Jay Holtslander JayHoltslander

💭
I may be slow to respond.
Block or report user

Report or block JayHoltslander

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
@mayneyao
mayneyao / notion2blog.js
Last active Feb 22, 2020
Notion.so > Personal Blog | custom domain + disqus comment
View notion2blog.js
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
@sahava
sahava / Facebook Pixel.tpl
Last active May 23, 2019
Facebook Pixel custom tag template for Google Tag Manager
View Facebook Pixel.tpl
___INFO___
{
"displayName": "Facebook Pixel",
"description": "This is a template prototype for the Facebook Pixel.",
"securityGroups": [],
"id": "cvt_temp_public_id",
"type": "TAG",
"version": 1,
"brand": {
@liuyigh
liuyigh / wp_helper.sh
Last active Feb 21, 2020 — forked from emirpprime/wp_helper.sh
Utility script to help manage WordPress sites on an Serverpilot server (but not limited to SP)
View wp_helper.sh
#!/bin/bash
# Help / usage info.
USAGE=$'WordPress Helper script, adapted from Phil Banks (emirpprime@github) EasyEngine script for Serverpilot .\nWithout any args it will search /srv/users/serverpilot/apps for WordPress sites, loop over them in alphabetical order and check for core and plugin updates.\nAlso accepts:\n\t--sites=[space seperated list of site paths relative to /srv/users/serverpilot/apps]\n\t--update=[plugins|wp|all].'
# Die function for exiting on errors.
die () {
echo "${1}, exitting..." >&2 ; echo ; exit 1
}
@tribulant
tribulant / wp-config.php
Created Jan 20, 2017
WordPress Allow Unfiltered Uploads for wp-config.php
View wp-config.php
define('ALLOW_UNFILTERED_UPLOADS', true);
@atomtigerzoo
atomtigerzoo / wordpress-disable-yoast-seo-on-custom-post-type.php
Created Mar 31, 2016
Wordpress: Disable Yoast SEO on Custom Post Type
View wordpress-disable-yoast-seo-on-custom-post-type.php
function my_remove_wp_seo_meta_box() {
remove_meta_box('wpseo_meta', YOUR_POST_TYPE_NAME_HERE, 'normal');
}
add_action('add_meta_boxes', 'my_remove_wp_seo_meta_box', 100);
@bwhli
bwhli / Redirect WordPress Logout to Home Page
Created Jul 7, 2015
Redirect WordPress Logout to Home Page
View Redirect WordPress Logout to Home Page
//* Redirect WordPress Logout to Home Page
add_action('wp_logout',create_function('','wp_redirect(home_url());exit();'));
@bueckl
bueckl / wget
Last active Dec 29, 2019
Wget examples
View wget
#Spider Websites with Wget – 20 Practical Examples
Wget is extremely powerful, but like with most other command line programs, the plethora of options it supports can be intimidating to new users. Thus what we have here are a collection of wget commands that you can use to accomplish common tasks from downloading single files to mirroring entire websites. It will help if you can read through the wget manual but for the busy souls, these commands are ready to execute.
1. Download a single file from the Internet
wget http://example.com/file.iso
2. Download a file but save it locally under a different name
wget ‐‐output-document=filename.html example.com
@mw-ferretti
mw-ferretti / README.md
Last active Oct 13, 2019
Paypal button on markdown github
View README.md

Steps:

<!-- Sample of code generated --> 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RGQ8NSYPA59FL">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1">
@jplhomer
jplhomer / disable-comments.sh
Created Feb 25, 2015
Disable all comments/pings in WordPress with WP-CLI
View disable-comments.sh
$ wp post list --format=ids | xargs wp post update --comment_status=closed
# Output:
# Success: Updated post 2514.
# Success: Updated post 2511.
# Success: Updated post 2504.
# Success: Updated post 2499.
# Success: Updated post 2441.
# etc...
You can’t perform that action at this time.