Skip to content

Instantly share code, notes, and snippets.

View zoonderkins's full-sized avatar
🏠
Working 👍

Quack~ zoonderkins

🏠
Working 👍
View GitHub Profile
@zoonderkins
zoonderkins / readme.md
Last active June 10, 2020 08:26 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser

Keybase proof

I hereby claim:

  • I am ookangzheng on github.
  • I am bathtub0x0 (https://keybase.io/bathtub0x0) on keybase.
  • I have a public key ASCVWOKnOTM3nODJmNeaeQMzwnUqKrGZiGcd2_TzQm2LVgo

To claim this, I am signing this object:

@zoonderkins
zoonderkins / Adblock-list-collection.md
Last active July 4, 2023 22:43
Adblock-list-collection
@zoonderkins
zoonderkins / CDK-Route53-example.js
Created March 25, 2020 01:26
CDK-Route53-example.js
```
// const zone = route53.HostedZone.fromLookup(this, 'Zone', {
// domainName: api.url
// })
// const stagingZone = new route53.PublicHostedZone(this, `${environment.ENV}-HostedZone`, {
// zoneName: `${environment.ENV}-api.sygna.io`
// })
// const customDomain = apigateway.DomainName.fromDomainNameAttributes(this, 'CustomDomain', {
// domainName: environment.apiDomainName,
// domainNameAliasTarget: environment.domainNameAliasTarget,
@zoonderkins
zoonderkins / webacl.js
Created March 10, 2020 06:10
v2-web-acl-aws-cdk
// step 1
const myRegexPatternSet = new wafv2.CfnRegexPatternSet(
this,
'sygna-api-tokyo-regex',
{
description: 'Sygna Bridge Api Regex',
name: 'sygna-bridge-api-regex',
scope: 'REGIONAL',
regularExpressionList: ['^[a-zA-Z]{64}$', '.w[api_].w[key]w'],
},
@zoonderkins
zoonderkins / coolbitx-vscode-prettier.json
Created March 2, 2020 02:56
coolbitx-vscode-prettier.json
```
// .prettierrc.json
{
"trailingComma": "all",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
@zoonderkins
zoonderkins / personal-Ublock-domain-collection.md
Created February 27, 2020 08:06
personal-Ublock-domain-collection.md

Chinese Rules

https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-ublock.txt
https://gitee.com/xinggsf/Adblock-Rule/raw/master/rule.txt
去广告和科学上网hosts源
1.yhosts: https://raw.githubusercontent.com/vokins/yhosts/master/hosts (国内维护者屏蔽国内网站广告)
2.大圣净化:https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts (主要针对国内视频网站)
3.1024_hosts:https://raw.githubusercontent.com/Goooler/1024_hosts/master/hosts (1024网站和澳门皇家赌场)
4.neoHosts: https://hosts.nfz.moe/full/hosts (国内屏蔽挖矿统计JS&360&百度&法轮功等)
@zoonderkins
zoonderkins / fix-xcode-gyp-failed.md
Last active December 6, 2020 11:42
gyp: No Xcode or CLT version detected! on Mac Catalina 10.15.2
@zoonderkins
zoonderkins / 淺談-DNS-over-HTTPS.md
Last active December 12, 2019 12:44
淺談-DNS-over-HTTPS.md

DNS-over-HTTPS Nodejs example

const fetch = require('node-fetch')
const Packet = require('native-dns-packet')

class DoH {
  constructor(provider) {
    // this.provider = this.provider
@zoonderkins
zoonderkins / fix-home.js
Created September 14, 2019 15:34
Fix-Home-JS-classed-React GraphQL App (MERNG): #3 Displaying Posts
import React from 'react'
import { useQuery } from '@apollo/react-hooks'
import gql from 'graphql-tag'
import { Grid, Divider } from 'semantic-ui-react'
import PostCard from '../components/PostCard'
function Home() {
let posts = ''
const { loading, data } = useQuery(FETCH_POSTS_QUERY)