Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.
Action | Windows/Linux | macOS |
---|---|---|
New window | Ctrl+Shift+N | Cmd+N |
Close window | Alt+F4 | Cmd+Shift+W |
I'm writing this because I found it harder than expected, but actually is super easy.
Shift + c
, you can select more than oneShift + v
, will ask for confirmation.NOTE
On older versions, you simply had to press c
and v
without Shift
npm uses Semantic Versioning. Given a version number MAJOR.MINOR.PATCH
, increment the:
ag foo
ag foo path/to/directory
ag -l foo
ag -i -o FOO
ag foo -G bar
More recent resolution: | |
1. cd ~/../../etc (go to etc folder in WSL). | |
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line). | |
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line). | |
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian). | |
5. cd ~/../../etc (go to etc folder in WSL). | |
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file). | |
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and | |
secondary. |
#!/bin/sh | |
echo "# 24-bit (true-color)" | |
# based on: https://gist.github.com/XVilka/8346728 | |
term_cols="$(tput cols || echo 80)" | |
cols=$(echo "2^((l($term_cols)/l(2))-1)" | bc -l 2> /dev/null) | |
rows=$(( cols / 2 )) | |
awk -v cols="$cols" -v rows="$rows" 'BEGIN{ | |
s=" "; | |
m=cols+rows; |
#!/bin/bash | |
usage() { | |
if [ ! -z $1 ]; then | |
echo -e "ERROR:\n" 1>&2 | |
fi | |
echo "Usage: $0 -f /path/to/README.md -u dockerhub-username [-r dockerhub-repo-prefix] -n repo-name" 1>&2 | |
exit 1; | |
} | |
while getopts ":r:u:f:n:" o; do |
#!/usr/bin/env perl | |
use Mojolicious::Lite -signatures; | |
get '/' => sub ($c) { | |
$c->render(template => 'index'); | |
}; | |
get '/api/:region' => sub ($c) { | |
my %regions = ( |
Prerequisite: latest Docker for Mac on MacOS Sierra
$ brew update
$ brew install --HEAD xhyve
$ brew install docker-machine-driver-xhyve
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.18.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
FROM perl | |
WORKDIR /perl | |
ENTRYPOINT ["carton", "exec"] | |
RUN cpanm -n Carton | |
COPY tarball.tgz /perl | |
RUN cd /perl && tar zxf tarball.tgz && carton install --deployment |