Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am jaibeee on github.
  • I am jaibeee (https://keybase.io/jaibeee) on keybase.
  • I have a public key whose fingerprint is 3043 4015 345B EA3E 73CD 6609 4818 0472 01DC EAE2

To claim this, I am signing this object:

@jaibeee
jaibeee / brew-perms.sh
Last active Sep 28, 2021
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
View brew-perms.sh
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
View gist:3f2429c294995c183d01
sub vcl_recv {
if (req.url ~ "^/api/*") {
unset req.http.cookie;
unset req.http.cache - control;
unset req.http.pragma;
unset req.http.expires;
unset req.http.etag;
unset req.http.X - Forwarded - For;
if (req.restarts == 0) {
set req.http.X - host = req.http.host;
View gist:d6c1d356838a3d58a887
jQuery.fn.extend({
pagination: function () {
paginatorId = this;
switch (paginatorPosition) {
case 'top':
{
paginatorId.before('<div class="paginator"></div>');
break;
}
case 'bottom':
View gist:4a55b369cde5176d58d6
<?php
$cformsSettings['global']['cforms_root']
$cformsSettings['global']['tinyURI']
$cformsSettings['global']['cforms_root_dir']
$cformsSettings['global']['cforms_upload_dir']
View gist:14c01d875a7f8c491bb6
<?php
$wpdb->query("DELETE FROM `$wpdb->options` WHERE option_name LIKE 'cforms%'");
$wpdb->query("DROP TABLE IF EXISTS $wpdb->cformssubmissions");
$wpdb->query("DROP TABLE IF EXISTS $wpdb->cformsdata");
View gist:2dba4d0c5440dbd85660
<?php
/**
* Updates cforms data to reflect the current host that it is on
*
* @return
*/
function update_cforms_data() {
if($cformsSettings['global']['cforms_root'] != WP_PLUGIN_URL . '/cforms') :
$cformsSettings['global']['cforms_root'] = WP_PLUGIN_URL . '/cforms';