Skip to content

Instantly share code, notes, and snippets.

View azhe403's full-sized avatar
๐Ÿ˜
On Error Resume Next

Azhe Kun azhe403

๐Ÿ˜
On Error Resume Next
View GitHub Profile
:: Author: @mimiru
@echo off
setlocal
:: Determine the path to floorp.exe
set "FLOORP_PATH=%~dp0floorp.exe"
:: Convert the path to use double backslashes for the registry
set "FLOORP_PATH=%FLOORP_PATH:\=\\%"
@fakhrulhilal
fakhrulhilal / dotnet-nodejs.Dockerfile
Created January 16, 2023 08:30
Docker image for .NET with nodejs
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
ENV ASPNETCORE_URLS "https://+,http://+"
ENV ASPNETCORE_HTTPS_PORT 443
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
ENV NODE_VERSION 18.x
@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active May 4, 2025 06:57
MIUI 13/14 bloatware apps, updated at 20240816

ๅฏนไบŽๆ‰€ๆœ‰ๅบ”็”จ๏ผŒไธๅปบ่ฎฎ็›ดๆŽฅๅˆ ้™ค๏ผŒไฝฟ็”จadb shell pm disable-user package-name็ฆ็”จๅณๅฏ๏ผŒๆ–นไพฟๅ‡บ้—ฎ้ข˜ๆ—ถๆขๅคใ€‚

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Donโ€™t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

using System;
using System.Linq;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
namespace AutoInject
{
public enum InjectType
{
Singleton,
/*
1) Open https://popcat.click
2) Open console (F12)
3) Insert code & run
*/
var event = new KeyboardEvent('keydown', {
key: 'g',
ctrlKey: true
@ppoffice
ppoffice / README.md
Last active May 8, 2025 07:48
Install Visual Studio Code (actually code-server) on Android
  1. Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.

  2. Update system packages in Termux:

    $ pkg update -y
@lauw
lauw / Business.cs
Last active April 3, 2022 10:39
ReboDb mapping helper to support different casing and default Table/Column attributes
using System.ComponentModel.DataAnnotations.Schema;
namespace UserApi
{
[Table("businesses")]
public class Business
{
[Column("id")]
@litetex
litetex / Description.md
Last active April 8, 2025 08:12
Serilog (C#): How to get current MethodName, FileName/Path and LineNumber without reflection

Serilog (C#): How to get the current MethodName, FileName/Path and LineNumber without reflection

This is a simple setup for reflectionless logging with serilog using caller information (and a single static class).

See also https://stackoverflow.com/a/46905798

Log.cs

Create your own Log.cs in your Root-Namespace (you can use the class below).

This class is required to detect where the call is coming from; it uses Caller-Information to speed up the program execution, because the attributes are resolved at compile-time.

@abdilahrf
abdilahrf / hosts
Last active May 16, 2024 00:04
Blokir hostname INDIHOM* ke localhost kita biar kapok, untuk linux tambahin di file /etc/hosts & windows /System32/drivers/etc/hosts
# INDIHOM*
127.0.0.1 x-tags.net
127.0.0.1 a01.uadexchange.com
127.0.0.1 cdn.uzone.id
127.0.0.1 cdn3.uzone.id
127.0.0.1 cfs.uzone.id
127.0.0.1 csf.uzone.id
127.0.0.1 d01.notifa.info
127.0.0.1 d31qbv1cthcecs.cloudfront.net
127.0.0.1 d5nxst8fruw4z.cloudfront.net
@greeflas
greeflas / install-toolbox.sh
Last active March 5, 2025 18:29
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/
#!/bin/bash
set -e
if [ -d ~/.local/share/JetBrains/Toolbox ]; then
echo "JetBrains Toolbox is already installed!"
exit 0
fi
echo "Start installation..."