set pager=1
cat /boot/grub/grub.cfg
set root=(hd0,gpt2)
linux /boot/vmlinuz-5.4.0-45-generic root=UUID=0ad8dbaf-6d97-4836-8fa5-612c7e5021c6 ro recovery nomodeset
initrd /boot/initrd.img-5.4.0-45-generic
This file contains 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 | |
# vim:filetype=bash: | |
readonly _D="$(dirname "$(readlink -f "$0")")" && cd $_D | |
ansi_colors() | |
{ | |
esc="" | |
black="$esc[30m"; red="$esc[31m"; green="$esc[32m" |
Install winget
from the .appxbundle at https://github.com/microsoft/winget-cli/releases
From PowerShell:
winget install "Windows Terminal"
winget install --force debian
debian.exe # one-time setup for your username/password
This file contains 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
### | |
# MSFT Bonsai | |
# Copyright 2020 Microsoft | |
# This code is licensed under MIT license (see LICENSE for details) | |
# Moab Tutorial 1 | |
# This introductory sample demonstrates how to teach a policy for | |
# controlling a ball on the plate of a "Moab" hardware device. |
This file contains 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 | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# https://gist.github.com/ryin/3106801#file-tmux_local_install-sh | |
# Assumptions: | |
# sudo apt-get install -y build-essential libssl-dev automake |
This file contains 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
FROM alpine | |
RUN apk update | |
RUN apk add git openssh zsh nano vim less mandoc man-pages curl wget coreutils binutils findutils grep bash | |
RUN apk add build-base gcc openssl | |
RUN git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k | |
WORKDIR /root | |
#RUN echo "source powerlevel10k/powerlevel10k.zsh-theme" > .zshrc | |
RUN curl -sfL git.io/antibody | sh -s - -b /usr/local/bin | |
RUN mkdir .zsh && git clone git://github.com/marlonrichert/zsh-snap .zsh/zsh-snap |
This file contains 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
From @KarlTheFog: | |
San Francisco glossary: | |
cold = 65 degrees or under | |
warm = 68 degrees or over | |
summer = October | |
winter = July | |
happiness = burrito |
This file contains 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/sh | |
# | |
# Don't change the following lines unless you know what you are doing | |
# They execute the config options starting with 'do_' below | |
grep -E -v -e '^\s*#' -e '^\s*$' <<END | \ | |
sed -e 's/$//' -e 's/^\s*/\/usr\/bin\/raspi-config nonint /' | bash -x - | |
# | |
############# INSTRUCTIONS ########### | |
# | |
# Change following options starting with 'do_' to suit your configuration |
Problem: When running a conda environment and opening tmux on macOS, a utility called path_helper
is run again. Essentially, the shell is initialized twice which messes up the ${PATH}
so that the wrong Python version shows up within tmux
.
If using bash, edit /etc/profile
and add one line. (For zsh
, edit /etc/zprofile
)
...
NewerOlder