sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
Pytest is a powerful Python testing framework that is widely used for unit testing, integration testing, and functional testing. This guide will take you step by step from basic to advanced features of Pytest, providing a comprehensive understanding of its capabilities.
The following guide is for setting up Docker with docker-compose v2 on Amazon Linux 2023. The steps are intendend for AL2023 on EC2 but should mostly work for the AL2023 VMs running on other hypervisors.
Get the hosts current Amazon Linux 2023 release:
;;; init.el --- -*- coding: utf-8; lexical-binding: t; -*- | |
;;; commentary: | |
;;; code: | |
;;============================================================ | |
;; native compilation | |
;;============================================================ | |
(setq native-comp-speed 3) ;; native-compilation 最適化レベル | |
;;============================================================ |
Step 1: Let's start with NGINX installation | |
sudo dnf update //To Install Latest Update | |
sudo dnf install -y nginx // Install Nginx | |
sudo systemctl start nginx.service //Start Nginx Server | |
sudo systemctl status nginx.service // Check Server Status | |
sudo systemctl enable nginx.service // Enable Auto Server Start on Reboot | |
Now you should be able to see the server running by hitting your public ip. |
;; eglot-codelens.el --- Add support for codelenses to eglot -*- lexical-binding: t -*- | |
;;; Commentary: | |
;;; Code: | |
;;; Extending eglot to support lenses | |
;;;; Findings | |
;; Lenses often support the option to be used as a code action | |
;; some servers rely on custom code actions implemented by the client | |
;; - [[https://github.com/emacs-lsp/lsp-mode/issues/2250]] mentions this |
# explicitly define the interface | |
__all__ = ["minimal_dir"] | |
from functools import cache | |
@cache | |
def get_stdlib_packages(): | |
""" Get list that should include all stdlib package/module names. | |
Not perfect. Has false positives. |
The following guide is for setting up Docker with docker-compose v2 on Amazon Linux 2023. The steps are intendend for AL2023 on EC2 but should mostly work for the AL2023 VMs running on other hypervisors.
Get the hosts current Amazon Linux 2023 release:
// ytSubs.js (SEE DISCLAIMER) - via @DarrenSem https://gist.github.com/DarrenSem (22Mar2024) | |
// YouTube subtitles - English (auto-generated) CC (closed captions) | |
// Usage: node ytSubs.js videoIdOrUrl | |
// or Web browser BOOKMARKLET (contents open in a new window) | |
// ES6 clickable Bookmarklet = 3923 chars: | |
//javascript:void function(){"use strict";var e=String.fromCharCode;const n=!1,d=globalThis,{process:i}=d,t=console,u=async(e,n,d="text")=>fetch(e,n).then(e=>e[d]()),a=e=>{try{e=(e||"")+"";const n=e.match(/"captionTracks":.*"isTranslatable"\:.*?}]/),d=JSON.parse(`{${(n||[""])[0]}}`).captionTracks||[],i=d.map(e=>{const n=e.name;return[l(n.simpleText||n.runs&&n.runs[0].text),e.baseUrl+"&fmt=json3"]});return i}catch(n){}},r=e=>{e=new Date(e);let n=e.getDate();return isNaN(n)?null:`${(n+"").padStart(2,"0")}${e.toLocaleString("default",{month:"short"})}${e.getFullYear()}`},f=e=>{e="string"!=typeof e&&e?new URL(e):{href:e||""};const n=e&&e.href.trim()||"",d=n.replace(/(https?:\/\/)?\/*(.+?)\/?$/,"https://$2"),i=d |