Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #!/bin/sh | |
| # | |
| # This is a simple alternative to /usr/bin/lsb_release which | |
| # doesn't require python. | |
| # | |
| # If /etc/os-release exists then we use that to output data | |
| # in a compatible format to the original lsb_release utility. | |
| # | |
| # I consider this script trivial enough to be in the public-domain, | |
| # but any patches or suggestsions will be welcome. |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <libproc.h> | |
| #include <mach/mach.h> | |
| bool | |
| has_modifications(struct task_extmod_info *info) | |
| { | |
| if ((info->extmod_statistics.thread_creation_count > 0) || | |
| (info->extmod_statistics.thread_set_state_count > 0)) { |
Last updated: August 2019
I made this for my answer to a question on Arqade/Gaming Stack Exchange.
| Enchantment | Levels | Bookshelves |
|---|---|---|
| Aqua Affinity I | 0 | 0 |
| Bane of Arthropods I | 5 | 3 |
For what it's worth (and with all the usual disclaimers about potentially making your mac unstable by disabling system services), here's some commands that will manipulate this service and services like it. Note the $UID in the command, that's just a bash shell variable that will resolve to some number. That's your numeric UID. You just run these commands from a Terminal command line. No special privileges needed.
If you want to disable it entirely, the first command stops it from respawning, and the second kills the one that is currently running:
launchctl disable gui/$UID/com.apple.photoanalysisd
launchctl kill -TERM gui/$UID/com.apple.photoanalysisd
(If you kill it without disabling it will die, but a new one will respawn and pick up where the old one left off)
| import inspector from "inspector"; | |
| const url2scriptid = new Map<string, string>(); | |
| const session = new inspector.Session(); | |
| session.connect(); | |
| setupDebugger(); | |
| function setupDebugger() { |
| # IDA (disassembler) and Hex-Rays (decompiler) plugin for Apple AMX | |
| # | |
| # WIP research. (This was edited to add more info after someone posted it to | |
| # Hacker News. Click "Revisions" to see full changes.) | |
| # | |
| # Copyright (c) 2020 dougallj | |
| # Based on Python port of VMX intrinsics plugin: | |
| # Copyright (c) 2019 w4kfu - Synacktiv |
Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.
To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:
\u001b[{format};{color}m
| @echo off | |
| wsl exit | |
| powershell -Command "Set-NetAdapterLso -Name 'vEthernet (WSL)' -IPv4Enabled $False -IPv6Enabled $False" |