This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <ctype.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--start-- | |
[0]:remove old savefiles | |
[1]:ID:1: BED3FD1457FFF6CB7B732965878725F26F9094C45730E6F4FAF9167859B1463F070C886D246E | |
[2]:ID:2: E0A6D8740AEC95E2F25AC085972225113EA759BF58C9CA651BD0AD788EB6863277E085299E61 | |
[1]:tox num_friends:0 | |
[1]:tox num_groups:0 | |
[2]:tox num_friends:0 | |
[2]:tox num_groups:0 | |
[1]:bootstrapping ... | |
[1]:bootstrapping done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doc: | | |
Toxcore save file parser (wip) | |
Copyright https://github.com/Green-Sky | |
meta: | |
id: tox_save | |
license: GPL-3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void gc_save_pack_group(const GC_Chat *chat, Bin_Pack *bp) | |
{ | |
if (chat->numpeers == 0) { | |
LOGGER_ERROR(chat->log, "Failed to pack group: numpeers is 0"); | |
return; | |
} | |
bin_pack_array(bp, 7); | |
// -------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
nodes_url="https://nodes.tox.chat/json" | |
file="n.json" | |
latest_toxcore_version_text="1000002018" | |
ok_toxcore_version="1000002013 1000002014 1000002015 1000002016 1000002017" | |
rm -f "$file" | |
wget "$nodes_url" -O "$file" >/dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <ctype.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <ctype.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
threads=5 | |
quiet=1 | |
function sanitize_file_name { | |
echo -n "$1" | perl -pe 's/[\?\[\]\/\\=<>:'"'"';,"&\$#*()|~`!{}%+]//g;' -pe 's/[\r\n\t -]+/_/g;' | |
} | |
stty -echoctl # hide ^C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Replaying 'c-toxcore/testing/fuzzing/bootstrap_fuzz_test_corpus/tools-toktok-fuzzer-corpus-bootstrap_fuzzer-d1165039f4d6747b12859746366153c7e5af266d' (899 bytes): OK | |
Replaying 'c-toxcore/testing/fuzzing/bootstrap_fuzz_test_corpus/tools-toktok-fuzzer-corpus-bootstrap_fuzzer-d3d5fbbccefead841645e2c479161f8280b637c7' (671 bytes): OK | |
Replaying 'c-toxcore/testing/fuzzing/bootstrap_fuzz_test_corpus/tools-toktok-fuzzer-corpus-bootstrap_fuzzer-d42b9f8ef1b1596abfa92c6fcdfa67f2e9d17f49' (12 bytes): OK | |
Replaying 'c-toxcore/testing/fuzzing/bootstrap_fuzz_test_corpus/tools-toktok-fuzzer-corpus-bootstrap_fuzzer-d73a126ff33d73fdd5e56042c13c33abd062e767' (132 bytes): OK | |
Replaying 'c-toxcore/testing/fuzzing/bootstrap_fuzz_test_corpus/tools-toktok-fuzzer-corpus-bootstrap_fuzzer-dabe743f8cc73f360645737b7415ae7192e69cb5' (1695 bytes): OK | |
Replaying 'c-toxcore/testing/fuzzing/bootstrap_fuzz_test_corpus/tools-toktok-fuzzer-corpus-bootstrap_fuzzer-dce186c75529a8f45f200a3ddf9b1be22b82f872' (111 bytes): OK | |
Replaying 'c-toxcore/testing |