Skip to content

Instantly share code, notes, and snippets.

@ayebrian
ayebrian / vmware.md
Last active March 17, 2025 14:10
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024
@dev-mdirfan
dev-mdirfan / FastAPI Cheat Sheet.md
Last active March 17, 2025 14:09
Fast API Cheat Sheet - Python

Fast API Cheat Sheet - Python

  • fastapi purpose: to create an API
  • uvicorn purpose: to run the server and reload it when changes are made

Installation

pip install fastapi uvicorn
@jlia0
jlia0 / agent loop
Last active March 17, 2025 14:08
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@fjpalacios
fjpalacios / arch-i3gaps-install.md
Last active March 17, 2025 14:08
Arch + i3-gaps Install Guide

Arch + i3-gaps Install Guide

First set up your keyboard layout. For example, in Spanish:

   # loadkeys es

For a list of all acceptable keymaps:

   # localectl list-keymaps
@BlueSkyXN
BlueSkyXN / BaiduPan-Checkin.py
Created August 8, 2024 02:13
BaiduPan-Checkin.py
import requests
import time
import re
import os
# 从环境变量中获取 Cookie
COOKIES = os.environ.get('BAIDU_COOKIE', '')
HEADERS = {
'Connection': 'keep-alive',
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active March 17, 2025 14:06
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@Crocoblock
Crocoblock / code.js
Last active March 17, 2025 14:06
JetPopup trigger open / close
//128 is a popup ID
let popupId = 'jet-popup-128',
data = {
popupId: popupId,
};
//Open popup
jQuery( window ).trigger( {
type: 'jet-popup-open-trigger',
@christopheranderton
christopheranderton / update-outdated-brew-casks.sh
Last active March 17, 2025 14:04
Upgrade outdated brew casks. One liner, and the ”official” way to do it without using different hacks or scripts. However, it does not really replace some scripts out there, as in-app updates is not seen by Homebrew.
# Upgrade / Update outdated casks installed.
# --------------------------------------------------------------------------------
# Looks for outdated casks and installs the the latest version.
# User data (like application preferences) is intact.
# Updated one liner (thanks Henrik242)
# --------------------------------------------------------------------------------
brew upgrade $(brew outdated --cask --greedy --quiet)