Skip to content

Instantly share code, notes, and snippets.

View chivalry's full-sized avatar
👨‍💻
Converting coffee into software.

Charles Ross chivalry

👨‍💻
Converting coffee into software.
  • Chivalry Software
  • San Jacinto, CA
View GitHub Profile
@chivalry
chivalry / package.xml
Created February 26, 2021 16:47 — forked from shanerk/package.xml
Salesforce package.xml file to get all metadata from your org. Works great with vscode and cli.
<?xml version="1.0" encoding="UTF-8" ?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>ApexClass</name>
</types>
<types>
<members>*</members>
<name>ApexComponent</name>
</types>
@chivalry
chivalry / .gitignore
Created April 15, 2019 14:56
Global gitignore for macOS and Python
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
@chivalry
chivalry / keystroke_shortcuts.applescript
Created May 27, 2018 23:47 — forked from ttscoff/keystroke_shortcuts.applescript
A few helpers for sending keystrokes and typing strings with AppleScript
-- set the application to type into
-- you need to activate and focus a window prior to calling keyCmd
property process_name : "Finder"
on lowercase(_text)
set _output to do shell script "echo " & quoted form of (_text) & " | tr A-Z a-z"
return _output
end lowercase
(* Trigger a hotkey or character
// json.Assign ( _json )
// Purpose: Assigns JSON keys to local variables with given values.
// Parameters: _json: The JSON to parse
// Version: 1.0 - Charles Ross - 17-05-11
// Example: Let (
// _ = json.assign ( JSONSetElement ( "" ; "foo" ; "bar" ; JSONString ) ) ;
// $foo = "bar"
// )
Case (
@chivalry
chivalry / ubuntu-flask-steps.txt
Last active March 17, 2017 16:42
Ubuntu Flask Steps
sudo apt-get update
sudo apt-get install python3-pip python3-dev nginx
sudo -H pip3 install --upgrade pip
sudo -H pip3 install virtualenv
mkdir ~/myproject
cd ~/myproject
virtualenv myprojectenv
source myprojectenv/bin/activate
pip install gunicorn flask
vim ~/myproject/myproject.py
Last login: Wed Jul 13 04:58:33 on ttys001
~ $ cd Library/
Library $ :cd
-bash: :cd: command not found
Library $ tail ~/.bash_profile
}
command_not_found_handle() {
if [[ "${1:0:1}" != : ]]; then
printf "%s: %s: command not found\n" "$0" "$1" >&2

First of all, I understand that any assistance you provide with this is out of altruism, and if you're able to help me out, I appreciate in advance, but I understand if you're unable to provide any assistance for this freeware product.

I'm using your plugin template to create a plugin that requires 26 external functions, so of course, I had to go beyond your existing 10 that you include the code for. I thought I understood what I needed to do, but the 11th function and beyond don't work correctly. When I install the plugin and launch FileMaker (11, btw), there's space below the plugin name showing where the functions would go, but they're blank until I get to one of the first 10. I'll email a screenshot if that would help.

Here's what I did. In Xcode I edited FMTConfig.h to read like this (with Markdown-inspired formatting for source code):

#define FUNCTION_10_C_NAME         SCIUploadFile2
#define FUNCTION_10_FLAGS          fmx::ExprEnv::kMayEvaluateOnServer \

|

@chivalry
chivalry / ExecuteSQL Template
Created April 11, 2015 06:54
A standard template for bulletproof ExecuteSQL in FileMaker.
Let (
[
_alias = "a";
_a_pro = devp.GetTableName ( PRO::___PRO ) & " " & _alias;
_a_act = _alias & "." & devp.GetFieldName ( PRO::__f_ACT );
_a_ka_project_id = _alias & "." & devp.GetFieldName ( z_base_project_id ) ;
_sql = "SELECT MAX( " & _a_ka_project_id & " )
FROM " & _a_pro & "
# EDITOR=vi
export EDITOR='vim'
export CLICOLOR=1;
export LSCOLORS=exfxcxdxbxegedabagacad;
PATH=.:~/bin:/usr/local/mysql/bin:/usr/local/bin:~/local/node/bin:$PATH
alias ll="ls -golAF"
alias lll="ls -lAF"
#!/bin/bash
#Usage: Execute the following command:
<<COMMENT1
curl -L https://gist.github.com/fec506918e9183de1833/raw/ | bash -x
COMMENT1