Skip to content

Instantly share code, notes, and snippets.

Andy Fragen afragen

Block or report user

Report or block afragen

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
View get_array_of_release_assets.php
<?php
$config = [
//'token' => '012345',
'repo' => 'satispress',
'username' => 'cedaro',
];
$file_location = 'releases/';
$file_name = 'test.zip';
View .gitignore
.gitignore
wp-config\.php
debug\.log
local-phpinfo\.php
/wp-content/plugins/*
/wp-content/upgrade/*
/wp-content/db\.php
@afragen
afragen / raspi-setup-gitea.md
Last active Jul 11, 2019 — forked from mirhec/raspi-setup-gitea.md
Installing Gitea on Raspberry Pi 3 b+ with nginx and automatic backups
View raspi-setup-gitea.md
@afragen
afragen / improved-singleton.php
Created Apr 26, 2017
A Better WordPress Singleton
View improved-singleton.php
<?php
//http://jamesdigioia.com/a-better-wordpress-singleton/
class PluginClass
{
protected static $instance = null;
public function __construct($file)
{
@afragen
afragen / .htaccess extras
Created Mar 26, 2017
Improve server scores
View .htaccess extras
#Gzip
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>
#End Gzip
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
@afragen
afragen / local-symlink.sh
Last active Oct 24, 2018
For use with Local by Flywheel (Pressmatic) Volumes Addon to create symlinks for better IDE integration
View local-symlink.sh
View keybase.md

Keybase proof

I hereby claim:

  • I am afragen on github.
  • I am afragen (https://keybase.io/afragen) on keybase.
  • I have a public key ASC9c_nvGTdGKRUkvpcv5fUMo-02_TE4nhcoRSxcliEqVQo

To claim this, I am signing this object:

@afragen
afragen / Customfile.rb
Last active May 26, 2017
A Customfile for VVV to auto-create synced folders for specific VVV site and bash file to convert shared folder to symlinks.
View Customfile.rb
# -*- mode: ruby -*-
# vi: set ft=ruby :
config.vm.provider :virtualbox do |v|
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
#v.memory = 2048
end
# config.vm.synced_folder "/Users/afragen/Documents/github/github-updater", "/srv/www/test3/htdocs/wp-content/plugins/github-updater", :owner => "www-data", :mount_options => [ "dmode=775", "fmode=774" ]
@afragen
afragen / remove-update-nag.php
Last active Dec 28, 2015
Remove plugin update nags
View remove-update-nag.php
<?php
//https://dd32.id.au/2011/03/01/disable-plugin-update-notification-for-a-specific-plugin-in-wordpress-3-1/
add_filter( 'site_transient_update_plugins', 'dd_remove_update_nag' );
function dd_remove_update_nag( $value ) {
$hide_update_nags = array(
'akismet/akismet.php',
);
foreach ( $hide_update_nags as $plugin ) {
if ( isset( $value->response[ $plugin ] ) ) {
unset( $value->response[ $plugin ] );
@afragen
afragen / tooltip.php
Created Dec 10, 2015
An override template for ECP 4.0 week view tooltip display. It will strip HTML from the tooltip.
View tooltip.php
<?php
// Place in {your-theme}/tribe-events/pro/week/tooltip.php
/**
*
* Please see single-event.php in this directory for detailed instructions on how to use and modify these templates.
*
*/
You can’t perform that action at this time.