Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# args=("$@")
# echo Number of arguments: $#
# echo 1st argument: ${args[0]}
# echo 2nd argument: ${args[1]}
# echo without first: ${@:2} $1
# echo $@
# echo $*
function fail()
@kennuzzo
kennuzzo / gopath.go
Created October 12, 2015 04:05
golang default path
build.Default.GOPATH
# include 'doorkeeper_helpers' in doorkeeper intializer
# raise Doorkeeper::Errors::InvalidResourceOwner
# remember to add the error message translation to the doorkeeper locale yaml.
# in lib/doorkeeper/helpers/doorkeeper_helpers.rb
module Doorkeeper
module Helpers::Controller
alias_method :old, :get_error_response_from_exception
def get_error_response_from_exception(exception)
2014-09-05 02:12:21.434783 [WARNING] sofia_reg.c:2748 Can't find user [gianni@107.yyy.yyy.yyy] from 222.xxx.xxx.xxx
You must define a domain called '107.yyy.yyy.yyy' in your directory and add a user with the id="gianni" attribute
and you must configure your device to use the proper domain in it's authentication credentials.
2014-09-05 02:12:21.434783 [WARNING] sofia_reg.c:1608 SIP auth failure (REGISTER) on sofia profile 'internal' for [gianni@107.yyy.yyy.yyy] from ip 222.xxx.xxx.xxx