$ jq --arg env_name 'vscode-aws-cloudshell' --arg vpc_id 'vpc-XYZ' --arg sg_id 'sg-123' --arg subnet_id 'subnet-ABC' -n \
'.EnvironmentName = $env_name | .VpcConfig.VpcId = $vpc_id | .VpcConfig.SecurityGroupIds = [$sg_id] | .VpcConfig.SubnetIds = [$subnet_id]' | \
curl -s --location --request POST 'https://cloudshell.eu-central-1.amazonaws.com/createEnvironment' \
--header 'Content-Type: application/json' \
--user "$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY" \
-H "x-amz-security-token: $AWS_SESSION_TOKEN" \
--aws-sigv4 "aws:amz" \
source 'https://rubygems.org' | |
gem 'fog-aws', '~> 3.26' |
// ==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== |
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' \
{ | |
"policies": { | |
"DisableTelemetry": true, | |
"DisableFirefoxStudies": true, | |
"ManualAppUpdateOnly": true, | |
"AutofillAddressEnabled": false, | |
"AutofillCreditCardEnabled": false, | |
"DisableFormHistory": true, | |
"NetworkPrediction": false, | |
"OfferToSaveLogins": false, |
Install android-tools if you haven't already:
$ pkg update ; pkg upgrade
$ pkg install android-tools
Pair with remote or local ADB
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.
I am a user of an arm64 based Android smartphone. First of all let's install Termux application from Play Market.
--- /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 |
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.
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