- Developer Mode enabled (of course)
- (https://github.com/Constellation/crxmake)[ruby & crxmake]
- jsoncpp
- nodejs & node-dweetio
- crouton with xiwi
- crouton extension
- Inside your chroot, compile both C++ sources using jsoncpp.
#!/bin/bash | |
if [ $# -lt 1 ]; then | |
echo "Usage: macOSDiscCreator <path to Install macOS.app>"; | |
exit 1; | |
fi; | |
echo "Your password is needed to create the macOS Installer image."; | |
sudo -v; | |
echo "Creating temporary macOS Installer image..."; | |
hdiutil create -layout GPTSPUD -fs HFS+ -volname Install\ macOS -attach -type UDIF -size 8g /tmp/InstallmacOS.dmg; | |
sudo "$1/Contents/Resources/createinstallmedia" --nointeraction --volume /Volumes/Install\ macOS/; |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <utility> | |
#include <png++/png.hpp> | |
typedef std::vector<std::pair<size_t, size_t> > points_t; | |
bool verbose = false; | |
points_t get_points(size_t x, size_t y, png::uint_32 w, png::uint_32 h, int s) { |
function C8S1A(outHandler) { | |
var c = {}; | |
c.out = outHandler; | |
c.cache = new Array(256); | |
c.exec = function(f, argv) { | |
if (typeof this[f] != "function") {this.out("Invalid instruction " + typeof this[f]); return;} | |
var nv = new Array(); | |
var iter = 0; | |
var skip = -1; | |
//console.log(argv); |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <cstdint> | |
#include "exprtk.hpp" | |
typedef struct { | |
char sGroupID[4]; | |
uint32_t dwFileLength; | |
char sRiffType[4]; |
// compile with: g++ -o hexedit -std=c++11 hexedit.cpp -lncurses | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <string> | |
#include <utility> | |
#include <iomanip> | |
#include <stdint.h> | |
#include <math.h> | |
#include <ncurses.h> |
// Copyright Pololu Corporation. For more information, see http://www.pololu.com/ | |
#ifdef __arm__ | |
#include "PololuHD44780.h" | |
#define LCD_CLEAR 0x01 | |
#define LCD_SHOW_BLINK 0x0F | |
#define LCD_SHOW_SOLID 0x0E | |
#define LCD_HIDE 0x0C | |
#define LCD_CURSOR_L 0x10 | |
#define LCD_CURSOR_R 0x14 |
// requires libpng and png++ (brew install png++) (sudo apt-get install libpng++-dev) | |
// compile with g++ -o 8ci-png 8ci-png.cpp -lpng | |
// add -I/usr/local/include if on mac and errors out with "png++/png.hpp: no such file or directory" | |
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <png++/png.hpp> | |
//-----------8ci palette--------------- | |
std::vector<png::rgb_pixel> colors = { |
/* Requires C99 or C++14 or later */ | |
/* Chunklist file format */ | |
#include <stdint.h> | |
#define CHUNKLIST_MAGIC 0x4C4B4E43 | |
#define CHUNKLIST_FILE_VERSION_10 1 | |
#define CHUNKLIST_CHUNK_METHOD_10 1 | |
#define CHUNKLIST_SIGNATURE_METHOD_10 1 | |
#define CHUNKLIST_SIG_LEN 256 | |
#define CHUNKLIST_PUBKEY_LEN (2048/8) | |
#define SHA256_DIGEST_LENGTH 32 |