mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-11-23 23:53:10 +08:00
idea: search engine, emacs CFLAGS
This commit is contained in:
parent
f100d70bbb
commit
75ce10f06f
@ -7,9 +7,11 @@
|
|||||||
完整的新特性去看 =etc/NEWS= (btw, =emacs-news-mode= 也是新加的)
|
完整的新特性去看 =etc/NEWS= (btw, =emacs-news-mode= 也是新加的)
|
||||||
|
|
||||||
* build emacs (with musl?)
|
* build emacs (with musl?)
|
||||||
[[https://zhuanlan.zhihu.com/p/172518559][gcc 参数来源]]
|
gcc (it's GNU emacs, so...) 参数来源:
|
||||||
|
- https://zhuanlan.zhihu.com/p/172518559
|
||||||
|
- https://snoopitek.com/make.conf
|
||||||
#+BEGIN_SRC sh
|
#+BEGIN_SRC sh
|
||||||
./configure CFLAGS="-march=native -O3 -pipe -finline-functions -fno-math-errno -fno-trapping-math -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -fno-semantic-interposition -fipa-pta -fno-plt" \
|
./configure CFLAGS="-march=native -O3 -pipe -fno-math-errno -fgraphite-identity -floop-nest-optimize -fno-semantic-interposition -fno-strict-aliasing -fno-common -fipa-pta -fno-plt" \
|
||||||
--with-x=no \
|
--with-x=no \
|
||||||
--with-gpm=no \
|
--with-gpm=no \
|
||||||
--with-pgtk \
|
--with-pgtk \
|
||||||
|
@ -9,8 +9,7 @@ you can steal them, but you'd better let me know and add a reference
|
|||||||
* Rust wasm 制作 schemetic/litemetica 渲染器
|
* Rust wasm 制作 schemetic/litemetica 渲染器
|
||||||
** [[https://github.com/misode/vscode-nbt][a vscode extension]]
|
** [[https://github.com/misode/vscode-nbt][a vscode extension]]
|
||||||
* 用 sway 实现[[https://www.bilibili.com/video/BV1TE41147gK][用窗口玩游戏(×)用游戏玩窗口(√)]]的效果
|
* 用 sway 实现[[https://www.bilibili.com/video/BV1TE41147gK][用窗口玩游戏(×)用游戏玩窗口(√)]]的效果
|
||||||
* 不同 Linux 内核(xanmod, clear)玩 MC 性能对比
|
* 不同 Linux 内核(xanmod, lqx, clear)玩 MC 性能对比
|
||||||
* emacs mode: eww show =console.log()= in Message
|
|
||||||
* win7WM
|
* win7WM
|
||||||
just a [[https://support.microsoft.com/en-us/windows/windows-7-support-ended-on-january-14-2020-b75d4580-2cc7-895a-2c9c-1466d9a53962][dream]]
|
just a [[https://support.microsoft.com/en-us/windows/windows-7-support-ended-on-january-14-2020-b75d4580-2cc7-895a-2c9c-1466d9a53962][dream]]
|
||||||
* join DN42
|
* join DN42
|
||||||
@ -20,3 +19,7 @@ just a [[https://support.microsoft.com/en-us/windows/windows-7-support-ended-on-
|
|||||||
呵呵, 在B站看到这样的基本就是壁纸软件的广告
|
呵呵, 在B站看到这样的基本就是壁纸软件的广告
|
||||||
* Nethack x Minecraft
|
* Nethack x Minecraft
|
||||||
* 穿越机/无人机竞速
|
* 穿越机/无人机竞速
|
||||||
|
* local search engine
|
||||||
|
like: https://github.com/tsoding/seroost
|
||||||
|
(tsoding twitch 2023.2.1~)
|
||||||
|
for searching through blogs I collected
|
||||||
|
@ -20,6 +20,10 @@ so I use emacs pyim
|
|||||||
** Authorization required, but no authorization protocol specified
|
** Authorization required, but no authorization protocol specified
|
||||||
*** =sudo -E=
|
*** =sudo -E=
|
||||||
*** lxpolkit(directly execute) or polkit-gnome(prettier, at /usr/libexec/polkit-gnome-authentication-agent-1)
|
*** lxpolkit(directly execute) or polkit-gnome(prettier, at /usr/libexec/polkit-gnome-authentication-agent-1)
|
||||||
|
*** pkexec
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: pkexec
|
||||||
|
:END:
|
||||||
** cannot start sway on lightdm
|
** cannot start sway on lightdm
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: dm
|
:CUSTOM_ID: dm
|
||||||
|
@ -96,10 +96,9 @@ grub> boot
|
|||||||
首先也吐槽了闪烁其词的文档, 然后, chainloading 须要 BOOTX64.efi, 而我根目录没有, 难怪!
|
首先也吐槽了闪烁其词的文档, 然后, chainloading 须要 BOOTX64.efi, 而我根目录没有, 难怪!
|
||||||
正当我准备重新编译内核加入 UFS 可写时, 他展示了一个离谱方法:
|
正当我准备重新编译内核加入 UFS 可写时, 他展示了一个离谱方法:
|
||||||
#+BEGIN_EXAMPLE
|
#+BEGIN_EXAMPLE
|
||||||
0. 在 grub 界面选择 OpenBSD entry
|
0. 在 grub 界面不回车, 而是按 c 启动命令行
|
||||||
1. 不进去, 而是按 c 启动命令行
|
1. 输入 exit
|
||||||
2. 输入 exit
|
2. here you go!
|
||||||
3. here you go!
|
|
||||||
#+END_EXAMPLE
|
#+END_EXAMPLE
|
||||||
我立马停止了 Linux 内核编译, 去试了一下, 我超!
|
我立马停止了 Linux 内核编译, 去试了一下, 我超!
|
||||||
|
|
||||||
@ -141,7 +140,8 @@ uhh, 水族馆帧率没变...
|
|||||||
源码下载下来之后编译, 由于是纯 X, 所以选项和之前那篇[fn:6]里面的不一样
|
源码下载下来之后编译, 由于是纯 X, 所以选项和之前那篇[fn:6]里面的不一样
|
||||||
着急用, 所以参数还没加全
|
着急用, 所以参数还没加全
|
||||||
#+BEGIN_SRC ksh
|
#+BEGIN_SRC ksh
|
||||||
./configure CFLAGS="-march=native -O3 -pipe -flto=thin" --with-x --with-gif=ifavailable
|
./configure CFLAGS="-march=native -O3 -pipe -flto=thin -fstack-protector-strong" \
|
||||||
|
--with-x --with-gif=ifavailable
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
然后就是各种依赖, 大多数 X 相关的系统都自带了
|
然后就是各种依赖, 大多数 X 相关的系统都自带了
|
||||||
之后各种包就容易了, 用我写的 =setup-what-pkg= 宏自动安装所有包
|
之后各种包就容易了, 用我写的 =setup-what-pkg= 宏自动安装所有包
|
||||||
@ -308,8 +308,10 @@ iwx0 at pci0 dev 20 function 3 "Intel Wi-Fi 6 AX201" rev 0x20, msix
|
|||||||
+所以嘛, OpenBSD 就适合运行在老 ThinkPad 上 :(+
|
+所以嘛, OpenBSD 就适合运行在老 ThinkPad 上 :(+
|
||||||
|
|
||||||
原来 =hostname.iwx0= 里面, 密码要加引号...[fn:12]
|
原来 =hostname.iwx0= 里面, 密码要加引号...[fn:12]
|
||||||
hostname.if(5):
|
|
||||||
#+BEGIN_SRC diff
|
#+BEGIN_SRC diff
|
||||||
|
--- src/share/man/man5/hostname.if.5
|
||||||
|
+++ src/share/man/man5/hostname.if.5
|
||||||
|
@@ -76,1 +76,1 @@
|
||||||
-join mynwid wpakey mywpakey
|
-join mynwid wpakey mywpakey
|
||||||
+join mynwid wpakey "mywpakey"
|
+join mynwid wpakey "mywpakey"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
@ -354,3 +356,4 @@ hostname.if(5):
|
|||||||
- [[https://kevinthomas.dev/posts/openbsd-thinkpadt480.html][Installing and setting up OpenBSD on Thinkpad T480 + improving slowness]]
|
- [[https://kevinthomas.dev/posts/openbsd-thinkpadt480.html][Installing and setting up OpenBSD on Thinkpad T480 + improving slowness]]
|
||||||
- [[https://youtu.be/zXaHM7114Uk][Puffy vs. Tux! The difference between OpenBSD and GNU/Linux]]
|
- [[https://youtu.be/zXaHM7114Uk][Puffy vs. Tux! The difference between OpenBSD and GNU/Linux]]
|
||||||
- [[https://videos.lukesmith.xyz/w/ion4TuavEAqKRWeavWTCBe][LukeSmith: Email on the terminal with mutt]]
|
- [[https://videos.lukesmith.xyz/w/ion4TuavEAqKRWeavWTCBe][LukeSmith: Email on the terminal with mutt]]
|
||||||
|
- [[https://youtu.be/o8aiSJ2nXcc][OpenBSD Guy: ffmpeg screencast]]
|
||||||
|
Loading…
Reference in New Issue
Block a user