Skip to content

Instantly share code, notes, and snippets.

View NCatalani's full-sized avatar

Nicolas Ayala Catalani NCatalani

  • CWI Software
  • Rio de Janeiro, Brazil
View GitHub Profile
@NCatalani
NCatalani / get_cookie.py
Created September 22, 2023 13:18
Forti VPN SAML CLI workaround using Selenium
#!/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
@NCatalani
NCatalani / json_parser.c
Created February 23, 2023 18:34 — forked from alan-mushi/json_parser.c
Examples for the json-c tutorial.
/*
* 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;
@NCatalani
NCatalani / Stack.php
Last active June 29, 2021 20:35
Simple stack abstraction made in PHP
<?php
namespace Stack;
class Stack {
private $stack;
function __construct() {
$this->initStack();
}
@NCatalani
NCatalani / nm_l2tp_ipsec_vpn.md
Created June 23, 2021 00:08 — forked from pastleo/nm_l2tp_ipsec_vpn.md
setup L2TP IPSEC VPN in archlinux using NetworkManager
@NCatalani
NCatalani / Queue.php
Last active April 3, 2021 22:59
Simple queue abstraction for PHP
<?php
namespace Queue;
class Queue {
private $queue;
function __construct() {
$this->initQueue();