Skip to content

Instantly share code, notes, and snippets.

@qua3k
qua3k / everforest_dark.sublime-color-scheme
Last active September 15, 2022 02:14
Everforest Dark color scheme for Sublime Text 3.
// this looks nice
{
"name": "Everforest Dark",
"variables":
{
"fg": "#d3c6aa",
"bg0": "#2b3339",
"bg1": "#323c41",
"mono-1": "#859289",
/* mergesort.c - a merge sort algorithm in C. */
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define compare_double(x, y) (fabs(x-y) < DBL_EPSILON)
struct testing {
If we look at where buildSerial is used you can see it's passed into
thread.bindApplication -- looking at the defined method in ActivityThread.java
reveals that it's just a wrapper around the native IPC call H.BIND_APPLICATION,
which is handled by handleBindApplication. There was some previous code to set
Build.SERIAL added in
https://android.googlesource.com/platform/frameworks/base/+/37e43275eeee064947f1b448cdf129bea39cf918
but that's since been removed in
https://android.googlesource.com/platform/frameworks/base/+/c2daefeba5e70404be794bcf6def00ffe7bce844%5E%21
(https://github.com/GrapheneOS/platform_frameworks_base/commit/c2daefeba5e70404be794bcf6def00ffe7bce844)
compile with -mbranch-protection=standard -march=armv8.3-a
package fallacy
import (
"errors"
"log"
"sync"
"sync/atomic"
"maunium.net/go/mautrix"
"maunium.net/go/mautrix/event"

fetching languages downloads

GET https://translate.googleapis.com/translate_a/l?client=chrome&hl=en&key=dummytoken HTTP/2.0

response

{
    "al": {},
    "sl": {
@qua3k
qua3k / matrix_ban.ts
Last active November 24, 2021 17:07
Ban multiple users at once
// Copyright 2021 qua3k All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@qua3k
qua3k / 0000_README_PartitionAlloc.md
Last active March 17, 2022 19:04
PartitionAlloc

PartitionAlloc

This document tracks the progress of our PartitionAlloc mitigations.

To-do

  • We need to enable cookies around each allocation to absorb small overflows. They must be random and may optionally add a NUL byte, trading off entropy to terminate C string overflows.
  • The cookie value should be randomized per allocation rather than

You can even change the URLs of "Google URLs" with some switches - @lynn-stephenson

  • --google-apis-url
  • --google-base-url
  • --google-url
  • --autofill-assistant-url
  • --autofill-server-url
  • --cloud-print-url
  • --connectivity-check-url