Skip to content

Instantly share code, notes, and snippets.

@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
*/