- XDebug v3+ inside Docker (e.g. php:7.3-apache Docker image)
- Running Docker v20.10+
- VSCode with PHP Debug Extension (Felix Becker)
- Using Docker Compose for orchestration
Original stackoverflow post here
- iTerm2 build 1.0.0.20130302 has an preference which enables it to capture scrollback even when a so-called hard status line is present:
- https://i.stack.imgur.com/QS1vB.png
- Preferences -> Terminal -> check "Save lines to scrollback when an app status bar is present"
- maybe also check "Save lines to scrollback in alternate screen mode"
I have a pet project I work on, every now and then. CNoEvil.
The concept is simple enough.
What if, for a moment, we forgot all the rules we know. That we ignore every good idea, and accept all the terrible ones. That nothing is off limits. Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C?
Android provide LocalServerSocket and LocalSocket to create Unix domain sockets for local interprocess communication (IPC). Unix socket address can behave in three types[1],
- pathname
- unnamed
- abstract
LocalServerSocket provide two public constructors for create socket in Linux abstract namespace[2] and create socket using file descriptor that's already been created and bound[3].
Create LocalServerSocket using [FileDescriptor](https://docs.oracle.com/javase/7/docs/api/j
adb push ~/android-sdk-linux/ndk-bundle/prebuilt/android-<arch>/gdbserver/gdbserver /data/local/tmp
adb shell "chmod 777 /data/local/tmp/gdbserver"
adb shell "ls -l /data/local/tmp/gdbserver"
adb forward tcp:1337 tcp:1337
| #include <iostream> | |
| // get_type<i, Ts...>::type -> Ts[i] (Compile error of i >= length(Ts)) | |
| template<size_t i, typename T, typename... Ts> | |
| struct get_type { | |
| typedef typename get_type<i - 1, Ts...>::type type; | |
| }; | |
| template<typename T, typename... Ts> |
| package com.example.test; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import java.util.Set; | |
| import static android.content.Intent.URI_INTENT_SCHEME; |
| /* | |
| * Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved. | |
| * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
| * | |
| * This code is free software; you can redistribute it and/or modify it | |
| * under the terms of the GNU General Public License version 2 only, as | |
| * published by the Free Software Foundation. Oracle designates this | |
| * particular file as subject to the "Classpath" exception as provided | |
| * by Oracle in the LICENSE file that accompanied this code. | |
| * |
| import android.content.Context; | |
| import android.util.Log; | |
| import com.mixpanel.android.mpmetrics.MixpanelAPI; | |
| import org.json.JSONException; | |
| import org.json.JSONObject; | |
| import java.text.DateFormat; | |
| import java.text.SimpleDateFormat; |