install packages first:
yay -S xl2tpd strongswan networkmanager-l2tp
ref: https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
#!/usr/bin/env bash | |
echo "Updating Ubuntu..." | |
sudo -- -sh -c <<EOF | |
apt update && apt upgrade -y | |
apt dist-upgrade && sudo apt autoremove | |
do-release-upgrade | |
echo "Done." | |
EOF |
/* | |
* A simple example of json string parsing with json-c. | |
* | |
* clang -Wall -g -I/usr/include/json-c/ -o json_parser json_parser.c -ljson-c | |
*/ | |
#include <json.h> | |
#include <stdio.h> | |
int main() { | |
struct json_object *jobj; |
<?php | |
namespace Stack; | |
class Stack { | |
private $stack; | |
function __construct() { | |
$this->initStack(); | |
} |
install packages first:
yay -S xl2tpd strongswan networkmanager-l2tp
ref: https://wiki.archlinux.org/index.php/Openswan_L2TP/IPsec_VPN_client_setup
<?php | |
namespace Queue; | |
class Queue { | |
private $queue; | |
function __construct() { | |
$this->initQueue(); |