This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 遍历文件夹中的所有文件,将字符集从GB18030转换为UTF | |
# 参数: | |
# $1:源文件夹 | |
# $2:目标文件夹 | |
# 获取文件夹中的所有文件: | |
FILES=`find $1 -type f` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build with: | |
# NIX_PATH=nixpkgs=$HOME/src/nixpkgs nix-build --no-link '<nixpkgs/nixos>' -A config.system.build.tarball -I nixos-config=thisfile.nix | |
# You can also use | |
# -A config.system.build.toplevel | |
# to build something you can browse locally (that uses symlinks into your nix store). | |
{config, pkgs, ...}: | |
{ | |
# We need no bootloader, because the Chromebook can't use that anyway. | |
boot.loader.grub.enable = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Examples: | |
# ix hello.txt # paste file (name/ext will be set). | |
# echo Hello world. | ix # read from STDIN (won't set name/ext). | |
# ix -n 1 self_destruct.txt # paste will be deleted after one read. | |
# ix -i ID hello.txt # replace ID, if you have permission. | |
# ix -d ID | |
ix() { |