Total Pageviews

Sunday, 3 December 2023

Dnsflare

 

Edit cloudflare domain dns settings.

dnsflare-indexyz.vercel.app

可视化的修改 Cloudflare Zone 的解析地址.

原因

Cloudflare 非常鸡贼的 ban 掉了 externallyManaged 用户访问 Cloudflare 控制台编辑 DNS Record 的功能, 然后有些 Partner 又已经跑了 不是, 但是又眼馋 pro

优点

所有请求由本地浏览器产生, 服务端仅进行 CORS 处理

Partner 无法直接添加 A 记录 (据说), 而且 Partner API 在开启 2FA 的情况下无法使用

使用

到 Cloudflare 的 API Token 设定 中新建一个 Token, 给这个 Token 以下权限

  • Zone.DNS 写权限 (用于写入 DNS 记录)

  • Zone.Zone 读权限 (用于读取域名列表)

  • Zone.SSL and Certificates 读写权限 (用于展示和修改 SSL 证书供应商)

然后访问 Example 来登录到面板

部署

使用 Cloudflare Pages 部署

from https://github.com/5aaee9/Dnsflare

 

 

Flipper

 

A desktop debugging platform for mobile developers.

fbflipper.com

Android Maven Badge iOS

Important Accouncement

Flipper is moving away from its Electron distribution to an in-Browser experience.

How does this affect me?

Functionality hasn't changed. The UI remains unchanged. Flipper will run in your default browser instead of a standalone application. If you build from source, Flipper will open in the browser instead of a standalone app. We also provide a MacOS app for the Flipper runtime which can be run and will also open Flipper in the browser.

The last Electron release is v0.239.0. As such, future releases will not include Electron artifacts.

React Native support

If you are debugging React Native applications, v0.239.0 will be the last release with support for it due to technical limitations for React Dev Tools and Hermes Debugger plugins. As such, please refer to that release when debugging React Native applications.


Flipper (formerly Sonar) is a platform for debugging mobile apps on iOS and Android and JS apps in your browser or in Node.js. Visualize, inspect, and control your apps from a simple desktop interface. Use Flipper as is or extend it using the plugin API.

Flipper

Table of Contents

Mobile development

Flipper aims to be your number one companion for mobile app development on iOS and Android. Therefore, we provide a bunch of useful tools, including a log viewer, interactive layout inspector, and network inspector.

Extending Flipper

Flipper is built as a platform. In addition to using the tools already included, you can create your own plugins to visualize and debug data from your mobile apps. Flipper takes care of sending data back and forth, calling functions, and listening for events on the mobile app.

Contributing to Flipper

Both Flipper's desktop app, native mobile SDKs, JS SDKs are open-source and MIT licensed. This enables you to see and understand how we are building plugins, and of course, join the community and help to improve Flipper. We are excited to see what you will build on this platform.

In this repo

This repository includes all parts of Flipper. This includes:

  • Flipper's desktop app built using Electron (/desktop)
  • native Flipper SDKs for iOS (/iOS)
  • native Flipper SDKs for Android (/android)
  • React Native Flipper SDK (/react-native)
  • JS Flipper SDK (/js)
  • Plugins:
    • Logs (/desktop/plugins/public/logs)
    • Layout inspector (/desktop/plugins/public/layout)
    • Network inspector (/desktop/plugins/public/network)
    • Shared Preferences/NSUserDefaults inspector (/desktop/plugins/public/shared_preferences)
  • website and documentation (/website / /docs)

Getting started

Please refer to our Getting Started guide to set up Flipper. Or, (still experimental) run npx flipper-server for a browser based version of Flipper.

Requirements

  • node >= 8
  • yarn >= 1.5
  • iOS developer tools (for developing iOS plugins)
  • Android SDK and adb

Building from Source

Desktop

Running from source

git clone https://github.com/facebook/flipper.git
cd flipper/desktop
yarn
yarn start

NOTE: If you're on Windows, you need to use Yarn 1.5.1 until this issue is resolved.

Building standalone application

Provide either --mac, --win, --linux or any combination of them to yarn build to build a release zip file for the given platform(s). E.g.

yarn build --mac --version $buildNumber

You can find the resulting artifact in the dist/ folder.

iOS SDK + Sample App

cd iOS/Sample
rm -f Podfile.lock
pod install --repo-update
open Sample.xcworkspace
<Run app from xcode>

You can omit --repo-update to speed up the installation, but watch out as you may be building against outdated dependencies.

Android SDK + Sample app

Start up an android emulator and run the following in the project root:

./gradlew :sample:installDebug

React Native SDK + Sample app

Requires RN 0.69+!

cd react-native/ReactNativeFlipperExample
yarn
yarn android

Note that the first 2 steps need to be done only once.

Alternatively, the app can be started on iOS by running yarn ios.

If this is the first time running, you will also need to run pod install --repo-update from the react-native/ReactNativeFlipperExample/ios folder.

React Native Windows (Experimental)

An experimental version of Flipper for React Native Windows is available. The following steps prepare the React Native Flipper project:

cd react-native/react-native-flipper
vcpkg install openssl:x64-uwp openssl:arm-uwp
vcpkg integrate install
yarn install
cd windows
nuget install ReactNativeFlipper/packages.config

In a nutshell, vcpkg is used to install OpenSSL. Nuget is used to install Boost.

Then, the sample application can be built and run as follows:

cd ../../ReactNativeFlipperExample
yarn install
yarn relative-deps
npx react-native run-windows

At the moment there's no available package for React Native Flipper. This means that to integrate Flipper with any other existing applications, an explicit reference to the project needs to be added just as is done with the sample application.

JS SDK + Sample React app

cd js/react-flipper-example
yarn
yarn start

Troubleshooting

Older yarn versions might show an error / hang with the message 'Waiting for the other yarn instance to finish'. If that happens, run the command yarn first separately in the directory react-native/react-native-flipper.

Documentation

Find the full documentation for this project at fbflipper.com.

Our documentation is built with Docusaurus. You can build it locally by running this:

cd website
yarn
yarn start
from https://github.com/facebook/flipper 

 

Cloud Save

 

Save to the cloud.

https://chrome.google.com/extensions/developer/detail/omiekjeapoonbhiemenfoccbdpeagdah

It's actually really amazing how many people now use Cloud Save. In fact, when I
first built this, I had no idea how anyone would possibly find this extension of
any practical use whatsoever. I still only have a vague idea as to how it could
be used, so this probably implies that I'm not the best maintainer of this project
but at least it's popular and rather awesome. Personally, I find drag2up much more
original, innovative and awesome.

Cloud Save is still pretty cool though. And it's not a terrible name, actually. Its
probably the one project of mine which actually has a fairly decent name.

Right now, I'm going to try doing development of cloud save on the cloud via the 
cloud9 IDE on a Cr-48. It's going pretty well so far and it's really awesome.

Design for Cloud Save 1.2

Version 1.2 will feature tons and tons of magic. Really really magical magic. 

The basis is a moving window-ish persistant stack which contains the names of hosts
used. eg. dropbox, dropbox, picasa, picasa, box.net, google docs, dropbox, google docs, dropbox

Right now, I figure the ideal value is 10. Why? Because Math.sqrt(10) day is next 
week and also incidentally my birthday is on sqrt(10) day. It's also between five 
and fifteen, if my third grade arithmetic skills are still intact. 

So this moving window is kept persistantly via localStorage. It gets processed and 
sorted into unique elements: dropbox, picasa, google docs, box.net. Then those are
sorted by a magical ranking coefficient.

The general formula for this ranking index is
number_of_times_used_in_past_10 + most_recent_index / index_dampening_factor

dropbox was used 4 times in that list - most recent is the last one of the list of so index 8
picasa twice - most recent index is 3
box.net once - most recent index is 4
google docs twice - most recent index is 7

the index dampening factor should be a big number. the second term in the magical
equation that is used here exists for the sole purpose of breaking ties between
things used an equal number of times to favor those who have been used more recently
(or should it be a smaller number?). A good value is something like the total 
size of the moving window multiplied by 10. But to be safe, something like 1000 could
be used. Though any number should theoretically work, for debugging purposes it would
be nice if it was a power of ten.

The top six most recently used hosts will be shown. Or less than that if the last
ten include less than six items (again, ordered by the rank thing).

Once a file is uploaded, the list must be recalculated and generated.

The first level menu will be the same: 

Cloud Save >

Second level:

Save As... >
------------
HOst1
Host2
Host3
Host5
Host6
Host4
------------
More       >

There are two tertiary menus. Save As... however looks exactly like the secondary
level menu but without another save as submenu (obviously).

So the More.. menu, which is the only interesting tertiary menu will be as follows:

Add/Remove...
-------------
HostA
HostB
HostC
HostD
HostE
HostF
HostG
HostH
...

As follows. The tertiary list will include all the other hosts in alphabetical order.

Add/Remove is sort of a misnomer as it will not actually do anything in verison 1.2
instead, it'll be a link to the settings page which will do virtually nothing except
for configuring some very magical variable coefficients and stuff. probably.

These plans were written at 4:23PM Eastern Standard Time on the Eleventh of March of
the year 2011.
from https://github.com/antimatter15/cloudsave 

对话网络审核员:一边审核别人,一边觉醒自己

Friday, 1 December 2023

基辛格是伪君子吗?

—02/12/2023

基辛格逝世后毁誉参半,褒扬的多指他作为外交战略家的才能,比如1973年1月达成的越战停火协议,比如推行尼克松的联中抗苏战略。但批评者则列举出他外交战略的黑暗一面,抨击其政策导致了对柬埔寨和老挝的大规模轰炸、东帝汶和孟加拉的种族灭绝以及南非的内战等等,令大量平民死于非命。

一些批评者认为,基辛格作为美国一代显赫的外交家,若撇开人道纯粹从地缘政治和国家利益的角度去论,基辛格的确是一个战略大玩家,如果涉及到人权层面,基辛格则更接近于一个只顾眼前利益只顾个人声望的小人,加之其遭受纳粹迫害的犹太人家庭背景“并未能让他对弱者产生多少同情”,更令人乍舌。洛杉矶时报有文称其为罪犯:“不能让基辛格安息,要让那些被他害死的人的鬼魂一直纠缠对他的记忆。”『滚石』杂志甚至称:“深受美国统治阶级喜爱的战犯,亨利基辛格终于去世了。这个尼克松外交政策的设计者,永远与历史上最严重的大屠杀凶手齐名。”涉及基辛格“利益先行”以及“人道缺失”的一面,可能最有说服力的是这位本来出自于遭纳粹迫害的犹太人家庭的外交家即使对自己出身的遭遇大屠杀的族裔并无多少同情。尼克松在白宫的秘密监听记录披露了其中阴暗的一面:基辛格和尼克松都不打算向苏联施压,帮助在苏联的犹太人寻求迁居以色列过上新生活。基辛格冷血地表示:“让犹太人从苏联移民不是美国的外交政策目标”,“而如果他们在苏联把犹太人关进毒气室,也不是美国关心的问题。它或许是个人道主义问题。”美国前副国家安全顾问本·罗兹(Ben Rhodes)周五在纽约时报发表题为“伪君子基辛格”一文批评说:“他帮助扩大了越南战争,让战火烧到了柬埔寨和老挝,美国在那里投下的炸弹比‘二战’中投向德国和日本的还要多。那些轰炸——通常是对平民的无差别屠杀——对于结束越战的谈判没有任何帮助,如果一定要说影响,那就是它表明了美国为了表达对战败的不满可以不择手段到何种地步。”基辛格的“现实主义“现实到了为“六四”镇压辩护的地步,这让一些中国的流亡者深感痛心。八九学运领袖和中国人权的执行总监周锋锁30日在X平台上表示:“八九六四屠杀当天,接受ABC采访,基辛格反对一切对中共的制裁,但是没有披露那时候他已经和国企中信公司合伙成立公司‘中国创业’,按照现在的标准,是不是基辛格应该注册为中共的代理人呢?”奥巴马的副国家安全顾问本.罗茨对基辛格的评价可谓很低:机会主义,冷血思维,为美国一帮人开辟了利用全球人脉赚钱的机会……,基辛格“在全球事务上的冷血思维让基辛格在对与美国实力接近的专制国家打交道时取得了重大突破——对苏联的‘缓和政策’给军备竞赛升级降温;对中国的开放则加剧了中苏矛盾,让中华人民共和国融入全球秩序,并开启让数亿人民摆脱贫困的改革”。但是,“这场改革的发起人正是下令镇压天安门抗议者的中国领导人邓小平,这一事实本身也体现了基辛格遗产模糊黑白的本质。一方面,中美恢复邦交是‘冷战’的决定因素之一,也提升了中国人民的生活水平。但另一方面,中国共产党成了美国最大的地缘政治对手和全球政治的威权主义领头羊,将百万维吾尔人关进集中营,并威胁入侵台湾,而台湾的地位之所以悬而未决,正是因为基辛格的政策”。基辛格在中国广为人知,一则有其所谓破冰之旅,把毛泽东的中国从孤立中解救出来,在国际上看,这凸显了基辛格作为策士或者尼克松对华战略执行者的一面,联中抗苏。北京之春胡平认为,美国打开中国的大门,第一人应是尼克松。在如何看待中共政权的问题上,尼克松也远比基辛格清醒。后者一直到死都不肯面对红色中国对美国以及对世界的严重威胁。美国联中抗苏,给中国人透开了一扇西方的窗户,一缕外部世界的光线,时也势也,基辛格无意推动中国现代化,背景却是昏聩的毛泽东已在苟延残喘,中国的受难到了尽头,毛死了,毛的忠臣被抓了,实用主义者邓小平抓住中美和好的机会,在国内启动经改,在国际上拉拢美国,中国自此开始全面开启现代化进程。到了二零年代初,美国同意中国加入世贸,中国在经济现代化的道路上一发而不可收。这是基辛格甚或美国有意为之吗?华盛顿至少以为如此能将中国与西方接轨,但是习近平上台后误以为东升西降,美国终于发现试图把中国拖入西方文明之路只是一厢情愿。中国的统治者则对基辛格众口一声赞声不绝。基辛格是极少数美国政治家,会见了毛泽东,邓小平,江泽民,胡锦涛,乃至于习近平的美国政治家,前后奔赴中国百余次。这也就是为什么他死后,习近平罕见的亲自发唁电悼念,这也就是基辛格为什么有“中国人民的老朋友”这样一个奇诡的名号,吹鼓手『环球时报』更给予了基辛格与逝去的毛泽东同样的称颂:他将“永远活在中国人民心中。”习近平第二任期以来,中国在国际上空前孤立,北京对基辛格更加依赖,据纽约时报报道,今年“夏天,当中国领导人想向拜登政府传递信息时,他们自然而然地做了一件事——打电话给亨利·基辛格”。北京对基辛格重视到了如此程度,一些分析者指习近平政权还沉湎在毛泽东时代,孰知美国两党及其美国民众对中国的看法已发生巨大变化。指望一个早已被白宫边缘化的一二说客修补自己亲自破坏的中美关系是很错位的事。在一些分析人士看来,如果说,基辛格早年解救中共政权,尚有美国图谋灭苏的权谋,基辛格作为一介出色的策士,在某种程度上推动了美国“引领”中国进入现代化到进程,其晚年以年迈之躯,每每中共危难之际,前往解围,就多少有点自取其辱,虽然在国际舆论强大指责下,偶有自省言论,更多扮演了帮凶的角色。香港作家颜纯构认为,“一个政治人物,若没有恢宏的历史眼光,没有崇高的道德抱负,汲汲于个人名利,有时甚至会绑架自己。当年美中建交改变了世界历史,基辛格有所贡献,他一生矢志不移,力图证明当初的努力没有白费。基辛格把自己的一生绑在中共身上,可惜中共成了当代世界的邪恶中心,基辛格也陷自己于邪恶帮凶的悲惨地位。”不过,基辛格亲中的同时,也发出一些可能让北京政权不快的预言。比如他在2011年1月20日就曾预言,中国将由于计划生育政策在2030年出现巨大的人口危机,因此,中国的经济不可能赶上美国。

一生何求

冷暖那可休 回頭多少個秋
尋遍了卻偏失去 未盼卻在手
我得到沒有 無法解釋得失錯漏
剛剛聽到望到便更改
不知那裡追究

一生何求 常判決放棄與擁有
耗盡我這一生 觸不到已跑開
一生何求 迷惘裡永遠看不透
沒料到我所失的竟已是我的所有

冷暖那可休 回頭多少個秋
尋遍了卻偏失去 未盼卻在手
我得到沒有 無法解釋得失錯漏
剛剛聽到望到便更改
不知那裡追究

一生何求 常判決放棄與擁有
耗盡我這一生 觸不到已跑開
一生何求 迷惘裡永遠看不透
沒料到我所失的竟已是我的所有

一生何求 曾妥協也試過苦鬥
夢內每點繽紛 一消散那可收
一生何求 誰計較讚美與詛咒
沒料到我所失的竟已是我的所有

一生何求 常判決放棄與擁有
耗盡我這一生 觸不到已跑開
一生何求 迷惘裡永遠看不透
沒料到我所失的竟已是我的所有