Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| # Inspired from https://stackoverflow.com/questions/32183975/how-to-print-all-the-properties-of-a-target-in-cmake | |
| # Get all propreties that cmake supports | |
| execute_process(COMMAND cmake --help-property-list OUTPUT_VARIABLE CMAKE_PROPERTY_LIST) | |
| # Convert command output into a CMake list | |
| STRING(REGEX REPLACE ";" "\\\\;" CMAKE_PROPERTY_LIST "${CMAKE_PROPERTY_LIST}") | |
| STRING(REGEX REPLACE "\n" ";" CMAKE_PROPERTY_LIST "${CMAKE_PROPERTY_LIST}") | |
| # Prints the given property of the given target. |
| #! /usr/bin/bash | |
| # Create a temporary directory for uniquely named object files | |
| mkdir -p temp_objs | |
| # Find all .o files in the output directory and copy them to the temp directory | |
| find obj/src/ -name "*.o" | sed '/\(_test\|mock\)/d' | while read -r obj_file; do | |
| # Create a unique name based on the file path (replacing '/' with '_') | |
| unique_name=$(echo "$obj_file" | sed 's/\//_/g') | |
| # Copy the file to the temp_objs directory with the unique name |
| #!/bin/bash | |
| # | |
| # hyperlink.sh | |
| # | |
| # Generate clickable hyperlinks to files in the terminal using OSC-8 standard ANSI. | |
| # | |
| # Usage: | |
| # hyperlink.sh [-t text] [-r relative_folder] [-s] [--help] file | |
| # | |
| # Many terminals that support OSC-8 hyperlinks including: |
The latest builds of Windows 10 and Windows 11 include a build-in SSH server and client that are based on OpenSSH. This means now you can remotely connect to Windows 10/11 or Windows Server 2019 using any SSH client, like Linux distros. Let's see how to configure OpenSSH on Windows 10 and Windows 11, and connect to it using Putty or any other SSH client.
OpenSSH is an open-source, cross-platform version of Secure Shell (SSH) that is used by Linux users for a long time. This project is currently ported to Windows and can be used as an SSH server on almost any version of Windows. In the latest versions of Windows Server 2022/2019 and Windows 11, OpenSSH is built-in to the operating system image.
| public class FontLoader { | |
| private enum Error: Swift.Error { | |
| case error(String) | |
| } | |
| /// Register fonts | |
| /// | |
| /// - Parameter fonts: Font names | |
| static func registerFonts(fonts: [String]) throws { | |
| let bundle = Bundle(for: FontLoader.self) |
| http://invisible-island.net/xterm/ | |
| XTerm Control Sequences | |
| Edward Moy | |
| University of California, Berkeley | |
| Revised by |
| #!/usr/bin/python | |
| # coding=utf-8 | |
| """Tool to analyze and display the contents of /proc/<pid>/maps""" | |
| import re | |
| import itertools | |
| import argparse | |
| from dataclasses import dataclass |
In PIX, Select Target Process => Launch Win32 and set the following 2 entries according to where Canary / Chrome is installed:
Then click on "Launch".
Important: you should close all your Canary / Chrome windows/processes before clicking on the "Launch" button!