sudo cast
47 subscribers
498 photos
12 videos
16 files
1.54K links
v2 @sudo_recast

casted something nice or not

v1 / cast / channel / telegram / sudo

more @sudo_radio
email telegram@gadflysu.com
Download Telegram
嗯融无限滚动 #UI
$HOME vs. ~ (tilde)
https://newbedev.com/difference-between-home-and-tilde

The tilde is part of a shell expansion (like in bash, csh, zsh, etc). The $HOME variable is exportable and can be used independent of a specific shell.

The shell replaces ~ with the user's home directory (update: or perhaps by the home directory of some other user, if ~ is followed by something other than a /), but only if it's the first character of a word.

#shell
source vs. . (dot)
https://ss64.com/bash/source.html

source is a synonym for dot/period '.' in bash, but not in POSIX sh, so for maximum compatibility use the period.

When a script is run using source it runs within the existing shell, any variables created or modified by the script will remain available after the script completes.

E.g. https://github.com/nvm-sh/nvm/blob/eed0d0e85ccb35e8802b0df7061491e6cf5d6a4b/README.md

#shell
eval is a built-in Linux command which is used to execute arguments as a shell command. It combines arguments into a single string and uses it as an input to the shell and execute the commands.

https://www.geeksforgeeks.org/eval-command-in-linux-with-examples/

#shell
微信翻译为腾讯音乐提供歌词翻译
Forwarded from Solidot
中国科技行业亿万富翁财富缩水 870 亿美元

2021-08-09 11:27 #商业

自滴滴上市以来,中国科技行业亿万富翁的财富 缩水了 870 亿美元。拼多多的创始人黄峥损失最严重,账面损失 156 亿美元,相当于其财富的三分之一。腾讯的马化腾损失了超过 120 亿美元,相当于个人财富的 22%。马云期间只损失了 26 亿美元,但自蚂蚁 IPO 被叫停止后他的财富减少了 120 亿美元。新东方创始人俞敏洪的财富从 30 亿美元缩水到了 5 亿美元。中国有超过 1000 名亿万富翁。
喜得 Big Sur 五国体验卡一张。
MAKE FREE SOFTWARE GREAT AGAIN
有没有带 mini DP 母口的 Type C 扩展坞呢?因为想省一条视频线的钱,看了一下基本上都是 HDMI,甚至连 VGA 都有。平价的,刚刷到一个 700+ 的……
Forwarded from Solidot
Linux 基金会成立 eBPF 基金会

2021-08-13 21:38 #Linux

Linux 基金会宣布成立 eBPF 基金会。创始成员包括 Facebook、Google、Isovalent、Microsoft 和 Netflix。eBPF 代表 extended BPF(Berkeley Packet Filter),允许开发者安全高效的将程序嵌入到任意的软件中,包括操作系统内核,它被用于实现各种基础设施用例,提供了显著的效率和性能增强,大幅降低了系统的复杂性。如 Facebook 将 eBPF 作为其数据中心的主软件定义负荷均衡器使用。eBPF 基金会将成为开源 eBPF 项目和技术的家庭,将主办主题峰会和其它合作活动推广 eBPF 生态系统。
Forwarded from Hacker News
Debian 11 (🔥 Score: 154+ in 2 hours)

Link: https://readhacker.news/s/4StZC
Comments: https://readhacker.news/c/4StZC
Forwarded from Programmer Humor
哈哈,Gmail 编辑过滤器就是新建一条,而且不会记住设定的动作,而且保存之后不会回到过滤器列表,真够烂的。

好像是因为我动了搜索栏,自己写查询条件,什么判定啊,本用户都点了「edit」了。
Forwarded from Pavel Durov
🎂8️⃣ It’s hard to believe it’s been 8 years since Telegram first appeared in the App Store.

According to research published last week, Telegram became the 7th most downloaded application worldwide in 2020. This is not surprising: for the last several years, Telegram has been the most feature-rich and user-friendly messaging app in the world.

And yet, every single feature we add makes me think of new improvements we are yet to implement. It’s like reaching a peak of a mountain only to discover greater heights to climb from the new vantage point. That is what makes this journey so exciting.

Thank you all for believing in Telegram early. And even if you just joined Telegram yesterday, it is still very early. From here, we shall reach new heights 🏔
Bilibili 支持 iPad 分屏,Bilibili HD 不支持。
我没有在 .zshrc 设定语言区域,而 ssh 配置默认发送环境变量 SendEnv LANG LC_*。虚拟终端 Terminal.app 和 iTerm.app 会设定环境变量 LC_CTYPE=UTF-8,这对 macOS 有效,但对 Linux 无效。这导致远程 Linux 主机 #shell 中的一些字符显示异常。

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"