- Install Virtual Box (https://www.virtualbox.org)
- Install Oracle VM VirtualBox Extension Pack (https://www.virtualbox.org)
- Install Vagrant
mkdir osxvm
cd osxvm
vagrant init jhcook/osx-elcapitan-10.11
mkdir osxvm
cd osxvm
vagrant init jhcook/osx-elcapitan-10.11
listen l1 | |
bind 0.0.0.0:443 | |
mode tcp | |
timeout connect 4000 | |
timeout client 180000 | |
timeout server 180000 | |
server srv1 host.example.com:9443 |
[{"key":", .","action":"javascript","blacklist":false,"sites":"*mail.google.com*","open":false,"code":"location.pathname = '/';","exported":true,"sitesArray":["*mail.google.com*"],"customName":"goto root"},{"key":", ,","action":"javascript","blacklist":false,"sites":"*mail.google.com*","open":false,"code":"location.search = \"\";\nlet newPath = location.pathname\n .split(\"/\")\n .filter(x => x.length > 0)\n .slice(0, -1)\n .join(\"/\");\nlocation.pathname = newPath;","customName":"goto upper","exported":true,"sitesArray":["*mail.google.com*"]}] |
apt-get update; apt-get install -y curl wget unzip | |
curl -sfL https://get.k3s.io | sh - | |
kubectl create ns kubeless | |
kubectl create -f https://github.com/kubeless/kubeless/releases/download/v1.0.6/kubeless-v1.0.6.yaml | |
wget https://github.com/kubeless/kubeless/releases/download/v1.0.6/kubeless_linux-amd64.zip -O kubeless.zip; \ | |
unzip kubeless.zip; \ | |
mv bundles/kubeless_linux-amd64/kubeless /usr/local/bin; \ | |
rm -rf bundles/ kubeless.zip |
@font-face { | |
font-family: 'EmojiOne'; | |
src: url('https://github.com/joypixels/emojione-assets/releases/download/4.5/emojione-android.ttf'); | |
} |
// https://developers.cloudflare.com/1.1.1.1/dns-over-https/json-format/ | |
package redisHub | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"regexp" | |
"strings" |
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"golang.org/x/net/webdav" |
from math import ceil | |
from typing import List | |
import redis | |
def n1(n): | |
# left shift then minus 1 | |
return (0b1 << n + 1) - 1 |
# 安装 stack, ghc, ghci | |
brew install haskell-stack | |
# 安装 HIE | |
## 安装 nix-env | |
curl https://nixos.org/nix/install | sh | |
## 安装 hie, 对应 haskell 版本 8.65 | |
nix-env -iA selection --arg selector 'p: { inherit (p) ghc865; }' -f https://github.com/infinisil/all-hies/tarball/master | |
# 配置 VSCode 环境 |
import re | |
import json | |
import requests | |
from json_api.errors import ExceptionWithStatusCode | |
UA = ( | |
'Mozilla/5.0 (iPhone; CPU iPhone OS 13_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) ' | |
'Mobile/15E148 MicroMessenger/7.0.8(0x17000820) NetType/WIFI Language/zh_CN' | |
) |