Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Crowdsurf Hotkeys
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @includes https://ops.cielo*
// @grant none
// ==/UserScript==
/* jshint -W097 */
// ==UserScript==
// @name htermconfig
// @namespace ritzyramen
// @description Configure hterm for google cloud shell.
// @include https://cloud*
// @include http://cloud*
// @version 1
// @grant none
// ==/UserScript==
@ritzyramen
ritzyramen / readFileAsBytes.c
Created January 26, 2016 20:33
Read a file into a byte array in C.
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
FILE *file_pointer;
uint8_t *file_data;
uint32_t file_length;
int main(int argc, char *argv[]){
if(argc < 2){