Skip to content

Instantly share code, notes, and snippets.

@josep112
josep112 / codec.js
Last active August 14, 2025 17:02
Asr groq
/*
* Copyright 2022 Sangoma Technologies Corporation
* Kevin Harwell <kharwell@sangoma.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@josep112
josep112 / lxc-copy
Created May 13, 2021 13:20 — forked from lmiphay/lxc-copy
Cloning/copying an lxc on gentoo (lxc-copy / lxc-clone)
lxc-copy is the replacement for lxc-clone:
mkdir -p <new_lxc_path>
lxc-copy --name=<existing_lxc_name> --newname <new_lxc_name> --newpath /<new_lxc_path>
In the new container:
1. /etc/conf.d/hostname - set new hostname
2. /etc/conf.d/net - set new ip (if static ip)
3. /etc/hosts - add new ip/hostname
<?php
/**
* Recebe o token e publica na page.
* Facebook SDK version 2.5
*
* @author Thiago A. de Lima <[email protected]>
*/
require_once 'Facebook/autoload.php';
var $appId = 'xxxxxx';
@josep112
josep112 / SMS.php
Created September 4, 2017 13:20 — forked from ThiagoLimah/SMS.php
<?php
require_once "/var/lib/asterisk/agi-bin/phpagi-asmanager.php";
require_once "/var/lib/asterisk/agi-bin/phpagi.php";
/**
* Classe para envio de SMS utilizando o modulo Chan_Dongle do Asterisk.
*
* @author Thiago A. de Lima <[email protected]>
* @version 1.0
*/