Add new std::env::user_home_dir API returning Option<PathBuf>.
This API is a replacement for the deprecated std::env::home_dir which
provides a platform agnostic method for identifying the user's home directory
| # Find the Azure hardware of your GitHub Hosted runners | |
| # This assumes an organization runner called `windows-2025-64` update accordingly. | |
| # | |
| # Ouptput looks like: | |
| # Run Invoke-RestMethod -Headers @{"Metadata"="true"} -Method GET -Uri "http://169.254.169.254/metadata/instance/compute?api-version=2023-07-01" | | |
| # { | |
| # "vm_size": "Standard_D16ads_v5", | |
| # "location": "eastus", | |
| # "os_disk_gb": 600, | |
| # "rs_disk_gb": 749.5 |
| [ | |
| { "keys": ["ctrl+q"], "command": "exit" }, | |
| { "keys": ["ctrl+shift+n"], "command": "new_window" }, | |
| { "keys": ["ctrl+shift+w"], "command": "close_window" }, | |
| { "keys": ["open"], "command": "prompt_open_file" }, | |
| { "keys": ["ctrl+o"], "command": "prompt_open_file" }, | |
| { "keys": ["ctrl+shift+t"], "command": "reopen_last_file", "args": {"source": "window"} }, | |
| { "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]} }, | |
| { "keys": ["alt+shift+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"], "side_by_side": true} }, |
| /* | |
| On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings, | |
| and don't need to be repeated here. Anything listed here will take precedence, however. | |
| */ | |
| [ | |
| { "keys": ["super+shift+n"], "command": "new_window" }, | |
| { "keys": ["super+shift+w"], "command": "close_window" }, | |
| { "keys": ["super+alt+shift+n"], "command": "new_os_tab" }, | |
| { "keys": ["ctrl+alt+tab"], "command": "next_os_tab" }, | |
| { "keys": ["ctrl+alt+shift+tab"], "command": "prev_os_tab" }, |
Why?
"Trailing whitespace is indeed commit noise."
Just drop this in one of your settings files:
I hereby claim:
To claim this, I am signing this object:
| {% set version = "2016.3.3" %} | |
| {% set pkg_version = '2016.3.3+ds-1' %} | |
| salt_repo: | |
| pkgrepo.managed: | |
| - humanname: SaltStack Repo | |
| - name: {{ "deb http://repo.saltstack.com/apt/ubuntu/%s/amd64/archive/%s %s main" % | |
| (grains['osrelease'], version, grains['oscodename']) }} | |
| - file: /etc/apt/sources.list.d/saltstack.list | |
| - keyid: 754A1A7AE731F165D5E6D4BD0E08A149DE57BFBE # SaltStack Packaging Team |
| #!/usr/bin/env bash | |
| set -u | |
| # Downloads Oracle JDK tarball and makes fancy debs out of it. | |
| # Output is full of warnings, but the packages work. ;) | |
| # Example URL='http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz' | |
| MAJOR=8 | |
| MINOR=45 | |
| BUILD=14 |
| #/bin/bash | |
| set -e | |
| # Downloads the dante socks proxy source code and builds up a version history in a git repository. | |
| # Note: OSX/BSDs have alternate 'stat' syntax so we need GNU stat there. | |
| # Usage: | |
| # git init | |
| # ./dante_history_import.sh | |
| # |