Skip to content

Instantly share code, notes, and snippets.

View bikemule's full-sized avatar
💭
Emaxxxing

bikemule

💭
Emaxxxing
  • Kraken Technologies
  • Brooklyn, NY
View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@devops-school
devops-school / README.md
Created December 25, 2024 15:51
Complete Guide to Pytest: From Basics to Advanced

Complete Guide to Pytest: From Basics to Advanced

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.


Table of Contents

  1. Introduction to Pytest
  2. Setting Up Pytest
@wljtcc
wljtcc / setup-docker-al2023.md
Created November 12, 2024 19:29 — forked from thimslugga/setup-docker-al2023.md
Setup Docker on Amazon Linux 2023

Setup Docker on Amazon Linux 2023

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.

Install and configure Docker on Amazon Linux 2023

Check for new updates

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 最適化レベル
;;============================================================
@rineil
rineil / step-1.txt
Created April 8, 2024 06:58 — forked from atikju/step-1.txt
NGINX, PHP, MYSQL installation with Amazon Linux 2023
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.
@Gavinok
Gavinok / eglot-codelens.el
Created March 12, 2024 22:10
Add support for code lenses in eglot for emacs
;; 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
@sebastiancarlos
sebastiancarlos / minimal_dir.py
Last active August 8, 2024 04:17
Like dir(), but filters out __*__ attributes, standard library packages, and built-ins, to give a better idea of the object's custom attributes.
# 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.
@amogower
amogower / README.md
Last active March 30, 2025 19:42
MacOS Install/Uninstall Scripts

MacOS Install/Uninstall Scripts

Install

To use the install script and set up MacOS:

/bin/zsh <(curl -sL https://gist.github.com/amogower/f05554070d10cc036ba8cbc9968a954e/raw/install.sh)
@thimslugga
thimslugga / setup-docker-al2023.md
Last active April 17, 2025 00:22
Setup Docker on Amazon Linux 2023

Setup Docker on Amazon Linux 2023

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.

Overview of Updating Amazon Linux 2023

Check for new updates

Get the hosts current Amazon Linux 2023 release:

@DarrenSem
DarrenSem / ytSubs.js
Last active September 15, 2024 16:41
ytSubs.js - YouTube subtitles - English (auto-generated) CC (closed captions) - Usage: node ytSubs.js videoIdOrUrl, or Web browser BOOKMARKLET into a new window
// 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