Skip to content

Instantly share code, notes, and snippets.

View rfc-2549's full-sized avatar
😎
kriptos contigo

diego rfc-2549

😎
kriptos contigo
  • Madrid, Spain
View GitHub Profile
@rfc-2549
rfc-2549 / fetch.c
Last active June 23, 2024 22:04
Simple URL fetcher in C using libcurl, can be used as a replacement for curl, if you only use it to download files.
/* compile with cc `pkg-config --cflags --libs libcurl fetch.c -o fetch` */
/* by http://suragu.net, licensed under the public domain. */
#include <stdio.h>
#include <getopt.h>
#include <curl/curl.h>
#include <stdbool.h>
#include <errno.h>
#include <string.h>
body {
background-color: black;
background-image: url("./stars.png");
}
div#cgit {
padding: 0em;
margin: 0em;
font-family: sans-serif;
font-size: 10pt;
#!/usr/bin/perl
use LWP::UserAgent;
use JSON;
my $ua = LWP::UserAgent->new;
my $API_KEY = "XXXXXXXXXXXXXXXXXXX";
my $USER = "xxx";
#include <unistd.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
int vfdprintf(int fd, const char *fmt, va_list ap)
{
va_list args;
@rfc-2549
rfc-2549 / qsc.pl
Last active July 31, 2021 03:31
Script to check if a list of onion sites are down or not
#!/usr/bin/perl
# Script to check if a list of .onion sites is alive or not.
use LWP::UserAgent;
use File::Slurp;
use Term::ANSIColor;
use Data::Dumper;
use POSIX qw(strftime);
/* random_number.c:
* Generates a fairly better random number than rand()
* This function grabs x bytes from /dev/urandom
* and converts it to a long long int.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
@rfc-2549
rfc-2549 / vpn.org
Last active August 16, 2020 23:13 — forked from joepie91/vpn.md
Don't use VPN services.

No uses servicios de VPNs

No, en serio, no lo hagas. Si estás leyendo esto es porque has preguntado que VPN usar. Y esta es la respuesta.

Nota: el contenido en este post no aplica a usar una VPN para su objetivo,. Eso es, una red privada (interna) virtual. Solo aplica a un proxy glorificado. Que es lo que todas las compañias de VPNs las hacen parecer