1.将原来的 location / {}
复制一份,粘贴到下面;
2.在原来的 location 块中加入一行:
proxy_redirect https://MisakaF视频推流地址/ https://你服务器的地址/;
3.在复制的 location 块中,将 location /
改成 location /p/
,将 proxy_pass 的目标地址改成 视频推流地址 /p/。
map $http_upgrade $connection_upgrade {
First you need to install pandoc.
I used brew install pandoc
to install via Homebrew since I'm on a mac.
Make a slides.md
for your slides (or name it whatever you want!). I put images in an /images/
folder. You can see how links and images and all of that work from this sample:
In the Generative AI Age your ability to generate prompts is your ability to generate results.
Claude 3.5 Sonnet and o1 series models are recommended for meta prompting.
Replace {{user-input}}
with your own input to generate prompts.
Use mp_*.txt
as example user-input
s to see how to generate high quality prompts.
#!/usr/bin/env bash | |
# ref: https://github.community/t/how-to-check-if-a-container-image-exists-on-ghcr/154836/3 | |
# public image's {USER}/{IMAGE} | |
USER_IMAGE=eggplants/asciiquarium-docker | |
# get token ('{"token":"***"}' -> '***') | |
TOKEN="$( | |
curl "https://ghcr.io/token?scope=repository:${USER_IMAGE}:pull" | | |
awk -F'"' '$0=$4' |
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
import py7zlib | |
import os | |
import re | |
class SevenZFile(object): | |
@classmethod | |
def is_7zfile(cls, filepath): | |
''' | |
Class method: determine if file path points to a valid 7z archive. |
Como ir de $0 a $10k/mês (por Josh Rush https://x.com/johnrushx/status/1838342060857770336) | |
1. Ideia. | |
○ fácil de construir (idealmente sem código (nocode)) | |
○ pode ser explicada em uma frase | |
○ direcionada a um pequeno nicho B2B (business to business) | |
○ tem potencial de crescimento orgânico | |
Nunca pense: "Vou comprar anúncios para promovê-la". Isso literalmente nunca funciona. |
Note: This gist may be outdated, thanks to all contributors in comments.
adb
is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
Script comunas, regiones, provincias Junio 2022 | |
DROP TABLE IF EXISTS `comunas`; | |
CREATE TABLE `comunas` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`comuna` varchar(64) NOT NULL, | |
`provincia_id` int(11) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM AUTO_INCREMENT=346 DEFAULT CHARSET=utf8; |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).