Skip to content

Instantly share code, notes, and snippets.

💭
making stuff

James Finstrom jfinstrom

💭
making stuff
Block or report user

Report or block jfinstrom

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 asterisk.conf
[options]
runuser = asterisk ; The user to run as. The default is root.
rungroup = asterisk ; The group to run as. The default is root
[directories]
astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astdbdir => /var/lib/asterisk
astkeydir => /var/lib/asterisk
View arithing.js
/*
* Copyright © 2019 James Finstrom <code@g3p0.xyz>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*
* npm install ari-client
* npm install request
* Asterisk Dialplan
* Copied From: https://wiki.asterisk.org/wiki/display/AST/Getting+Started+with+ARI
@jfinstrom
jfinstrom / configuration.h
Created Apr 13, 2019
th3d configurations
View configuration.h
/**
* ************** How to use this firmware - READ THIS, yes actually read this. *********************************
*
* Uncomment means removing the 2 // in front of #define.
*
* FLASHING NOTES:
* ALL slicers (Simplify3D, Cura, Slic3r, etc) or anything else that connects to the COM port must be CLOSED for the firmware to be flash.
* If anything is connected to the COM port when flashing it will fail, typically "access denied" is listed in the error section of the Arduino IDE.
* You MUST use the Included Arduino IDE to flash the firmware if on Windows and if you are on a Mac or Linux follow the guide in our knowledgebase to setup your IDE to work with the firmware.
*
@jfinstrom
jfinstrom / godwin ethics
Created Oct 25, 2018
Sqlite ethics but replacing god/christ with godwin....
View godwin ethics
First of all, love the Lord Godwin with your whole heart, your whole soul, and your whole strength.
Then, love your neighbor as yourself.
Do not murder.
Do not commit adultery.
Do not steal.
Do not covet.
Do not bear false witness.
Honor all.
Do not do to another what you would not have done to yourself.
@jfinstrom
jfinstrom / CHANGELOG.md
Created Oct 23, 2018
core changelog example
View CHANGELOG.md
View InstallBase.php
<?php
namespace FreePBX\modules\Mymodule;
use FreePBX\Inputinterface;
use FreePBX\Outputinterface;
use BMO;
class InstallBase{
public $input = null;
public $output = null;
@jfinstrom
jfinstrom / sign.sh
Last active Sep 30, 2018 — forked from snay2/sign.sh
Bash shell script to automate PGP key signing
View sign.sh
while [ 1 ]; do
echo ">> Enter an email address:"
read EMAIL
gpg --keyserver pgp.mit.edu --search-keys $EMAIL
FINGERPRINT=`gpg --fingerprint $EMAIL`
[[ $FINGERPRINT =~ 2048[DR]/([0-9A-F]{8}) ]];
KEY_ID=${BASH_REMATCH[1]}
gpg --sign-key $EMAIL
echo ">> Going to sign key $KEY_ID"
gpg --armor --export $KEY_ID > $KEY_ID.asc
View keybase.md

Keybase proof

I hereby claim:

  • I am jfinstrom on github.
  • I am jfinstrom (https://keybase.io/jfinstrom) on keybase.
  • I have a public key ASBFx1fnod-68cL5UCkH36MWRn3I5IxecgfPQUGZ9R5JqAo

To claim this, I am signing this object:

@jfinstrom
jfinstrom / openpgp.txt
Created Sep 12, 2018
OpenKeychain Linked Identity
View openpgp.txt
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:5206acd86e53b3466bf1c7ecdb16fed947df73b1]
@jfinstrom
jfinstrom / myPlugin.php
Created Sep 10, 2018
example flysystem plugin for reference
View myPlugin.php
<?php
namespace League\Flysystem\Plugin;
use League\Flysystem\FilesystemInterface;
class MyExample extends AbstractPlugin{
protected $filesystem;
public function setFilesystem(FilesystemInterface $filesystem){
$this->filesystem = $filesystem;
}
You can’t perform that action at this time.