While VSCode supports opening terminals in the editor area, its shortcuts are generally hard-coded to deal with the terminal in the bottom-panel. To change this, we can define keyboard shortcuts to mitigate and make the "ctrl+`" functionality toggle between the terminal and the last editor used.
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
locals { | |
ami_ubuntu_1804 = "ami-06397100adf427136" | |
ssh_public_key = "ssh-rsa ABCD...asdfasdf" | |
} | |
provider "aws" { | |
profile = "default" | |
region = "us-west-1" | |
} |
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
[extensions] | |
git = | |
[alias] | |
npull = !$HG git; $HG nukebookmarks; $HG pull | |
nukebookmarks = !$HG bookmarks -q | xargs -r $HG bookmark -d |
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
#cloud-config | |
# https://cloudinit.readthedocs.io/en/latest/topics/modules.html#users-and-groups | |
users: | |
- name: ansible | |
uid: 999 | |
shell: /bin/bash | |
sudo: ['ALL=(ALL) NOPASSWD:ALL'] | |
ssh_authorized_keys: | |
- '[REDACTED]' |
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 | |
TARGET_DIR=/opt/repos/third-parties | |
HG_GIT_VERSION=${1:-default} | |
HG_RELEASE_VERSION=${2:-5.5.2} | |
HG_REPO_VERSION=${3:-stable} | |
TORTOISEHG_VERSION=${4:-stable} | |
update() { | |
# Update packages |
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 | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <dir>" | |
exit 1 | |
fi | |
DIR="$(realpath $1)" | |
find_unused_classes() |
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
# export current environment | |
EXISTING_ENV=$(export -p) | |
# import variables from file | |
. config.env | |
# import previous environment | |
source <(echo "$EXISTING_ENV") | |
# At this point, only variables from config.env that did |
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
<?php | |
declare(strict_types=1); | |
pcntl_async_signals(true); | |
pcntl_signal(SIGHUP, function ($signal) { | |
echo "HUP! {$signal} \n"; | |
error_log((new Exception())->getTraceAsString()); | |
}); |
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
<?php | |
declare(strict_types=1); | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Model; | |
class Todo extends Model | |
{ |
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
services: | |
forgejo: | |
image: codeberg.org/forgejo/forgejo:1.19.3-0 | |
tmpfs: ["/data"] | |
stop_signal: SIGKILL | |
ports: [ "3000:3000", "8000:8000" ] | |
environment: | |
# @see https://docs.gitea.com/next/administration/config-cheat-sheet | |
GITEA__database__DB_TYPE: sqlite3 |