Skip to content

Instantly share code, notes, and snippets.

Package: libvorbisfile3
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 69
Maintainer: Debian Xiph.org Maintainers <pkg-xiph-maint@lists.alioth.debian.org>
Architecture: armhf
Multi-Arch: same
Source: libvorbis
Version: 1.3.4-2
#include <stdio.h>
#define NP_VX(verts) short x[verts]
#define NP_VY(verts) short y[verts]
#define NP_AX(xcoords...) = {xcoords};
#define NP_AY(ycoords...) = {ycoords};
#define NP_CO(vals...) short color[4] = {vals};
#define NP_SH(np_name, np_vx, np_vy, np_ax, np_ay, np_co) \
void np_name(){ \
np_vx \
#include <stdio.h>
typedef struct {
char * section;
char * entries[];
} some_t;
int main()
{
static some_t some = { .section = "system", .entries = { "x_res", "y_res"} };
#include <stdio.h>
#include <stdlib.h>
typedef struct{
int i;
} junk_t;
junk_t * junk = { NULL };
int junk_length = 0;
#include <stdio.h>
#include <stdlib.h>
typedef struct{
//doesn't compile without parens
unsigned char (*c)[3];
}a_t;
int main(){
#!/bin/bash
# source a file of key/value that happens to be bash compliant
source ${DIRECTORY}/gadget.cfg
# get docker image size
SIZE="$(${DOCKER} images --format "{{.Size}}" ${name}_${uuid}-img)"
# get size in bytes from MB
B_SIZE=$(echo "scale=0; (1000*1000*$(echo ${SIZE} | ${SED} 's% MB%%g'))/1" | ${BC} -l)
#include <stdio.h>
int main () {
int a = 0;
( a ) || printf("some junk\n");
a++;
( a ) || printf("other stuff\n");
return 0;
}
#include <stdio.h>
#include <string.h>
typedef unsigned char rgba_t[4];
int main () {
char a[8];
memset(a, 70, 8);
@computermouth
computermouth / docker_caps.sh
Last active July 11, 2017 00:39
All the docker capability flags
#!/bin/bash
docker run $my_image \
--cap-add AUDIT_CONTROL \
--cap-add AUDIT_READ \
--cap-add AUDIT_WRITE \
--cap-add BLOCK_SUSPEND \
--cap-add CHOWN \
--cap-add DAC_OVERRIDE \
--cap-add DAC_READ_SEARCH \
#include "whatever.h"
int init_page(){
char *h_content = "this is some header";
char *pre_content =
"// example code"
"int a = 0;"