I hereby claim:
- I am pfigue on github.
- I am pfigue (https://keybase.io/pfigue) on keybase.
- I have a public key ASC7-O8ssdK2kWqGAcI0Ysyi2BWzWYSy_iEmBOY1UegLzgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* | |
* Compile just with `gcc -o cap1 cap1.c` | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
char *get_cap_name(unsigned short cap_index) |
// Compile with e.g. `gcc -o /tmp/eatmem /tmp/eatmem.c` | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
int main(int argc, char **argv) | |
{ | |
void *p, *end, *cur; | |
size_t megs; |
--config
-I shows received headers
-L follows links for 30x redirections
--resolve a.b.c:80:1.2.3.4
resolves domain name a.b.c to 1.2.3.4.
#include <stdio.h> | |
#include <time.h> | |
int main(int argc, char **argv) | |
{ | |
int result; | |
struct timespec tp; | |
clockid_t clk_id; |
/* | |
* | |
* Compile with: `gcc -o clock clock.c` | |
* | |
* [clock(3) - Linux man page](http://linux.die.net/man/3/clock): *The value returned is the CPU time used [by the process] so far[...]* | |
* [What’s the correct way to use printf to print a clock_t?](http://stackoverflow.com/questions/1083142/what-s-the-correct-way-to-use-printf-to-print-a-clock-t) | |
* | |
*/ | |
#include <stdio.h> |
Prevent a package to be upgraded using apt-get upgrade
:
apt-mark [hold|unhold] pkg_name
#define _GNU_SOURCE | |
#define _FILE_OFFSET_BITS 64 | |
#include <stdio.h> | |
#include <time.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/resource.h> | |
#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \ | |
} while (0) |