Skip to content

Instantly share code, notes, and snippets.

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 February 15, 2024 22:49
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.
#!/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
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;
jQuery.fn.extend({
pagination: function () {
paginatorId = this;
switch (paginatorPosition) {
case 'top':
{
paginatorId.before('<div class="paginator"></div>');
break;
}
case 'bottom':
<?php
$cformsSettings['global']['cforms_root']
$cformsSettings['global']['tinyURI']
$cformsSettings['global']['cforms_root_dir']
$cformsSettings['global']['cforms_upload_dir']
<?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");
<?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';