Skip to content

Instantly share code, notes, and snippets.

Didy HU didyhu

Block or report user

Report or block didyhu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View my-proxifier-profile.ppx
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProxifierProfile version="101" platform="Windows" product_id="0" product_minver="310">
<Options>
<Resolve>
<AutoModeDetection enabled="true" />
<ViaProxy enabled="false">
<TryLocalDnsFirst enabled="false" />
</ViaProxy>
<ExclusionList>%ComputerName%; localhost; *.local</ExclusionList>
<DnsUdpMode>0</DnsUdpMode>
View .eslintrc.json
{
"env": {
"es6": true,
"node": true
},
"extends": [
"standard",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
View iptables notes.md

iptables notes

list

sudo iptables -vL -t filter
sudo iptables -vL -t nat
sudo iptables -vL -t mangle
sudo iptables -vL -t raw
View Run Node on Docker.md

Run Node on Docker

Config

  1. Dockerfile
    FROM node:{NODE_VER}
    WORKDIR /opt/app
    COPY ./package*.json ./*.lock ./
    RUN yarn --only-production
    
View Table_and_Flex_layout_examples.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Table & Flex layout examples</title>
</head>
View Webpack Dev Evniroment.md

Webpack Develop Enviroment

install

yarn add babel-loader @babel/core @babel/preset-env webpack webpack-cli webpack-dev-server

run

@didyhu
didyhu / change-windows-network-category.md
Created Nov 27, 2019
Change Windows NetworkCategory
View change-windows-network-category.md
Set-NetConnectionProfile -InterfaceIndex %Index% -NetworkCategory 'Private|Public'
View allow-cors.md

Allow CORS

server

// listens foo.com:1234
app.use((req, res, next) => {
    res.header("Access-Control-Allow-Origin", "*")
    res.header("Access-Control-Allow-Methods", "GET, POST, PUT")
    next()
View nginx-conf.md

nginx-conf

Forbidden default

server{
  listen 80 default_server;
  listen [::]:80 default_server;

  server_tokens off;
View systemd-service.md

Systemd service

sudo vi /etc/systemd/system/foo.service
#/etc/systemd/system/foo.service
[Unit]
Description=DESCRIPTION
You can’t perform that action at this time.