Skip to content

Instantly share code, notes, and snippets.

View dudeuter's full-sized avatar
🦥
just hangin'

Samuel Deuter dudeuter

🦥
just hangin'
View GitHub Profile
@dudeuter
dudeuter / index.js
Last active January 19, 2024 20:42
symbolicate tombstone threads using ndk-stack
const fs = require('fs/promises');
const process = require('process');
const { exec } = require('child_process');
const [SYMBOLS_DIR, TOMBSTONE_FILE_NAME] = process.argv.slice(2);
const FILE_OPTIONS = { encoding: 'utf-8' };
const TOMBSTONE_THREAD_DELIMITER = '--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---\n';
const NDK_STACK_DELIMITER = '*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n';
function run(command) {
@dudeuter
dudeuter / index.js
Last active February 3, 2023 01:32
writing files node.js
const fs = require('fs');
const options = { encoding: 'utf-8' };
const writeStream = fs.createWriteStream('out2.txt', options);
const buffers = [];
let handled = 0;
function handler(error, buffer) {
if (error) {
@dudeuter
dudeuter / README.md
Last active December 15, 2022 01:40
node.js script to add `xmlns:tools` and fill/stroke to transparent assets

node.js script to add xmlns:tools and fill/stroke to transparent assets

dependencies:

node

installation:

copy this script