| ns/op | op/s | MdAPE | benchmark
|--------------------:|--------------------:|--------:|:----------------------------------------------
| 3.03 | 329,748,861.72 | 3.2% | `(a + b) / 2`
| 3.01 | 332,744,047.95 | 4.1% | `a + ((b - a) / 2)`
| 3.01 | 331,690,526.09 | 2.3% | `A/2 + B/2 + (A & B & 1)`
| 3.13 | 318,986,706.11 | 2.3% | `std::midpoint()`
Pick a scylla version: https://hub.docker.com/r/scylladb/scylla/tags
This tuturial was created with 3.1.0.rc9 on Linux
docker run --name scylla-si -d scylladb/scylla:3.1.0 --smp 2 --memory 4G
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Usage: sudo ./restore_functionality.sh | |
| #ps aux | grep sentinel | awk -F " +" '{print $2}' | xargs kill | |
| while true; do | |
| launchctl kill SIGKILL system/com.crowdstrike.falcond | |
| launchctl kill SIGKILL system/com.crowdstrike.userdaemon | |
| launchctl kill SIGKILL system/com.sentinelone.sentineld | |
| launchctl kill SIGKILL system/com.sentinelone.sentineld-helper |
This file contains hidden or 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
| // FileSaver.min.js | |
| (function(a,b){if("function"==typeof define&&define.amd)define([],b);else if("undefined"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){"use strict";function b(a,b){return"undefined"==typeof b?b={autoBom:!1}:"object"!=typeof b&&(console.warn("Depricated: Expected third argument to be a object"),b={autoBom:!b}),b.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}function c(b,c,d){var e=new XMLHttpRequest;e.open("GET",b),e.responseType="blob",e.onload=function(){a(e.response,c,d)},e.onerror=function(){console.error("could not download file")},e.send()}function d(a){var b=new XMLHttpRequest;return b.open("HEAD",a,!1),b.send(),200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent("click"))}catch(c){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f="object"==typeof |
Remove SentinelOne agent from Mac
- Boot into Recovery Mode by holding Cmd+R during reboot
- Open Terminal from top menubar
- Run
/Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utilityto open Disk Utility - If your startup disk is encrypted, use Disk Utility to mount it
- In Terminal, run
chroot /Volumes/Macintosh\ HD - Execute the deletion commands or script
This file contains hidden or 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
| knowledge dump on container runtimes | |
| KataContainers | |
| - image coupled with kernel | |
| - light vm layer | |
| - can run in nested virturalization environments if hardware supports and you can enable it in bios (ex. only bare metal EC2 instances, limits many cloud providers) | |
| - slower startup time | |
| - OCI compliant | |
| - previously known as ClearContainers by Intel |
This file contains hidden or 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
| =begin | |
| This script attempts to reproduce poor glibc allocator behavior within Ruby, leading | |
| to extreme memory fragmentation and process RSS bloat. | |
| glibc allocates memory using per-thread "arenas". These blocks can easily fragment when | |
| some objects are free'd and others are long-lived. | |
| Our script runs multiple threads, all allocating randomly sized "large" Strings between 4,000 | |
| and 40,000 bytes in size. This simulates Rails views with ERB creating large chunks of HTML | |
| to output to the browser. Some of these strings are kept around and some are discarded. |
This file contains hidden or 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
| #!/usr/bin/python | |
| # to try this you'll need to edit in the name of your ruby binary and install bcc-tools | |
| # bcc installation instructions are at https://github.com/iovisor/bcc/blob/master/INSTALL.md | |
| from __future__ import print_function | |
| from bcc import BPF | |
| from time import sleep | |
| import os | |
| # load BPF program |
Первоначально задача возникла в https://t.me/haskellru и формулировалась примерно так: почему следующий код на Haskell
rr is a great debugging tool. it records a trace of a program's execution, as well as the results of
any syscalls it executes, so that you can "rewind" while you debug, and get deterministic forward and reverse
instrumented playback. it works with rust, but by default if you try it out, it could be pretty ugly when you
inspect variables. if this bothers you, configure gdb to use a rust pretty-printer
rr is probably in your system's package manager.
