- The topic discussion is stated in agenda.
- The conversation is written down in real time and all participants can see the record. The arguments in the recod are attributed.
- If the new topic is added or the old one is changed and it is accepted, it is reflected in the agenda.
- There is a limit on the total time of discussion
- Each argument must follow the same format: claim, reasoning, consequence. Example: "I think X because Y, so the conclusion is Z (alternatively: we should do Z)". The format must make it clear what exactly are X, Y and Z in the specific argument.
- If someone critiques the idea, he must provide the alternative.
- If unrelated point is made, it is recored for later or separate discussion.
- The decision making criteria must be agreed before starting the discussion.
- The discussion must end with actionable takeaways. Each action item must be assigned to responsible person.
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
{ | |
"foreground": "#CCCCCC", | |
"background": "#0C0C0C", | |
"cursorColor": "#FFFFFF", | |
"black": "#2E3436", | |
"blue": "#0037DA", | |
"brightBlack": "#555753", | |
"brightBlue": "#3B78FF", | |
"brightCyan": "#34E2E2", | |
"brightGreen": "#8AE234", |
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
# Usage: | |
# (gdb) source xxd.py | |
# (gdb) hex-dump var 0x100 | |
# In vscode: | |
# -exec source xxd.py | |
# -exec hex-dump var 0x100 | |
import gdb | |
from curses.ascii import isgraph |
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
for i in range(0, 256): | |
print(f"\033[38;5;{i}m[{i}]", end="") | |
print() |
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
<script setup> | |
import { defineProps } from 'vue' | |
import { useRouter } from 'vue-router' | |
const props = defineProps({ | |
to: [String, Object] | |
}) | |
const router = useRouter() | |
const click = () => { |
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
watch -n 0.3 -d -c 'mysql -u <user> <db> --execute="SHOW ENGINE INNODB STATUS" |sed '"'"'s/\\n/\n/g'"'"'|grep "LATEST DETECTED DEADLOCK" -A 2' |
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 | |
# @lint-avoid-python-3-compatibility-imports | |
# | |
# execsnoop Trace new processes via exec() syscalls. | |
# For Linux, uses BCC, eBPF. Embedded C. | |
# | |
# USAGE: execsnoop [-h] [-t] [-x] [-n NAME] | |
# | |
# This currently will print up to a maximum of 19 arguments, plus the process | |
# name, so 20 fields in total (MAXARG). |
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
function logStreamEvents (emitter, name) { | |
var oldEmit = emitter.emit | |
emitter.emit = function () { | |
const event = arguments[0] | |
if (!(['data', 'pause', 'readable', 'drain'].includes(event))) console.error('on "%s" event "%s"', name, event) | |
oldEmit.apply(emitter, arguments) | |
} | |
} |
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
# Setup DB | |
# ======== | |
# | |
DROP TABLE IF EXISTS Devices; | |
DROP TABLE IF EXISTS LockRequests; | |
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE; | |
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
unsigned int data; | |
asm("movw r0, #0x8475"); | |
asm("movt r0, #0"); | |
asm("ldr r4, [r0, #0]"); | |
asm("mov %0, r4" : "=r"(data)); | |
printf("read unaligned data: %x\n", data); |