Skip to content

Instantly share code, notes, and snippets.

View aiminickwong's full-sized avatar
💭
I may be slow to respond.

aiminick aiminickwong

💭
I may be slow to respond.
View GitHub Profile
HiSH Tunning Note
diff --git a/include/base/cef_atomicops.h b/include/base/cef_atomicops.h
index 96aebab..c8796c1 100644
--- a/include/base/cef_atomicops.h
+++ b/include/base/cef_atomicops.h
@@ -182,6 +182,8 @@ Atomic64 Release_Load(volatile const Atomic64* ptr);
#include "include/base/internal/cef_atomicops_mac.h"
#elif defined(COMPILER_GCC) && defined(ARCH_CPU_X86_FAMILY)
#include "include/base/internal/cef_atomicops_x86_gcc.h"
+#elif defined(COMPILER_GCC) && defined(__ARM_ARCH_ISA_A64)
+#include "include/base/internal/cef_atomicops_arm64_gcc.h"
@aiminickwong
aiminickwong / config-deb-i386.json
Created June 16, 2021 16:23 — forked from lyshie/config-deb-i386.json
Scratch Desktop (Scratch 3.0 Offline Editor) on GNU/Linux
{
"src": "/tmp/scratch-desktop/",
"dest": "/tmp/",
"arch": "i386",
"icon": "/tmp/scratch-desktop/resources/Icon.png",
"categories": [
"Education"
]
}
@aiminickwong
aiminickwong / rpi_camera_v4l2_ffmpeg.md
Created October 10, 2019 17:06 — forked from moritzmhmk/rpi_camera_v4l2_ffmpeg.md
using raspberry pi camera with ffmpeg (hardware accelerated)

Using Raspberry Pi Camera with ffmpeg

Capturing video from the rpi camera with ffmpeg can vary from less than 5% to 100% of the CPU (rpi zero) depending on ffmpeg using the hardware acceleration or not.

On many github issues one finds the suggestion of using h264_omx codec to use the gpu - but it does not ship with the default ffmpeg on Raspbian.

Instead I found that one can use the v4l2 driver provided by raspbian to get hardware accelerated h264 output. Also setting the video size will save one from using a (cpu) scale filter.

ffmpeg

capture h264 video from rpi camera

@aiminickwong
aiminickwong / gcc compiler optimization for arm systems.md
Created September 2, 2019 03:42 — forked from fm4dd/gcc compiler optimization for arm systems.md
GCC compiler optimization for ARM-based systems

GCC compiler optimization for ARM-based systems

2017-03-03 fm4dd

The gcc compiler can optimize code by taking advantage of CPU specific features. Especially for ARM CPU's, this can have impact on application performance. ARM CPU's, even under the same architecture, could be implemented with different versions of floating point units (FPU). Utilizing full FPU potential improves performance of heavier operating systems such as full Linux distributions.

-mcpu, -march: Defining the CPU type and architecture

These flags can both be used to set the CPU type. Setting one or the other is sufficient.

@aiminickwong
aiminickwong / Raspberry Pi 4 Arm64 Kernel Cross-Compile.md
Created September 2, 2019 03:40 — forked from G-UK/Raspberry Pi 4 Arm64 Kernel Cross-Compile.md
Building the Raspberry Pi 4 Arm64 Linux Kernel

Introduction

The objective of these instructions is to build a stock 64bit Linux Kernel for use on the Raspberry Pi 4B on a Debian x64 machine (Windows Subsystem for Linux in my case), and deploy on the Raspberry Pi.

Also included are some additional instructions for installation of 64bit Userland firmware to go with the 64bit Kernel.

Notes:

  • Transfer to Pi is using my NAS in this example, replace with shared drive/memory stick etc. as required.
    • (N: drive on Windows and /mnt/NAS on Linux in this example).
  • For a specific Kernel version replace the 4.19 with the wanted version in the git clone command.
  • Greater than 3GB RAM only currently available on Kernel 4.19
@aiminickwong
aiminickwong / README-anbox.Debian
Created August 28, 2019 17:01 — forked from monperrus/README-anbox.Debian
Content of /usr/share/doc/anbox/README.Debian
Anbox for Debian
----------------
* Setup
In order to run Android system inside container, you need two kernel
modules: ashmem_linux and binder_linux. Since Debian kernel 4.17, these
two modules are enabled. You can find theme at,
/lib/modules/`uname -r`/kernel/drivers/android/binder_linux.ko and
/lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko.
@aiminickwong
aiminickwong / widevine-flash_arm64.sh
Created August 25, 2019 16:01 — forked from teacupx/widevine-flash_arm64.sh
Fetches a ChromeOS image for ARM and extracts the Widevine and Flash binaries, saving them in a compressed archive
#!/bin/sh -eu
# Make sure we have wget or curl
available () {
command -v "$1" >/dev/null 2>&1
}
if available wget; then
DL="wget -O-"
DL_SL="wget -qO-"
elif available curl; then
@aiminickwong
aiminickwong / Free_Beyond_Compare.md
Created July 21, 2019 05:59 — forked from njleonzhang/Free_Beyond_Compare.md
Free Beyond Compare by unlimited trail

1 . goto beyond compare folder

 cd "/Applications/Beyond Compare.app/Contents/MacOS/"

2 . rename BCompare to BCompare.real

 mv BCompare BCompare.real
@aiminickwong
aiminickwong / after-install.md
Created May 26, 2019 15:13 — forked from shui/after-install.md
阿里云ECS安装后……

删除阿里云ECS登录欢迎信息

阿里云镜像修改了欢迎信息:

Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-105-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage