Skip to content

Instantly share code, notes, and snippets.

@nitinsatish
nitinsatish / test_deployment.yaml
Created May 14, 2024 11:13
[Kubernetes deployment for testing using ubuntu] #k8s
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-client
namespace: test-client
spec:
selector:
matchLabels:
app: test-client
@mayufo
mayufo / 验证中国身份证 前6位对应地区码
Created January 16, 2018 10:12
验证中国身份证 前6位对应地区码
var GB2260 = {
"110000": "北京市",
"110100": "北京市市辖区",
"110101": "北京市东城区",
"110102": "北京市西城区",
"110103": "北京市崇文区",
"110104": "北京市宣武区",
"110105": "北京市朝阳区",
"110106": "北京市丰台区",
"110107": "北京市石景山区",
@YiHui-Liu
YiHui-Liu / wechatmsganalysis.ipynb
Created February 1, 2024 13:49
WeChatMsgAnalysis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@daipengu
daipengu / SKlite
Last active May 14, 2024 14:55
Descs
#!name=去广告合集
#!desc= 常用的去广告整合
[Rule]
# 关于屏蔽443端口的UDP流量的解释内容:HTTP3/QUIC协议开始流行,但是国内ISP和国际出口的UDP优先级都很低,表现很差,屏蔽掉以强制回退HTTP2/HTTP1.1
AND,((PROTOCOL,UDP),(DST-PORT,443)),REJECT-NO-DROP
#规则修正
@xiaklizrum
xiaklizrum / reset.sh
Last active May 14, 2024 14:54
Reset jetbrains intellij idea 2020 30-day evaluation period
# 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
@mreschke
mreschke / nginx.conf
Last active May 14, 2024 14:54
Nginx config for multiple laravel sites based on /api/v1 url paths
# 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
@sspeery
sspeery / AGOL_Mass_Notification.ipynb
Created February 10, 2022 15:30
ArcGIS Online Mass Notification
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bradp
bradp / setup.sh
Last active May 14, 2024 14:45
New Mac Setup Script
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

Cheat Sheet para o teste de EW

Setup do projeto

Criar servidor express.js

Para criar um servidor express.js para servir de API:

npx express-generator --no-view nome-do-projeto
@RichardFarand
RichardFarand / hello.c
Last active May 14, 2024 14:43
Mon Hello World
int main()
{
printf("Hello World !");
return 0;
}