$ 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" \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# This script is inspired by following scripts: | |
# * https://serverfault.com/a/887402 | |
# * https://github.com/dmrub/kube-utils/blob/master/kube-rsync | |
set -eo pipefail | |
if [[ -z "$KUBECTL_RSYNC_RSH" ]]; then | |
[[ -n "$KUBE_CONTEXT" ]] && echo >&2 "* Found \$KUBE_CONTEXT = $KUBE_CONTEXT" | |
[[ -n "$POD_NAMESPACE" ]] && echo >&2 "* Found \$POD_NAMESPACE = $POD_NAMESPACE" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'fog-aws', '~> 3.26' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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' \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /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 |
NewerOlder