Skip to content

Instantly share code, notes, and snippets.

Stackie Jia stackia

Block or report user

Report or block stackia

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
@RickStrahl
RickStrahl / CompilingCSharpCode.cs
Last active Jun 26, 2019
A few different approaches to dynamically execute C# code dynamically at runtime from a string of code.
View CompilingCSharpCode.cs
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Scripting;
using Microsoft.CodeAnalysis.Scripting;
using Mono.CSharp;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.Dynamic;
using System.Linq;
View ChinaDNS.md

ChinaDNS 原理

记录一下 ChinaDNS 的原理:

ChinaDNS 分 国内 DNS可信 DNS

  1. ChinaDNS 会同时向 国内 DNS可信 DNS 发请求。
  2. 如果 可信 DNS 先返回,则采用 可信 DNS 的数据。
  3. 如果 国内 DNS 先返回,又分两种情况,返回的数据是国内的 IP, 则采用,否则丢弃并转而采用 可信 DNS 的结果。
@klzgrad
klzgrad / 00-README.txt
Last active Jan 7, 2019
DNS compression pointer mutation
View 00-README.txt
$ LD_PRELOAD=$PWD/sendmsg.so dig twitter.com @8.8.8.8
;; Warning: Message parser reports malformed message packet. <-- malformed 因为把压缩指针当作域名一部分了
;; Question section mismatch: got twitter.com/RESERVED0/CLASS256
; <<>> DiG 9.9.5-3-Ubuntu <<>> twitter.com @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44722
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
@demisx
demisx / angularjs-providers-explained.md
Last active Jun 8, 2019
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider
View angularjs-providers-explained.md
Provider Singleton Instantiable Configurable
Constant Yes No No
Value Yes No No
Service Yes No No
Factory Yes Yes No
Decorator Yes No? No
Provider Yes Yes Yes

Constant

@davispuh
davispuh / steam_console_params.txt
Last active Jun 28, 2019
Steam client parameters, consoles commands and variables
View steam_console_params.txt
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accountrecovery - Perform account recovery
-all_languages - show longest loc string from any language
-bigpicture - Start in Steam Big Picture mode
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-community - Set the community URL
-complete_install_via_http - Run installation completion over HTTP by default
You can’t perform that action at this time.