Skip to content

Instantly share code, notes, and snippets.

View xuzhenglun's full-sized avatar
🐠
**WASTED**

Reficul xuzhenglun

🐠
**WASTED**
View GitHub Profile
@xuzhenglun
xuzhenglun / unlock.sh
Created February 22, 2024 15:50
bypass netflix DNS pin
#!/usr/bin/env bash
ipset -N netflix hash:net
ipset -A netflix 23.246.0.0/18
ipset -A netflix 37.77.184.0/21
ipset -A netflix 45.57.0.0/17
ipset -A netflix 64.120.128.0/17
ipset -A netflix 66.197.128.0/17
ipset -A netflix 108.175.32.0/20
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script language="javascript">
function getObj(id) {
return (document.getElementById(id));
}
function jslSetValue(dst, src, action) {
var src_o = getObj(src);
var dst_o = getObj(dst);
dst_o.value = String(src_o.value);
@xuzhenglun
xuzhenglun / main.go
Last active April 13, 2017 14:56
migrate dep's json to Toml
package main
import (
"encoding/json"
"io/ioutil"
"log"
toml "github.com/pelletier/go-toml"
)
{
pipeline(id: "ad861716-e357-4413-9352-8e815d35e9db") {
id
name
stages {
id
name
apps {
... on App_Status {
auto_deploy_branch
package main
import (
"fmt"
"math/rand"
"time"
)
func GeneateCode(n int) []int {
code := make([]int, n)
@xuzhenglun
xuzhenglun / paper_grade_generator.go
Last active May 24, 2016 15:41
随机数成绩生成器,钦定一下
package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
A, detaila := 钦定一下(65, 75, []int{10, 15, 15, 10, 10, 10, 5, 20, 5})