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
$config = [
//'token' => '012345',
'repo' => 'satispress',
'username' => 'cedaro',
$file_location = 'releases/';
$file_name = '';
View .gitignore
afragen /
Last active Jul 11, 2019 — forked from mirhec/
Installing Gitea on Raspberry Pi 3 b+ with nginx and automatic backups
afragen / improved-singleton.php
Created Apr 26, 2017
A Better WordPress Singleton
View improved-singleton.php
class PluginClass
protected static $instance = null;
public function __construct($file)
afragen / .htaccess extras
Created Mar 26, 2017
Improve server scores
View .htaccess extras
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
#End Gzip
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
afragen /
Last active Oct 24, 2018
For use with Local by Flywheel (Pressmatic) Volumes Addon to create symlinks for better IDE integration

Keybase proof

I hereby claim:

  • I am afragen on github.
  • I am afragen ( on keybase.
  • I have a public key ASC9c_nvGTdGKRUkvpcv5fUMo-02_TE4nhcoRSxcliEqVQo

To claim this, I am signing this object:

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
# 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 / remove-update-nag.php
Last active Dec 28, 2015
Remove plugin update nags
View remove-update-nag.php
add_filter( 'site_transient_update_plugins', 'dd_remove_update_nag' );
function dd_remove_update_nag( $value ) {
$hide_update_nags = array(
foreach ( $hide_update_nags as $plugin ) {
if ( isset( $value->response[ $plugin ] ) ) {
unset( $value->response[ $plugin ] );
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
// 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.