Skip to content

Instantly share code, notes, and snippets.

@entelecheia
entelecheia / hyfi-template-issue.md
Last active April 23, 2024 19:01
hyfi-template-issue

Initialize Repository with HyFI-Template.

Assignees: Labels: Milestone: Projects:

Description

To streamline the development process and ensure a solid foundation for our Python projects, we will initialize our repositories using the HyFI-Template. HyFI-Template is a ready-to-use GitHub template repository that leverages the power of the Hydra configuration system and the Pydantic data validation library, providing a comprehensive set of tools to create flexible and adaptable interfaces for various Python applications. By utilizing the .envrc file provided by the template, we can quickly set up a virtual environment and start building our projects with the HyFI framework.

@entelecheia
entelecheia / docker-data.md
Last active February 24, 2024 20:17
[Docker] How to move Docker image storage to a data volume

How to move Docker image storage to a data volume

The docker image data is stored under /var/lib/docker directory in the docker host for UNIX systems, which does not have a substitution command or argument to switch the default path. However, you can definitely do that by making some changes to the docker’s service file directly or via a symbolic link.

Here are steps you can follow:

1. Stop Docker:

On a system that uses:

@entelecheia
entelecheia / install-cloudlflared.md
Last active January 20, 2024 15:11
Cloudlflare daemon

Install Cloudflared

#!/bin/bash
# =============================================================================
# Install Cloudlflare daemon (cloudflared) on Linux (Ubuntu) - DNS-over-HTTPS
# https://developers.cloudflare.com/1.1.1.1/dns-over-https/cloudflared-proxy/
# https://developers.cloudflare.com/argo-tunnel/downloads
# -----------------------------------------------------------------------------
# Developer.......: Andre Essing (https://www.andre-essing.de/)
@entelecheia
entelecheia / lfs-uninstall.md
Created June 23, 2023 06:04
How to Uninstall Git Large File Storage (LFS)

How to Uninstall Git Large File Storage (LFS)

Git Large File Storage (LFS) is an open-source Git extension for versioning large files. It's a great tool for handling large files, but there might be situations where you want to uninstall it from your repository. Here is a step-by-step guide to help you through this process:

1. Commit and Push Everything

Before you start, make sure to commit and push all your changes to the remote repository. This ensures that no work is lost during the LFS uninstallation process.

git commit -am "Your commit message"
@entelecheia
entelecheia / download-vs-code-server.sh
Last active September 14, 2022 23:55
download-vs-code-server.sh
#!/bin/sh
set -e
# Auto-Get the latest commit sha via command line.
get_latest_release() {
tag=$(curl --silent "https://api.github.com/repos/${1}/releases/latest" | # Get latest release from GitHub API
grep '"tag_name":' | # Get tag line
sed -E 's/.*"([^"]+)".*/\1/' ) # Pluck JSON value
@entelecheia
entelecheia / README.md
Created March 25, 2022 23:23 — forked from ascendbruce/README.md
Use mac style keyboard shortcuts on Windows with AutoHotkey (ahk) script

Use (most) macOS style keyboard shortcuts on Windows

Make Windows PC's shortcut act like macOS (Mac OS X)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

Note that:

  1. you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.
  2. To use cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line), You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys due to conflicting.