#Use pprof debug docker daemon
# | |
# How to get rid of the locale warning on raspberry pi | |
# | |
sudo sed -i "s/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g" -i /etc/locale.gen | |
sudo locale-gen en_US.UTF-8 | |
sudo update-locale en_US.UTF-8 | |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 |
I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.
For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.
Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.
# Description: Boxstarter Script | |
# Author: Jess Frazelle <[email protected]> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
- Edit the
/etc/ssh/sshd_config
file by running the commandsudo vi /etc/ssh/sshd_config
and do the following- Change
Port
to 2222 (or any other port above 1000) - Change
PasswordAuthentication
to yes. This can be changed back to no if ssh keys are setup.
- Change
- Restart the ssh server:
sudo service ssh --full-restart
- With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off. Use this command to turn it on:
The AWS Command Line Interface tool from Amazon (for macOS available here on Homebrew) makes it possible to login to AWS through a SSO (Single Sign-On) identity provider such as Okta. However, if you login via "aws sso login
" the AWS credentials file (located at ~/.aws/credentials
) is not updated, this is a problem for tools/libraries that rely on that file.
This script is a wrapper around aws sso login
that also updates the .aws/credentials
file. It only requires AWS CLI and Python 3 to run.
Make sure your .aws/config
file has a section (or multiple sections) that have SSO configuation options.
For example:
# watch the demo at https://youtu.be/cGUNf1FMNvI | |
# | |
# customize these variables | |
# | |
DEFAULT_PROFILE='default' | |
DEFAULT_REGION='us-east-1' | |
DEFAULT_OUTPUT='json' | |
SSO_START_URL='https://your-sso.awsapps.com/start' | |
SSO_REGION='us-east-1' | |
SSO_ACCOUNT_ID='123456789012' |
# SPARC Agentic Development Rules | |
Core Philosophy | |
1. Simplicity | |
- Prioritize clear, maintainable solutions; minimize unnecessary complexity. | |
2. Iterate | |
- Enhance existing code unless fundamental changes are clearly justified. |