Skip to content

Instantly share code, notes, and snippets.

View wiktor-k's full-sized avatar
🇺🇦
Support Ukraine!

Wiktor Kwapisiewicz wiktor-k

🇺🇦
Support Ukraine!
View GitHub Profile
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments)).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (sent[0] === 1) throw sent[1]; return sent[1]; }, trys: [], stack: [] }, sent, f;

Keybase proof

I hereby claim:

  • I am wiktor-k on github.
  • I am wiktor (https://keybase.io/wiktor) on keybase.
  • I have a public key whose fingerprint is 6539 09A2 F0E3 7C10 6F5F AF54 6C88 57E0 D8E8 F074

To claim this, I am signing this object:

const { sign } = require('tweetnacl');
var PORT = 2002 ;
var HOST = 'roughtime.cloudflare.com';
function unbase64(s) {
return Uint8Array.from(Buffer.from(s, 'base64'))
}
function bytes(s) {
@wiktor-k
wiktor-k / Crypto.cpp
Created February 22, 2020 21:39 — forked from anidean/Crypto.cpp
C++ Wrapper functions for sequoia
// Crypto.hpp
//////////////////////////////
#include "spdlog/spdlog.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/sinks/rotating_file_sink.h"
#define SPDLOG_STR_H(x) #x
#define SPDLOG_STR_HELPER(x) SPDLOG_STR_H(x)
#define DEBUG(...) spdlog::log(spdlog::level::debug, "[" + fmt::format(__FILE__) + "::" + SPDLOG_STR_HELPER(__LINE__) + "::" + std::string(__func__) + "] " + fmt::format(__VA_ARGS__))
#define INFO(...) spdlog::log(spdlog::level::info, "[" + fmt::format(__FILE__) + "::" + SPDLOG_STR_HELPER(__LINE__) + "::" + std::string(__func__) + "] " + fmt::format(__VA_ARGS__))
diff -r bbfcd786cc78 mod_csi_battery_saver/mod_csi_battery_saver.lua
--- a/mod_csi_battery_saver/mod_csi_battery_saver.lua Thu Apr 16 17:34:53 2020 +0200
+++ b/mod_csi_battery_saver/mod_csi_battery_saver.lua Sat Apr 18 11:22:07 2020 +0200
@@ -103,6 +103,9 @@
-- chat markers (XEP-0333) are important, too, because some clients use them to update their notifications
if stanza:child_with_ns("urn:xmpp:chat-markers:0") then return true; end;
+ -- XEP-0353: Jingle Message Initiation incoming call messages
+ if stanza:child_with_ns("urn:xmpp:jingle-message:0") then return true; end;
+
console.log('nothing');