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 October 31, 2022 08:26
Simple URL fetcher in C using libcurl, can be used as a replacement for curl, if you only use it to download files.
View fetch.c
/* 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>
View dark_cgit_theme.css
body {
background-color: black;
background-image: url("./stars.png");
}
div#cgit {
padding: 0em;
margin: 0em;
font-family: sans-serif;
font-size: 10pt;
View lastfm_nowlistening.pl
#!/usr/bin/perl
use LWP::UserAgent;
use JSON;
my $ua = LWP::UserAgent->new;
my $API_KEY = "XXXXXXXXXXXXXXXXXXX";
my $USER = "xxx";
View fdprintf.c
#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
View qsc.pl
#!/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);
View random_number.c
/* 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.
View vpn.org

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