Skip to content

Instantly share code, notes, and snippets.

View jbuehring's full-sized avatar

James M. Buehring jbuehring

View GitHub Profile
@jbuehring
jbuehring / KannelDLR.md
Created February 21, 2022 13:32 — forked from grantpullen/KannelDLR.md
Kannel DLR information and how it maps to SMPP return values.

SMSPP Delviery Reports and Kannel

This info page relates to the DLR values which are returned by kannel when requesting DLR. Some SMPP related information is also listed for reference.

dlr-mask

This [send-sms][1] parameter is used to request for delivery reports with the state of the sent message. This requires the [dlr-url][1] on sendsms-user group or use the dlr-url CGI variable to be set. The value is a bit mask composed of:

Value Description

##Working with ansible-vault

I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.

What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.

Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.

@jbuehring
jbuehring / fyi
Last active August 29, 2015 14:02
mbp:pci-xsl jbuehring$ ssh-add
Identity added: /Users/jbuehring/.ssh/id_rsa (/Users/jbuehring/.ssh/id_rsa)
mbp:pci-xsl jbuehring$ ssh-agent
SSH_AUTH_SOCK=/usr/local/zend/tmp/ssh-UVBj9zE0giEz/agent.8436; export SSH_AUTH_SOCK;
SSH_AGENT_PID=8437; export SSH_AGENT_PID;
echo Agent pid 8437;
mbp:pci-xsl jbuehring$
@jbuehring
jbuehring / gist:8675315
Last active January 4, 2016 20:39
Cautela vagrant ftps
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=YES
pam_service_name=vsftpd
<?php
error_reporting(-1);
ini_set('memory_limit', '1536M');
$item_count = 500;
$outdial_queue_timeframe = 115;
$outdial_queue_max_cps = 5;
$outdial_queue_min_cps = 0.12;
foreach ($argv as $arg)
jbuehring@dev:~/apptastic$ bundle exec rake test --trace
(in /home/jbuehring/apptastic)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
jbuehring@dev:~/apptastic$ bundle exec rake --trace test:units
(in /home/jbuehring/apptastic)
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
no such file to load -- openssl
/home/jbuehring/apptastic/config/../vendor/rails/railties/lib/initializer.rb:271:in `require_frameworks'
jbuehring@dev:~/apptastic$ bundle exec rake --trace test
(in /home/jbuehring/apptastic)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
/home/jbuehring/.rvm/gems/ruby-1.8.7-p334@global/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing'
/home/jbuehring/apptastic/vendor/rails/activesupport/lib/active_support/dependencies.rb:55
/home/jbuehring/apptastic/vendor/rails/activesupport/lib/active_support.rb:57:in `require'
/home/jbuehring/apptastic/vendor/rails/activesupport/lib/active_support.rb:57
/home/jbuehring/apptastic/vendor/rails/railties/lib/tasks/misc.rake:18:in `require'
/home/jbuehring/apptastic/vendor/rails/railties/lib/tasks/misc.rake:18
jbuehring@dev:~/apptastic$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.8)
actionpack (2.3.8)
activerecord (2.3.8)
activeresource (2.3.8)
activesupport (2.3.8)
addressable (2.2.3)
Eris:apptastic jbuehring$ rake test:units
(in /Users/jbuehring/apptastic)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
/Users/jbuehring/apptastic/Rakefile:10
(See full trace by running task with --trace)
Eris:apptastic jbuehring$ rake test:units --trace
(in /Users/jbuehring/apptastic)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex