Skip to content

Instantly share code, notes, and snippets.

@mtijanic
mtijanic / rmmsg.c
Created June 10, 2024 11:39
Control OpenRM's log verbosity at runtime
#include <sys/ioctl.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// ctrl0000system.h
#define NV0000_CTRL_CMD_SYSTEM_DEBUG_RMMSG_CTRL (0x121U)
#define NV0000_CTRL_SYSTEM_DEBUG_RMMSG_SIZE 512U
@yadutaf
yadutaf / kube-dashboard.docker.compose.yaml
Created March 18, 2024 23:21
Run Kubernetes dashboard locally
# Run Kubernetes dashboard locally - no install in the cluster
#
# Usage:
#
# 1. Make sure you have Docker compose >= v2.23.1 (required for inline configuration files)
#
# 2. Download this Gist as 'kube-dashboard.docker.compose.yaml'
#
# 3. Run Docker compose:
# docker compose -f kube-dashboard.docker.compose.yaml up \
@eylenburg
eylenburg / msoffice_in_linux.md
Last active December 6, 2025 05:53
Installing Microsoft Office in Linux

Step by step guide: How to install Microsoft Office in any Linux distribution

There are multiple options how to install MS Office on Linux.

VM-based - Integrate Windows apps running in a Windows virtual machine as native-looking in Linux

  1. LinOffice - Microsoft Office Launcher for Linux, my own fork of Winapps which is focused on only running Microsoft Office, with some Office-specific improvements over Winapps and a fully automated setup. Eventually I would like to create a GUI for it. Decribed below
  2. Winapps, based on KVM, QEMU, Docker/Podman and FreeRDP. Still actively maintained (getting Github commits). Decribed below
  3. Cassowary, based on KVM, QEMU, libvirt/virt-manager, and FreeRDP. Last release in Feb 2022 and seems to be abandoned.
@enihsyou
enihsyou / 获取移动光猫H2-2管理员密码.md
Last active July 18, 2025 14:39
获取移动光猫 H2-2 管理员密码 ver.2022-04

长话短说,直接列出操作方法。求解过程用到的阅读链接放在最后

适用型号

设备名称:吉比特无源光纤接入用户端设备(GPON ONU)
设备类型:中国移动智能家庭网关 类型二
设备型号:H2-2
生产日期:2021/03

[!IMPORTANT]

@PuKoren
PuKoren / recompile-and-run.sh
Last active May 31, 2024 15:18
Recompile APK + Sign with apktool
# You must first install apktool (https://github.com/iBotPeaches/Apktool) and android SDK
# and decompile apk using it
# apktool d -rf my-app.apk
# then generate a key for sign in:
# keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
rm signed-app.apk
apktool b -f -d com.myapp
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore com.myapp/dist/com.myapp.apk alias_name
zipalign -v 4 com.myapp/dist/com.myapp.apk signed-app.apk