Skip to content

Instantly share code, notes, and snippets.

View brettbatie's full-sized avatar

Brett Batie brettbatie

View GitHub Profile
@brettbatie
brettbatie / gist:1ab1334bc4fc2939bb3f
Last active August 29, 2015 14:21
Use Command line MavensMate to create many apex files at once (helps with unit test limit of 500)
for i in {1..100}; do echo '{"params": {"api_name": "unittest'"$i"'"}, "project_name": "release-1.7", "workspace": "/home/brett/git/salesforce", "metadata_type": "ApexClass", "github_template": {"params": [{"name": "api_name", "default": "MyApexClass", "description": "Apex Class API Name"}], "name": "Unit Test", "file_name": "UnitTestApexClass.cls", "author": "MavensMate", "description": "Unit test class"}}' | /usr/local/bin/mm -o new_metadata -c SUBLIME_TEXT_3; done;
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface NoAuthRequired {}
@brettbatie
brettbatie / my.ini
Created September 30, 2020 17:46 — forked from amr/my.ini
MySQL my.cnf settings optimized for local development, this is NOT a complete my.cnf configuration, the settings here are meant to be copied from their sections and pasted in the appropriate section in an existing working my.cnf
[mysqld]
open-files-limit = 24000
character-set-server = utf8
character-set-filesystem = utf8
#
# InnoDB
#
# After applying these for the first time on a new mysql installation with no
# BEGIN Cache Enabler
<IfModule mod_rewrite.c>
RewriteEngine On
# cache directory
RewriteRule ^ - [E=CE_CACHE_DIR:/wp-content/cache/cache-enabler]
# default cache keys
RewriteRule ^ - [E=CE_CACHE_KEY_SCHEME:http-]