Skip to content

Instantly share code, notes, and snippets.

@avoidik
avoidik / script.js
Created September 23, 2024 13:54
Tampermonkey script to deal with the Amazon Q annoyances
// ==UserScript==
// @name Tame AmazonQ
// @namespace http://tampermonkey.net/
// @version 2024-09-23
// @description Tampermonkey script to suppress Amazon Q annoyances
// @author Anonymous
// @match https://docs.aws.amazon.com/*
// @match https://aws.amazon.com/*
// @grant none
// ==/UserScript==
@avoidik
avoidik / README.md
Last active September 20, 2024 10:59
QuickStart - SonarQube in Docker

Run SonarQube

$ git clone https://github.com/SonarSource/docker-sonarqube
$ cd docker-sonarqube
$ docker build -t sonarqube:9.9.4.87374 --build-arg SONARQUBE_VERSION=9.9.4.87374 -f 9/community/Dockerfile 9/community/
$ docker network create sonarqube
$ docker run --rm -i -t --name sonarqube -p 9000:9000 \
    --security-opt seccomp=unconfined --security-opt apparmor=unconfined \
    -e SONAR_SEARCH_JAVAADDITIONALOPTS='-Dbootstrap.system_call_filter=false' \
@avoidik
avoidik / policies.json
Last active October 9, 2024 07:55
Firefox policies
{
"policies": {
"DisableTelemetry": true,
"DisableFirefoxStudies": true,
"ManualAppUpdateOnly": true,
"AutofillAddressEnabled": false,
"AutofillCreditCardEnabled": false,
"DisableFormHistory": true,
"NetworkPrediction": false,
"OfferToSaveLogins": false,
@avoidik
avoidik / 1-termux-adb.md
Last active September 22, 2024 08:33 — forked from kairusds/1-termux-adb.md
Instructions for connecting Termux's android-tools adb to the current device via Wireless debugging and fixing phantom process killing

Install android-tools if you haven't already:

$ pkg update ; pkg upgrade
$ pkg install android-tools

Pair with remote or local ADB

@avoidik
avoidik / README.md
Last active July 21, 2024 12:23
XFCE4 on Termux

XFCE4 on Termux

In this short guide I will explain how to run Ubuntu with Xfce4 desktop environment on your Android smartphone by using Termux-X11 in an isolated environment without root privileges. With minor adjustments this guide should work for Debian too (just replace ubuntu by debian).

Note: Neither of options won't support systemd. Moreover, Firefox on Ubuntu is distributed as a snap package, which in turn does not work without systemd.

Host system

I am a user of an arm64 based Android smartphone. First of all let's install Termux application from Play Market.

@avoidik
avoidik / openssl.cnf.diff
Created June 29, 2024 15:06 — forked from rdh27785/openssl.cnf.diff
diff -uN /etc/ssl/openssl.cnf\~original /etc/ssl/openssl.cnf for Nextcloud with OpenSSL 3
--- /etc/ssl/openssl.cnf~original 2022-03-16 08:35:51.000000000 +0000
+++ /etc/ssl/openssl.cnf 2022-05-04 02:37:30.336530711 +0000
@@ -56,6 +56,7 @@
# List of providers to load
[provider_sect]
default = default_sect
+legacy = legacy_sect
# The fips section name should match the section name inside the
# included fipsmodule.cnf.
# fips = fips_sect
@avoidik
avoidik / README.md
Created June 14, 2024 09:35
Run Ubuntu ARM on Mac M1 or similar

How to run Ubuntu on Mac

We're going to run Ubuntu (ARM) on Mac M1 (ARM) using the native binary translation, thanks to up-to-date version of qemu which has native hardware support.

Prerequisites

Install qemu and required tools (coreutils - we need truncate/gtruncate, dd/gdd CLI tools, samba - to share files between host and guest VM, yq - to insert SSH public key into the cloud-init configuration).

$ brew install qemu coreutils samba yq
@avoidik
avoidik / README.md
Last active October 3, 2024 11:35
Run Windows 11 IoT ARM on Mac M1 or similar

How to run Windows on Mac

We're going to run Windows 11 IoT (ARM) on Mac M1 (ARM) using the native binary translation, thanks to up-to-date version of qemu which has native hardware support.

Prerequisites

Install qemu and required tools (coreutils - we need truncate/gtruncate, dd/gdd CLI tools, samba - to share files between host and guest VM).

$ brew install qemu coreutils samba
@avoidik
avoidik / README.md
Last active July 16, 2024 22:26
Building nfstrace on Amazon Linux 2023

How to compile nfstrace

Prerequisites

Make sure we're using Amazon Linux

$ cat /etc/amazon-linux-release
Amazon Linux release 2023.4.20240429 (Amazon Linux)
@avoidik
avoidik / README.md
Created May 5, 2024 21:29
Jira in Docker on bare AWS EC2 instance

Jira on AWS

Prerequisites

  • VPC with two public subnets
  • A bunch of security groups (WAN to ALB, ALB to EC2, EC2 to RDS, RDS to EC2, EC2 to WAN)
  • ALB and Target Group (Health check on / for 200,302)
  • Route53 Hosted Zone (Public) and A-record to ALB
  • ACM certificate (DNS validation)
  • RDS Instance with Subnet group