Skip to content

Instantly share code, notes, and snippets.

Avatar

LXFY luoxufeiyan

View GitHub Profile
@luoxufeiyan
luoxufeiyan / rescale.sh
Last active Feb 22, 2020
Rescale between laptop built-in monitor and external hi-dpi monitor
View rescale.sh
#!/bin/bash
# Ref: https://plumz.me/archives/10034/
xrandr --query | grep ' connected' | grep 2560 > /dev/null
result=$?
if [ $result -ne 0 ]; then
# HD
# gsettings set org.gnome.nautilus.icon-view default-zoom-level standard
# gsettings set org.gnome.desktop.interface cursor-size 24
@luoxufeiyan
luoxufeiyan / dw-backup.sh
Created Dec 18, 2019
Automatically Backup Dokuwiki Data Using Shell Script
View dw-backup.sh
#!/bin/sh
# Automatically Backup Dokuwiki Data Using Shell Script
# $Id: dw-backup.sh 328 2004-12-22 13:15:20Z dp $
# Original script: https://www.dokuwiki.org/tips:backup_script
# Blog post: https://www.luoxufeiyan.com/?p=3949
# config
WIKIPATH="/var/www/wiki.luoxufeiyan.com/data" # path to your wiki data directory, no symbolic links are allowed!
# for debian etch: /var/lib/dokuwiki
@luoxufeiyan
luoxufeiyan / tv.bilibili.player.xml
Last active Jul 18, 2017
我的Bilibili屏蔽词列表,屏蔽刷屏及引战等弹幕,可以在HTML5播放器中直接导入。
View tv.bilibili.player.xml
<filters>
<item enabled="true">u=dbaa1002</item>
<item enabled="true">u=1834340f</item>
<item enabled="true">u=bd4f7193</item>
<item enabled="true">u=285a2b69</item>
<item enabled="true">u=0bdffb47</item>
<item enabled="true">r=失踪人口|人口回归|完结撒花|高产|^高产似|发来贺电$|报道$|火钳刘明|刘明$|先投再看|再看|个小伙伴|考古</item>
<item enabled="true">r=前方|高能|核能|屏蔽|弹幕|字幕|檀木</item>
<item enabled="true">r=空耳|空耳君|空耳菌</item>
<item enabled="true">r=我要学|^教练,我要学|我想学</item>
View keybase.md

Keybase proof

I hereby claim:

  • I am luoxufeiyan on github.
  • I am lxfy (https://keybase.io/lxfy) on keybase.
  • I have a public key whose fingerprint is ED2E 36B0 6131 8D06 D0CC 74E2 008C 2DB5 CF1F A5FA

To claim this, I am signing this object:

You can’t perform that action at this time.