Para criar um servidor express.js para servir de API:
npx express-generator --no-view nome-do-projeto
#!name=去广告合集 | |
#!desc= 常用的去广告整合 | |
[Rule] | |
# 关于屏蔽443端口的UDP流量的解释内容:HTTP3/QUIC协议开始流行,但是国内ISP和国际出口的UDP优先级都很低,表现很差,屏蔽掉以强制回退HTTP2/HTTP1.1 | |
AND,((PROTOCOL,UDP),(DST-PORT,443)),REJECT-NO-DROP | |
#规则修正 |
# linux | |
rm -rf ~/.config/JetBrains/IntelliJIdea*/eval/*.evaluation.key ~/.config/JetBrains/IntelliJIdea*/options/other.xml ~/.java/.userPrefs/jetbrains/idea | |
# mac os | |
rm ~/Library/Application\ Support/JetBrains/IntelliJIdea*/eval/*.evaluation.key ~/Library/Application\ Support/JetBrains/IntelliJIdea*/options/other.xml ~/Library/Preferences/jetbrains.idea.* ~/Library/Preferences/com.apple.java.util.prefs.plist |
# This config will host your main [Laravel] GUI application at /, and any additional [Lumen] webservices at /api/v1 and /api/v2... | |
# This also works perfectly for all static file content in all projects | |
# This is full of debug comments so you can see how to print debug output to browser! Took me hours to nail this perfect config. | |
# Example: | |
# http://example.com - Main Laravel site as usual | |
# http://example.com/about - Main Laravel site about page as usual | |
# http://example.com/robots.txt - Main Laravel site static content as usual | |
# http://example.com/api/v1 - Lumen v1 api default / route | |
# http://example.com/api/v1/ - Lumen v1 api default / route |
echo "Creating an SSH key for you..." | |
ssh-keygen -t rsa | |
echo "Please add this public key to Github \n" | |
echo "https://github.com/account/ssh \n" | |
read -p "Press [Enter] key after this..." | |
echo "Installing xcode-stuff" | |
xcode-select --install |
int main() | |
{ | |
printf("Hello World !"); | |
return 0; | |
} |
# Copyright (c) 2016, Swift Navigation, All Rights Reserved. | |
# Released under MIT License. | |
# | |
# Find documentation of parameters here: | |
# http://aprs.gids.nl/nmea/#gga | |
# | |
# time_t is a `time_struct` (https://docs.python.org/2/library/time.html) | |
# alt_m, geoidal_sep_m are in meters | |
import time | |
from math import floor |
// ==UserScript== | |
// @name Google Search Maps Fix | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-03-07 | |
// @description Bring Google maps button back | |
// @author Daan Grashoff / Delivator | |
// @match https://www.google.com/search* | |
// @include https://www.google.tld/search* | |
// @icon https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png | |
// @grant none |